VS Arduino
Visual Micro >> Installation & Troubleshooting >> ESP32 Intellisense
https://www.visualmicro.com/forums/YaBB.pl?num=1543353270

Message started by Leonos on Nov 27th, 2018 at 9:14pm

Title: ESP32 Intellisense
Post by Leonos on 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.
  :)

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

Title: Re: ESP32 Intellisense
Post by Leonos on 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.

https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=Document.txt ( 465 KB | 2 Downloads )

Title: Re: ESP32 Intellisense
Post by Visual Micro on Nov 28th, 2018 at 8:48pm
Thanks, which .json url or board support package have you installed for your esp32 hardware?

Title: Re: ESP32 Intellisense
Post by Leonos on Nov 29th, 2018 at 7:43am

Tim@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

Title: Re: ESP32 Intellisense
Post by Leonos on 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.
  :)

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 ;)) but still thought you wanted to know.


Title: Re: ESP32 Intellisense
Post by Visual Micro on Dec 6th, 2018 at 9:57pm
I will look thanks

Title: Re: ESP32 Intellisense
Post by cvalentin on 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.
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=vmicro_esp32_verbose_build.txt ( 84 KB | 1 Download )

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


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