Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors (Read 4142 times)
DanK
Newbies
*
Offline


Posts: 8
Joined: Jun 14th, 2019
VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Jun 20th, 2019 at 8:19pm
Print Post  
Hello
I am a newbie to Visual Micro, just bought it a week ago. I tried to open an Arduino Sketch that works fine with the Arduino IDE, but shows tons of errors in Visual Micro.
I attached the output text file as asked for. Also attached: a printscreen with some of the errors.

Even if I create an empty 'New Arduino Project', I immediately get 46 errors, without changing one character.

Thanks for any help.

Kind regards
Dan
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Reply #1 - Jun 20th, 2019 at 8:39pm
Print Post  
Hi, thanks for buying and for the good info.

Intellisense errors and build errors are two different things. If you click build it should build and upload the same as the Arduino IDE.

If you change the combo box at the top of the errors list (see your screen shot) from Intellisense + Build to "Build Only" it will be less confusing because you will only see real errors after a build.

We sometimes have to add additional paths for vs intellisense to find everything, we will review your output to replicate with the the esp32 toolchain version you have installed.

Sometimes clicking the "vMicro>Show Hidden Files" certainly improves F12 GoTo definition and can sometimes improve or make worse the intellisense errors list.

Another workaround is to change the combo box on the left top of the errors list to "Open Documents" so that errors from outside of your own active code are not displayed. It's an option but always a great one.

Will review for next release but intellisense might never be 100% perfect until Microsoft release support for clang in std C++ projects. I think it's coming sometime soon, there is some noise about it.
  
Back to top
WWW  
IP Logged
 
DanK
Newbies
*
Offline


Posts: 8
Joined: Jun 14th, 2019
Re: VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Reply #2 - Jun 21st, 2019 at 1:09pm
Print Post  
Hello
thanks for helping. I did as suggested. There is still no success in building, and one 'fatal error' remaining:

InternalStorageESP.cpp: 24:20: fatal error: Update.h: No such file or directory

Again I added the text and a screenshot with these new configuration.

Kind regards
Dan
« Last Edit: Jun 21st, 2019 at 1:09pm by DanK »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Reply #3 - Jun 21st, 2019 at 1:20pm
Print Post  
Oh I see thanks. I think this is because you have a user installed ArduinoOTA library. Delete folder "c:\users\daniel\documnts\arduino\libraries\ArduinoOTA" then click Rescan or Restart the IDE

I think the latest visual micro version would ignore that library anyway but you don't want it. The OTA is supplied as part of the esp core and is different version.
  
Back to top
WWW  
IP Logged
 
DanK
Newbies
*
Offline


Posts: 8
Joined: Jun 14th, 2019
Re: VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Reply #4 - Jun 21st, 2019 at 7:03pm
Print Post  
Thanks, I just did as told. Delete the old folder, rescan and restart VS. There is still a problem, even with the 'correct' ArduinoOTA.

But the error message is a different now. Thanks for further direction.

Kind regards
Dan
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Reply #5 - Jun 21st, 2019 at 7:08pm
Print Post  
Please click "Build.Clean Solution" clear the cache.
« Last Edit: Jun 21st, 2019 at 7:08pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
DanK
Newbies
*
Offline


Posts: 8
Joined: Jun 14th, 2019
Re: VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Reply #6 - Jun 21st, 2019 at 8:57pm
Print Post  
If you mean VS 'Build - Clean Solution', not the vMicro 'Build', I did it without success. That leads me to the question:what's the difference between the VS Build and the vMicro Build, aren't they the same? Why are there two Builds?

Should I update my VS to 2019 to solve this issue?

Kind regards
Dan
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Reply #7 - Jun 21st, 2019 at 9:04pm
Print Post  
The "Build>Clean" simply clears the temp build folder. All builds are the same but build clean is not a build.

I should have said to click clean and then click build.

Vs2019 will be the same, first we need to confirm a build after the clean still fails. If it does please zip and email your project to info[at]visualmicro.com along with a link back to this thread. It should be compiling okay but the project with the problem (or a simpler project with same libs that has same problem) will be useful.

  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Reply #8 - Jun 21st, 2019 at 9:09pm
