VS Arduino
Visual Micro >> Visual Studio 2017, 2019, 2022 >> Error on non-existant line
https://www.visualmicro.com/forums/YaBB.pl?num=1663528492

Message started by Gu Lafontaine on Sep 18th, 2022 at 7:14pm

Title: Error on non-existant line
Post by Gu Lafontaine on Sep 18th, 2022 at 7:14pm
Hi, i rarely ask for help but this time i don't know where to look anymore. The code compiled fine before i updated to latest VS. Still works in VS code

In visual micro I get these errors on non-existing or commented lines

I get an error : 436:32: error: expected identifier before numeric constant
   436 |
   |                                ^

UBI8266.ino: 436:32: error: expected ',' or '...' before numeric constant

UBI8266.ino: 437:34: error: expected identifier before numeric constant
   437 |     \\GetEspHardwareType()
   |                                  ^

437:34: error: expected ',' or '...' before numeric constant
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=new_32.txt ( 1039 KB | 2 Downloads )

Title: Re: Error on non-existant line
Post by Tim@Visual Micro on Sep 18th, 2022 at 8:19pm
Please switch to Release and then show the output again.

If you continue to have an issue in release then zip and email this file along with a link to this post.

d:\Temp\VMBuilds\UBI8266\esp8266_espino\Release\UBI8266.cpp

Thanks


Title: Re: Error on non-existant line
Post by Gu Lafontaine on Sep 18th, 2022 at 8:37pm
Just sent the email

Title: Re: Error on non-existant line
Post by Tim@Visual Micro on Sep 18th, 2022 at 9:34pm
Thanks, this is an issue generating the prototypes for these two methods.


Code (c++):
void AddLog(uint32_t loglevel, PGM_P formatP, ...)   
void AddLog_P(uint32_t loglevel, PGM_P formatP, ...)


We will resolve over the next couple of days. In the meantime you can code in vs and use the arduino ide in "Fie>Preferences>External Editor" mode for the build.

We will update this thread when the update is available.

Title: Re: Error on non-existant line
Post by Gu Lafontaine on Sep 18th, 2022 at 10:28pm
Thank you

Title: Re: Error on non-existant line
Post by Simon@Visual Micro on Sep 21st, 2022 at 12:30pm
We have released a fix for this in the latest version (22.09.05.9), which is available from the top of the board below:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Please let us know if you encounter any further issues.

Title: Re: Error on non-existant line
Post by Gu Lafontaine on Sep 21st, 2022 at 2:03pm
Thanks for your prompt actions, appreciated

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