VS Arduino
Visual Micro >> Visual Studio 2017, 2019, 2022 >> VS19 Intellisense error - RedBoard Artemis ATP
https://www.visualmicro.com/forums/YaBB.pl?num=1629654676

Message started by StockBrick on Aug 22nd, 2021 at 5:51pm

Title: VS19 Intellisense error - RedBoard Artemis ATP
Post by StockBrick on Aug 22nd, 2021 at 5:51pm
I've just come back to VM after a short break and Intellisense does not seem to be working. The first character in each file is red underlined with the following message "There are too many errors for the IntelliSense engine to function properly, some of which may not be visible in the editor." Any ideas as to what is wrong? It is doing this for very simple code. Thanks

Title: Re: VS19 Intellisense error
Post by Tim@Visual Micro on Aug 22nd, 2021 at 11:14pm
Please ensure you have opened a solution and not just used the "File Open Folder" option. If you also follow the guide in the yellow box near the top of this page we can check your config.

Thanks

Title: Re: VS19 Intellisense error
Post by StockBrick on Aug 28th, 2021 at 8:00am
Yes, I am opening via solution not folder. I have emailed the output file to you so you can check the configuration. Thanks

Title: Re: VS19 Intellisense error
Post by Tim@Visual Micro on Aug 29th, 2021 at 7:06pm
Please also email the .vsarduino file from below the project \_vm sub folder.

+ let us know what .json urls you have configured.

Thanks

Title: Re: VS19 Intellisense error
Post by StockBrick on Aug 29th, 2021 at 9:29pm
I've emailed the file.

Title: Re: VS19 Intellisense error
Post by Tim@Visual Micro on Aug 29th, 2021 at 11:47pm
Can't see a new email from you. Did you zip the file?

Title: Re: VS19 Intellisense error
Post by StockBrick on Aug 30th, 2021 at 7:35am
That's strange. I've resent it as a zipped file. Thanks.

Title: Re: VS19 Intellisense error
Post by StockBrick on Sep 4th, 2021 at 10:27am
Hopefully you have recieved the file. It would be great if you could have a look at the configuratuon. I can't currently use Visual Micro because of the problem. Thanks

Title: Re: VS19 Intellisense error
Post by Tim@Visual Micro on Sep 4th, 2021 at 5:51pm
Sorry for the delay. Please try the latest 21.09.4.2 from this forum.

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Title: Re: VS19 Intellisense error
Post by StockBrick on Sep 5th, 2021 at 8:31am
Thanks. I uploaded from the link. It installed OK but the problem persists. The link has installed update 2021.606.21. Is that correct? I'll email the output file.

Title: Re: VS19 Intellisense error - RedBoard Artemis ATP
Post by Tim@Visual Micro on Sep 5th, 2021 at 12:46pm
Yes, please zip and email your project

Title: Re: VS19 Intellisense error - RedBoard Artemis ATP
Post by StockBrick on Sep 5th, 2021 at 4:59pm
I've emailed it to you. I'm getting the error with all projects. They all use the Artemis ATP. Thanks

Title: Re: VS19 Intellisense error - RedBoard Artemis ATP
Post by Tim@Visual Micro on Sep 5th, 2021 at 5:43pm
Did you Build the project after applying the update. That should cause the intellisense to be re-written.

After the build you should see that the following defines have been added to the _vm\projectName.vsarduino.h file.

[code]#define __GNUC__             5
#define __GNUC_MINOR__       4
#define __GNUC_PATCHLEVEL__  0
#define GCC_VERSION ((__GNUC__*10000)+(__GNUC_MINOR__*100)+__GNUC_PATCHLEVEL__)) [/code]

Title: Re: VS19 Intellisense error - RedBoard Artemis ATP
Post by StockBrick on Sep 6th, 2021 at 4:57pm
Yes, still had the problem after build. The defines don't seem to have been added.

Code (c++):
#define __ICCARM__
#define __ASM
#define __INLINE
#define __builtin_va_list void
//#define _GNU_SOURCE
//#define __GNUC__ 0
//#undef  __ICCARM__
//#define __GNU__

Title: Re: VS19 Intellisense error - RedBoard Artemis ATP
Post by Simon@Visual Micro on Sep 6th, 2021 at 5:07pm
Could you try updating to the latest version 21.09.04.2, (which also includes this fix), and see if this resolves the issue?
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES


Title: Re: VS19 Intellisense error - RedBoard Artemis ATP
Post by StockBrick on Sep 6th, 2021 at 5:56pm
I've already done that - see reply #8. Or have you further updated 21.09.04.2 using the same number? Thanks

Title: Re: VS19 Intellisense error - RedBoard Artemis ATP
Post by Tim@Visual Micro on Sep 6th, 2021 at 7:22pm
There was some confusion with the stated build number and also an update today. However the lines we are looking for should be futher down. (there are some miseleading commented versions that will be removed in future builds)

can zip the vsarduino.h again thanks

Title: Re: VS19 Intellisense error - RedBoard Artemis ATP
Post by StockBrick on Sep 6th, 2021 at 8:29pm
I've emailed the file to you. Thanks

Title: Re: VS19 Intellisense error - RedBoard Artemis ATP
Post by Tim@Visual Micro on Sep 7th, 2021 at 12:40pm
Thanks. Did you put the .2 on again. It is a refresh of the build.

Thanks


Title: Re: VS19 Intellisense error - RedBoard Artemis ATP
Post by StockBrick on Sep 7th, 2021 at 10:06pm
Installed the refreshed .2 and it seems to be working fine now. Thanks for your help.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.