Print Post  
ps: another useful item is to switch on "file>preferences>verbose compile" in the Arduino IDE then build and post the output in a .txt file. This will allow me to more easily compare which libraries it is finding. I suspect we have another one on the documents folder.

also tell what is the version of visual micro in tools>extensions and updates?
  
Back to top
WWW  
IP Logged
 
DanK
Newbies
*
Offline


Posts: 8
Joined: Jun 14th, 2019
Re: VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Reply #9 - Jun 21st, 2019 at 10:13pm
Print Post  
Hi
my last post before going to sleep...:

VM version is: 1906.3.0, installed on 10.06.2019.

I first cleaned, then built, without success. I attached textfile with ArduinoIDE output. Everything running fine with that.

If we still don't succeed, I will reduce my sketch to as few lines as possible, showing the problem. But that's for tomorrow.

Kind regards, and thanks for your patience and support!
Dan

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Reply #10 - Jun 22nd, 2019 at 11:47am
Print Post  
Thanks

Please set the tool bar configuration to Release instead of Debug and then try the build and post the output.

Also you need to set the visual micro arduino IDE location to "C:\Users\Daniel\Downloads\arduino-1.8.9-windows\arduino-1.8.9"

Your visual micro is looking at an old version of arduino
« Last Edit: Jun 22nd, 2019 at 11:49am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
DanK
Newbies
*
Offline


Posts: 8
Joined: Jun 14th, 2019
Re: VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Reply #11 - Jun 22nd, 2019 at 7:07pm
Print Post  
Hi

it was already configured for 'Release'. I changed the location to .... 1.8.9.

As far as can see the result is still the same. (I did a rescan and 'Clean Solution before 'Build).

You find both output texts attached.

Kind regards
Dan

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
DanK
Newbies
*
Offline


Posts: 8
Joined: Jun 14th, 2019
Re: VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Reply #12 - Jun 22nd, 2019 at 7:10pm
Print Post  
Hi again

I further started a 'New Arduino Project' in which I copy/pasted the text of your OTA sample code on the site: https://www.visualmicro.com/page/How-to-install-Esp32-for-Arduino-and-Visual-Mic...

There is a similar problem with the ArduinoOTA file. You will find the output text attached in the file: OTA_from_VM_webpage.txt

As this is completely your code, and much shorter than my sketch, maybe it's easier for you to understand the cause.

Thanks and kind regards
Dan

P.S.: As the forum doesn't allow for more than 2 attachmentsper post, I had to split my message in 2 posts. 
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Reply #13 - Jun 22nd, 2019 at 8:18pm
Print Post  
Hi

This looks like "vMicro>Compiler>Deep Search for Libraries" has been switched off. ?
  
Back to top
WWW  
IP Logged
 
DanK
Newbies
*
Offline


Posts: 8
Joined: Jun 14th, 2019
Re: VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Reply #14 - Jun 22nd, 2019 at 8:33pm
Print Post  
YEEESSSS!

That's it. Thanks a thousand times! It worked immediately, also the OTA.

This whole library stuff is driving me nuts. It was the reason I abandoned PlatformIO. Could you please send me a link to the place these things are explained thoroughly for VM?

You just saved my weekend. Hope I didn't to much destroy yours.

Thanks again and kind regards,
Dan
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Reply #15 - Jun 22nd, 2019 at 8:44pm
Print Post  
Oh great. We try to do the same as the Arduino but the flexibility can also catch people out. For example the deep search can be a little slow at times but the Arduino IDE always does it. 

You are right, as soon as we have released the hardware debugging over the next week or two the next job is the documentation and guides.

The Arduino library system is simple but if you find you want specific versions of libraries in a project then its worth experimenting with the "always add project" option on the "Add Library" menu. That shows how to add a simple standard visual studio shared c++ project that points to a specific library location. You can use the same system to place/copy a library inside or outside of any official Arduino library location (not below the project folder though!)

Thanks for the clear reports

There are some useful fixes in the latest pre-release in this forum https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
« Last Edit: Jun 22nd, 2019 at 8:45pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017, Arduino IDE 1.8.9, ESP32, vMicro shows tons of errors
Reply #16 - Jun 26th, 2019 at 4:55pm
Print Post  
The latest release (1906.26+) has intellisense improvements for esp32. Some additional include paths were required for the intellisense (build unaffected)
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint