Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
>> >> False Errors
https://www.visualmicro.com/forums/YaBB.pl?num=1560464250

Message started by davidcoward on Jun 13th, 2019 at 11:17pm

Title: False Errors
Post by davidcoward on 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.



ss2.JPG (27 KB | 2 )
sss1.JPG (19 KB | 1 )

Title: Re: False Errors
Post by Visual Micro on 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

Title: Re: False Errors
Post by Visual Micro on 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".


Title: Re: False Errors
Post by davidcoward on 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.

Title: Re: False Errors
Post by Visual Micro on 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.

Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2019. All Rights Reserved.