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
Normal Topic Build error reporting (Read 7587 times)
sixeyes2
Junior Member
**
Offline


Posts: 93
Location: Guildford, United Kingdom
Joined: Dec 19th, 2011
Build error reporting
Jan 27th, 2012 at 10:39pm
Print Post  
I've been using verbose for quite a while but switched back to normal mode yesterday. It's great to only see the errors. Unfortunately you don't see the warnings.

Could we have more control?

I'd like to be able to turn on all the warnings without having to see the compiler details. Obviously there are times when the compiler command lines are useful but most of the time I'm just interested in the warnings, and I'd like to see them all without being cluttered with build command lines.

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build error reporting
Reply #1 - Jan 27th, 2012 at 11:10pm
Print Post  
can you send me a code snippet that should produce some warnings please, it will save me having to find some. thanks Smiley
  
Back to top
WWW  
IP Logged
 
sixeyes2
Junior Member
**
Offline


Posts: 93
Location: Guildford, United Kingdom
Joined: Dec 19th, 2011
Re: Build error reporting
Reply #2 - Jan 28th, 2012 at 8:15am
Print Post  
It's a bit contrived, but it shows a warning:

Code
Select All
void setup()
{
}

void loop()
{
}

class Test
{
	Test() : first(0), second(0) {}
	Test(int x) : second(0), first(x) {}

	int first, second;
}; 



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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build error reporting
Reply #3 - Feb 8th, 2012 at 6:41pm
Print Post  
This option "Compiler Warnings" has been added and will be in the next release (28). 

Info...

The arduino core seems to raise many warnings. The sketch is always re-compiled (not optimized/cached), so your own errors are seen more easily after first compile.

Note: Warnings raised by Core or Library sources

By default, the compiler cache is automatically cleared on a "file by file" basis after saving a core or lib source file. 

If you develop cores and/or libraries this means that unless you disable compiler optimisation you will only see warnings the first time you successfully compile after making a change. The Visual Micro options allow you to invidually disable "core or lib" compiler optimisation.
« Last Edit: Feb 8th, 2012 at 6:43pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
sixeyes2
Junior Member
**
Offline


Posts: 93
Location: Guildford, United Kingdom
Joined: Dec 19th, 2011
Re: Build error reporting
Reply #4 - Feb 10th, 2012 at 7:27pm
Print Post  
I think they fixed almost all the warnings with v1.0. Used to get dozens but now only one in Tone.cpp and I've fixed that locally here.

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build error reporting
Reply #5 - Feb 10th, 2012 at 8:32pm
Print Post  
geat. funny you say that, i compiled a new sketch earlier today with 1.0 and warnings switched on, all i could see was a single tone.cpp warning Smiley
  
Back to top
WWW  
IP Logged
 
sixeyes2
Junior Member
**
Offline


Posts: 93
Location: Guildford, United Kingdom
Joined: Dec 19th, 2011
Re: Build error reporting
Reply #6 - Feb 11th, 2012 at 10:12am
Print Post  
Tim@Visual Micro wrote on Feb 10th, 2012 at 8:32pm:
geat. funny you say that, i compiled a new sketch earlier today with 1.0 and warnings switched on, all i could see was a single tone.cpp warning Smiley


You can get my fix for this here:

http://arduino.cc/forum/index.php/topic,85840.0.html

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build error reporting
Reply #7 - Feb 16th, 2012 at 7:10pm
Print Post  
I've sent you a pm about a beta test opportunity. Not sure if you have pm alerts switched on or not so that's why I have added this note
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint