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
Locked Topic 1000s of compilation error messages from the basic Blink (Read 1472 times)
CuriousCode
Newbies
*
Offline


Posts: 2
Joined: Jan 5th, 2020
1000s of compilation error messages from the basic Blink
Jan 5th, 2020 at 3:03pm
 
Hi,
I have just installed vMicro under VS2019 and created a sample solution pre-loaded with the Blink sample.

When selecting a standard Arduiono board, I don't have any issues.
However, when selecting my actual board, I get about 2800 compliation errors.

Steps:
  1. Create a new solution based on the "Blink" sample.
  2. Install and select the "Seeeduino Lotus - Cortex-M0+" board.
  3. Without even compiling the code, the Error List will list about 2800 errors for the project.

I'm using Arduino 1.8.10 and can compile code for that board without issue.
Using vMicro in VS2019, I am still able to compile and transfer the firmware to the board, but the whole compilation is actually quite slow (I would say at least 5x slower than from wihtin the Arduino IDE).

I have attached the build output, the list of errors (all appear to be coming from the compiling of the board's own arduino base code), as well as the solution.

Thank you,

Renaud

Note: within the solution, I noticed a huge 230+MB Browse.VC.db file under the .vs\xxx\v16 folder.
I haven't included it in the attachment.

  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: 1000s of compilation error messages from the basic Blink
Reply #1 - Jan 5th, 2020 at 3:17pm
 
Thanks for the info. In fact your compilation took less than 2 seconds and worked fine.

The errors list in visual studio is no connected to the actual compile. For the compile we use the external tools that come with your platform, for intellisense we point vs to as many paths as possible, set a few defnes and then let it do what it wants to do. It should be much better than you see but maybe never 100% perfect.

Intellisense

We will look into the intellisense for the platform you are using and that will probably result in some newer toolchain paths spec. which we will release in a new build during the coming week or two. In the meantime if you switch the drop down lists above the Error List to "Build Only" or some other settings that give less confusing errors it might help.

Compilation

As I have said your output shows the build took just under 2 seconds. I would expect it to be much slower on first compile because it builds and then caches the core. The arduino IDE would also do the same cachning which means subsequent builds should also be sub 2 seconds.

With that in mind I am confused about what you have said about Visual Micro being very slow during build. Based on what I have said and the output you see during build, can you confirm where the slowness happens exactly?

Please also make sure the toolbar is set to Release and not Debug when making your tests.

Thanks

« Last Edit: Jan 5th, 2020 at 3:18pm by Tim@Visual Micro »  
Back to top
IP Logged
 
CuriousCode
Newbies
*
Offline


Posts: 2
Joined: Jan 5th, 2020
Re: 1000s of compilation error messages from the basic Blink
Reply #2 - Jan 6th, 2020 at 3:48am
 
Hi Tim,

thanks a lot for the quick reply!
Now I understand the errors: I wasn't familiar with the way VS handles intellisense and didn't understand where these errors were coming from.

Regarding compilation time, you are right, it's not as slow as I first experienced. There may have been something else affecting my machine at that time, maybe some other background compilation.
It's snappier today and about as long as the Arduino IDE.

Thank you for your help,

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: 1000s of compilation error messages from the basic Blink
Reply #3 - Jan 6th, 2020 at 11:13am
 
Great. If you click "Build>Clean Solution" that will zap the cache and your first build will be slower again because the core is being compiled.

In the Arduino IDE, depending on the file>preferences, it might make a complete rebuild when you switch board or change any of the board menu settings. Because you had been using the arduino ide for a while without changing the options I mentioned it might have been working with a cached core.

In both IDE's you should generally see a fast build until something major changes. Then slow build followed by fast again.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: 1000s of compilation error messages from the basic Blink
Reply #4 - Jan 13th, 2020 at 2:35am
 
« Last Edit: Jan 13th, 2020 at 2:37am by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint