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
ESP32 Intellisense (Read 1345 times)
Leonos
Junior Member
**
Offline



Posts: 17
ESP32 Intellisense
Nov 27th, 2018 at 9:14pm
 
Today I received notification that both Visual Studio as well as Visual Micro had an update ready and I updated both. Since then, I get 'red error dots' in the scroll bar on the right, as well as red lines in the code itself.
  ArduinoOTA.onStart([]() {
  ArduinoOTA.onEnd([]() {
  ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
  ArduinoOTA.onError([](ota_error_t error) {


The error rests on the first [ bracket in each of the above functions. The code still compiles though.The error says: More than one conversion function lambda []void...

Since I updated both I am not sure which update introduced this, but since you mentioned ESP32 intellisense I thought I'd try here first.
  Smiley
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: ESP32 Intellisense
Reply #1 - Nov 27th, 2018 at 9:20pm
 
if you switch on vmicro>compiler verbose and also "show build properties" then post the build output as a .txt we can see which esp32 toolchain you have installed.
Back to top
 
WWW  
IP Logged
 
Leonos
Junior Member
**
Offline



Posts: 17
Re: ESP32 Intellisense
Reply #2 - Nov 28th, 2018 at 8:03am
 
Thanks, Tim. Fyi, on my laptop I haven't yet upgraded to 1811.24.0 (I'm on 1810.4.0) and there the red marks do not appear. VS version is 15.9.2.

Please find enclosed the .txt file.
Back to top
 

Document.txt (465 KB | )
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: ESP32 Intellisense
Reply #3 - Nov 28th, 2018 at 8:48pm
 
Thanks, which .json url or board support package have you installed for your esp32 hardware?
Back to top
 
WWW  
IP Logged
 
Leonos
Junior Member
**
Offline



Posts: 17
Re: ESP32 Intellisense
Reply #4 - Nov 29th, 2018 at 7:43am
 
Visual Micro wrote on Nov 28th, 2018 at 8:48pm:
Thanks, which .json url or board support package have you installed for your esp32 hardware?

That's https://dl.espressif.com/dl/package_esp32_index.json
Back to top
 
 
IP Logged
 
Leonos
Junior Member
**
Offline



Posts: 17
Re: ESP32 Intellisense
Reply #5 - Dec 5th, 2018 at 1:11pm
 
Leonos wrote on Nov 27th, 2018 at 9:14pm:
Since I updated both I am not sure which update introduced this, but since you mentioned ESP32 intellisense I thought I'd try here first.
  Smiley

So, on my laptop I only updated Visual Micro and left Visual Studio at 15.9.2. Sure enough, the red lines appeared, so I am afraid it has to do with the latest VM update.

Luckily it is no serious issue (just annoying Wink) but still thought you wanted to know.

Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: ESP32 Intellisense
Reply #6 - Dec 6th, 2018 at 9:57pm
 
I will look thanks
Back to top
 
WWW  
IP Logged
 
cvalentin
Newbies
*
Offline



Posts: 1
Re: ESP32 Intellisense
Reply #7 - Dec 7th, 2018 at 11:52pm
 
I have the same issue after updating to the newest version. Visual Studio now also underlines keywords like "for" or "this".
The strange thing is, that not all "for" and "this" keywords are underlined, only some of them.

I have the verbose build file attached.

@VisualMicro: Until this is fixed, please do you have a download link of previous versions of VisualMicro?

[Edit]
I found all download links in the Release notes section of the forum. I had to downgrade to version 1810.7.1
Now Visual Studio does no longer go crazy and underlines most of the code red, so my issue is fixed.
It looks like the next version after 1810.7.1 introduced the problem.
Back to top
« Last Edit: Dec 8th, 2018 at 12:18am by cvalentin »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: ESP32 Intellisense
Reply #8 - Feb 8th, 2019 at 11:10pm
 
Sorry for the delay. The September 2018 change to intellisense paths  for esp32that resulted from this post has been reverted. This should revert the error list back to the september system which should work well for the current project files or open files without needing to limit the intellisense error reporting to "Build Only"

The release to the gallery has not been made yet but the version is available here: Pre-Release 2902.8 forum thread
note: intellisense will not be perfect until microsoft release their work in progress gcc compatibility. However it has been significantly worse for esp32 since September

Back to top
« Last Edit: Feb 8th, 2019 at 11:12pm by Visual Micro »  
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print