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 False Errors (Read 1454 times)
davidcoward
Junior Member
**
Offline


Posts: 48
Joined: Oct 5th, 2012
False Errors
Jun 13th, 2019 at 10:17pm
Print Post  
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.


  

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: False Errors
Reply #1 - Jun 13th, 2019 at 10:45pm
Print Post  
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
« Last Edit: Jun 15th, 2019 at 7:33pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: False Errors
Reply #2 - Jun 16th, 2019 at 10:00pm
Print Post  
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: 48
Joined: Oct 5th, 2012
Re: False Errors
Reply #3 - Jun 28th, 2019 at 3:21am
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: False Errors
Reply #4 - Jun 28th, 2019 at 3:25am
Print Post  
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 TopicPrint