Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Cannot open source file, yet still compiles. (Read 5854 times)
chaaarlie2
Newbies
*
Offline


Posts: 5
Joined: Jan 23rd, 2016
Cannot open source file, yet still compiles.
Jan 23rd, 2016 at 6:08pm
Print Post  
I have just installed VS2015 and Visual Micro on a new computer.

After opening a project from VS2013 (and possibly the previous VM version) I get over 400 errors in the error window.

However, the code compiles, uploads and runs perfectly.

The errors include:

"Cannot open source file "<EVERY_FILE_EVER_CREATED>.h" "
and
"Identifier "<EVERY_IDENTIFIER_USED>" is undefined."

...which is basically leaves my whole code underlined by intellisense.

Any solutions?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot open source file, yet still compiles.
Reply #1 - Jan 23rd, 2016 at 6:26pm
Print Post  
Hi,

Please say which board and arduino ide version you are using.

Thanks
  
Back to top
IP Logged
 
chaaarlie2
Newbies
*
Offline


Posts: 5
Joined: Jan 23rd, 2016
Re: Cannot open source file, yet still compiles.
Reply #2 - Jan 23rd, 2016 at 6:46pm
Print Post  
I'm using the IDE version 1.7.3.

Board I'm currently targeting is the Leonardo, but changing the board makes no difference to the errors. Building is successful no matter what board I choose.
« Last Edit: Jan 23rd, 2016 at 6:48pm by chaaarlie2 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot open source file, yet still compiles.
Reply #3 - Jan 23rd, 2016 at 6:56pm
Print Post  
Oh okay if you are using the arduino.org clone Ide then I guess you have used the arduino.org app name when you configured visual micro?

They have probably moved where the sources which affects intellisense but not compile. The last test for visual micro was with arduino.org 1.7.8 so maybe you can try that and see if intellisense is still failing.

Thanks very much
  
Back to top
IP Logged
 
chaaarlie2
Newbies
*
Offline


Posts: 5
Joined: Jan 23rd, 2016
Re: Cannot open source file, yet still compiles.
Reply #4 - Jan 23rd, 2016 at 7:09pm
Print Post  
I also have 1.6.4 installed.

I'll update 1.6.4 to 1.6.7, and 1.7.3 to 1.7.8, and see what happens when I fiddle with the Configuration Manager.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot open source file, yet still compiles.
Reply #5 - Jan 23rd, 2016 at 7:13pm
Print Post  
Hi,

All previous arduino.cc ide versions should work okay it might only be related to arduino.org. If I recall there is a point in the release notes about arduino.org intellisense needing a change for 1.7.8 testing.

So hope it's okay now
  
Back to top
IP Logged
 
chaaarlie2
Newbies
*
Offline


Posts: 5
Joined: Jan 23rd, 2016
Re: Cannot open source file, yet still compiles.
Reply #6 - Jan 24th, 2016 at 11:10am
Print Post  
Uninstalled all Arduino IDEs, installed 1.6.7.

Reinstalled build tools for VS2015 (v140) and installed build tools for VS2013 (v120).

Everything now works as it should, although it sometimes takes two restarts of Visual Studio for new libraries to be found. Nothing I can't live with.

Thank you for your help.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot open source file, yet still compiles.
Reply #7 - Jan 24th, 2016 at 2:31pm
Print Post  
Hi,

Thanks for the update.

When you add new libraries you have to click "Rescan" in the "Micro explorer" or click "Tools.Visual Micro>Reload Toolchains" or Restart the Ide.

If you use the "Visual Micro>Add Library" menu command there is a "Refresh" option immediately below which also reloads tool chain.

Reloading the tool chain detects all hardware and lib changes.

Please let me know if you have been using these commands but new libs have not been recognized until restart

Thanks
« Last Edit: Jan 24th, 2016 at 2:43pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint