Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
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....
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
False Errors (Read 291 times)
davidcoward
Junior Member
**
Offline



Posts: 37
False Errors
Jun 13th, 2019 at 11:17pm
 
Hi All

I have a VS2017 project which used to be fine and now exhibits false errors, with the below example.

My project contains code in a number of .ino files, one of which contains the declaration for a function shown in SS2.

The error claims it is incompatible with the declaration at line 356, shown in SS1. Except that SS1 is not a declaration, it's just a use of the function.

Curiously, the project compiles without error....

There are similar false errors with use of objects instances.

Is there a setting a I can fiddle with? The latest 1906_12 also exhibits this behaviour.

The project is for a Teensy.


Back to top
 

ss2.JPG (27 KB | 0 )
ss2.JPG
sss1.JPG (19 KB | 0 )
sss1.JPG
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10529
United Kingdom
Re: False Errors
Reply #1 - Jun 13th, 2019 at 11:45pm
 
Please provide a simple project, just .ino file, with the same issue.

Also provide the information shown in yellow at the top of this page and confirm your Teensy version.

Thanks
Back to top
« Last Edit: Jun 15th, 2019 at 8:33pm by Visual Micro »  
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10529
United Kingdom
Re: False Errors
Reply #2 - Jun 16th, 2019 at 11:00pm
 
I tried this again but this time looked for errors in the Errors List. I could see nearly 2000 in VS2017 and 1500 in VS2019. All the false errors related to the underlying core not my own project code.

I then click "vMicro>Show Hidden Files" which is recommended for better F12 GoTo Definition anyway. Then the error list reduced to 3 errors without need to filter the Error List for "Open Documents" or "Build Only".

Back to top
 
WWW  
IP Logged
 
davidcoward
Junior Member
**
Offline



Posts: 37
Re: False Errors
Reply #3 - Jun 28th, 2019 at 4:21am
 
Thanks for looking at it. I wasn't aware of the show/hide hidden files option. It isn't obvious if it's selected or not.

To resolve my issue, I created a new project and then moved things module by module from the old. The application was sufficiently small that I could do this.

The new project does not exhibit the same behaviour.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10529
United Kingdom
Re: False Errors
Reply #4 - Jun 28th, 2019 at 4:25am
 
I see thanks. If you delete the .vs folder below a solution the intellisense database will rebuild next time project is opened. Sometimes that helps VS.
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print