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
Hot Topic (More than 8 Replies) Lots of Intellisense (not build) errors in VS2022? (Read 2102 times)
FrankP
Full Member
***
Offline


Posts: 240
Joined: Oct 19th, 2011
Lots of Intellisense (not build) errors in VS2022?
Sep 3rd, 2022 at 4:46pm
Print Post  
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: 2174
Joined: Feb 13th, 2019
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #1 - Sep 5th, 2022 at 9:37am
Print Post  
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: 240
Joined: Oct 19th, 2011
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #2 - Sep 5th, 2022 at 1:00pm
Print Post  
Here's the build log, with 'verbose' and 'build properties' enabled
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #3 - Sep 5th, 2022 at 1:52pm
Print Post  
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: 240
Joined: Oct 19th, 2011
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #4 - Sep 5th, 2022 at 2:05pm
Print Post  
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: 2174
Joined: Feb 13th, 2019
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #5 - Sep 5th, 2022 at 2:11pm
Print Post  
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: 240
Joined: Oct 19th, 2011
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #6 - Sep 5th, 2022 at 4:52pm
Print Post  
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
  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #7 - Sep 7th, 2022 at 7:27pm
Print Post  
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
WWW  
IP Logged
 
FrankP
Full Member
***
Offline


Posts: 240
Joined: Oct 19th, 2011
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #8 - Sep 7th, 2022 at 8:00pm
Print Post  
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: 240
Joined: Oct 19th, 2011
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #9 - Sep 15th, 2022 at 11:51pm
Print Post  
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: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #10 - Sep 16th, 2022 at 5:43am
Print Post  
No not yet, it will be in the release notes when it is available.
  
Back to top
WWW  
IP Logged
 
FrankP
Full Member
***
Offline


Posts: 240
Joined: Oct 19th, 2011
Re: Lots of Intellisense (not build) errors in VS2022?
Reply #11 - Sep 16th, 2022 at 1:28pm
Print Post  
Tim,

Thanks!

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