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 Intellisense Issues with Visual Micro and Resharper (Read 1307 times)
Grilmaster
Newbies
*
Offline


Posts: 7
Joined: Mar 17th, 2020
Intellisense Issues with Visual Micro and Resharper
Mar 18th, 2020 at 12:04pm
Print Post  
Thank you, it really compiles now  Cool!

But the ugly thing is, I still see a lot of errors in the code-editor and the auto-complete doesn't work  Embarrassed. See the attachment please.

It looks like your plugin knows where to locate the headers when compiling, but VS doesn't have this information while in design-time.

Also, there is something wrong with the header-files also in other use-cases: I've tried to instantiate a String and got a compilation error:

Code:
String s = String(1);

Error:
GrilController.ino: 2:10: fatal error: string: No such file or directory
   #include <string>
   ^~~~~~~~
   compilation terminated

When I rewrite manually "#include <string>" to "#include <string.h>", it compiles, but the code stays red while editing. I'm not sure who inserts the "#include <string>" into my code automatically, if ReSharper or your plugin, but it's wrong.

Thank you
« Last Edit: Mar 18th, 2020 at 1:44pm by Simon@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2722
Joined: Feb 13th, 2019
Re: BUG: Fresh install of everything, build fails
Reply #1 - Mar 18th, 2020 at 12:34pm
Print Post  
This should work at design time, and I am struggling to replicate this part. The Re-sharper plugin must be involved in the issue, can it be uninstalled temporarily?

We only supply the paths to Intellisense, but don't amend the code in any way.

Can you confirm what is set on the vMicro > General > Configure Arduino IDE Locations > Optional Sketchbook Location?

If the location or files have moved for the library then restarting Visual Studio will ensure a full re-scan is done.
« Last Edit: Mar 18th, 2020 at 12:50pm by Simon@Visual Micro »  
Back to top
IP Logged
 
Grilmaster
Newbies
*
Offline


Posts: 7
Joined: Mar 17th, 2020
Re: BUG: Fresh install of everything, build fails
Reply #2 - Mar 18th, 2020 at 1:10pm
Print Post  
Wow, reinstalling Resharper did the last trick, you are a hero  Grin Cool!

Thank you so much & Greetz from Swiss!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint