Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 

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 and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Lots of Intellisense (not build) errors in VS2022? (Read 643 times)
FrankP
Full Member
***
Offline



Posts: 205
Lots of Intellisense (not build) errors in VS2022?
Sep 3rd, 2022 at 5:46pm
 
I've noticed that VS2022 is giving me LOTS of Intellisense errors (45 at the latest count).  However, if I select 'Build Only' instead of 'Build+Intellisense', all the errors go away. Even with the Intellisense errors turned on, the project builds and runs OK.

I have tried addressing many of these errors, but they aren't particularly fixable. For instance, Intellisense doesn't like the ellipsis mark (3 dots) in the line '  case -100 ... - 67:', and it apparently doesn't like enum identifiers that are used without the full name, i.e. 'VL53L0X_READYCHECK' as opposed to 'VL53L0X_REQUEST::VL53L0X_READYCHECK', even though the hover tag shows the full identifier correctly.

Researching this issue on the inet shows lots of complaints about Intellisense errors when using VS2022, but none of the proposed fixes (including removing the .vs folder) seem to work (or seem irrelevant) for me.

Anyone else having this problem - and maybe found a way to fix it?  If not, has anyone successfully downgraded back to VS2019?

TIA,

Frank
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1576
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #1 - Sep 5th, 2022 at 10:37am
 
Thanks for the report.

Can you attach the full build log from your project with the verbose settings enabled shown at the top of the page?
Back to top
 
 
IP Logged
 
FrankP
Full Member
***
Offline



Posts: 205
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #2 - Sep 5th, 2022 at 2:00pm
 
Here's the build log, with 'verbose' and 'build properties' enabled
Back to top
 

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



Posts: 1576
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #3 - Sep 5th, 2022 at 2:52pm
 
Thanks for the logs, could you provide a small snippet which demonstrates the main two issues highlighted so we can investigate further?
Back to top
 
 
IP Logged
 
FrankP
Full Member
***
Offline



Posts: 205
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #4 - Sep 5th, 2022 at 3:05pm
 
Hmm, it's a pretty big program, but I'll work on that.  I assume you need it to be a stand-alone running sketch, correct?

Frank
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1576
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #5 - Sep 5th, 2022 at 3:11pm
 
If possible it would be appreciated, and we will be able to advise what can be done more easily.
Back to top
 
 
IP Logged
 
FrankP
Full Member
***
Offline



Posts: 205
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #6 - Sep 5th, 2022 at 5:52pm
 
OK, here's a small stand-alone sketch that shows two of the most prevalent Intellisense errors.  I defined a set of enums and then defined a variable of that type.  Intellisense insists that I use the full name for the enum, even though it compiles correctly.

Then I wrote a 'switch' statement using the enum variable, and did a case using ellipsis.  Intellisense flags this as an error even though it compiles correctly.

If only build errors are shown, there are zero errors, but with 'build + intellisense', there are LOTS.

Full program folder and verbose compile output attached as a ZIP file.  Hope this helps.

Frank
Back to top
 

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



Posts: 11537
United Kingdom
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #7 - Sep 7th, 2022 at 8:27pm
 
We will take a close look.

One possibly incorrect assumption is that it might be the "..." gcc args causing the issue. The current "project type" that we use for intellisense in VS isn't great for underlying gcc code.

nb: We will shortly be releasing support for a new "project type" that uses the real gcc code system, instead of a variation of std. vs c++ projects. (It will be a simple intellisense switch over for existing project code, doesn't affect the build/upload etc.)

Back to top
 

Tim Leek
home
WWW  
IP Logged
 
FrankP
Full Member
***
Offline



Posts: 205
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #8 - Sep 7th, 2022 at 9:00pm
 
Thanks Tim, for taking the time to look at this.  However, please don't go full OCD on this, as it is just an annoyance, not something that should take your valuable time away from real work  Grin
Back to top
 
 
IP Logged
 
FrankP
Full Member
***
Offline



Posts: 205
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #9 - Sep 16th, 2022 at 12:51am
 
I just updated to 22.09.05.7 - does this version have the new "project type" you were mentioning?  If so, how do I go about shifting my project(s) over to this?

TIA,

Frank
Back to top
 
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline



Posts: 11537
United Kingdom
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #10 - Sep 16th, 2022 at 6:43am
 
No not yet, it will be in the release notes when it is available.
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
FrankP
Full Member
***
Offline



Posts: 205
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #11 - Sep 16th, 2022 at 2:28pm
 
Tim,

Thanks!

Frank
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print