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) Not getting verbose compiler output. (Read 13407 times)
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Not getting verbose compiler output.
Jan 14th, 2015 at 5:24pm
Print Post  
It was working fine, but I've started to get Error Compiling without any indication of where in the file the error is.

E.g:
Quote:

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I"C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\variants\mega" -I"C:\Program Files (x86)\Arduino\libraries\SPI" -I"D:\Development\Arduino\libraries\SdFat" -I"D:\Development\Arduino\libraries\rtclib" -I"C:\Program Files (x86)\Arduino\libraries\Wire" -I"D:\Development\Arduino\libraries\Logger_SD" -I"D:\Development\Arduino\libraries\I2Cdev" -I"D:\Development\Arduino\libraries\MPU6050" -I"D:\Development\Arduino\libraries\MS5803_I2C" -I"D:\Development\Arduino\libraries\AtlasScientific" -I"C:\Program Files (x86)\Arduino\libraries" -I"C:\Program Files (x86)\Arduino\hardware\arduino\libraries" -I"C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"D:\Development\Arduino\libraries" -o ole.cpp.o"  ole.cpp" 
Error compiling


It's easy to reproduce, Just put in a undefined function:

Code (C++)
Select All
void foo(){
    bool fail = false;
}

fooo(); 



It doesn't even warn me of simple things like mis-matched parenthesis.

I've had to go back to commenting out large swaths of code until I get it to compile, then slowly uncommenting until I find the typo. Very tedious.

Any ideas what might be going on?
Tools->Visual Micro-> verbose messages and compiler warnings are both checked.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Not getting verbose compiler output.
Reply #1 - Jan 14th, 2015 at 5:26pm
Print Post  
Hi,

If you are using arduino 1.5.x they have hard coded the warning and verbose settings we we are waiting for them to extend their defs.

I will look into a better error message but normally you can double click and it takes you to the problem?

  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: Not getting verbose compiler output.
Reply #2 - Jan 14th, 2015 at 5:35pm
Print Post  
I'm using 1.0.x
It used to work where it would tell me the line with the error and I could double click. Now there is no line with an error, just "Error Compiling" at the end. I''ll try a different solution so see if it is solution specific.

It seems to be solution specific. I opened two other solutions and put in an undefined function and got the expected error messages.

test_Atlas_ezo_ec.ino:23: error: expected constructor, destructor, or type conversion before ';' token
Error compiling

as expected.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Not getting verbose compiler output.
Reply #3 - Jan 14th, 2015 at 5:39pm
Print Post  
I,ll take a look. Which board?
  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: Not getting verbose compiler output.
Reply #4 - Jan 14th, 2015 at 5:45pm
Print Post  
Mega2560 Do you need me to send anything?
  
Back to top
 
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: Not getting verbose compiler output.
Reply #5 - Jan 14th, 2015 at 5:46pm
Print Post  
FWIW I'm not even trying to upload, just building solution (F7).
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Not getting verbose compiler output.
Reply #6 - Jan 14th, 2015 at 5:46pm
Print Post  
Not at moment thanks
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Not getting verbose compiler output.
Reply #7 - Jan 14th, 2015 at 5:48pm
Print Post  
Upload does build first
  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: Not getting verbose compiler output.
Reply #8 - Jan 15th, 2015 at 4:52am
Print Post  
It seems to be a problem with the configuration. I installed VM on a different machine and the same code works fine. I only copied over the cpp and .h files.
  
Back to top
 
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: Not getting verbose compiler output.
Reply #9 - Jan 15th, 2015 at 6:52pm
Print Post  
New PC exhibiting same problem. Compiling ends in Error Compiling without ever indicating why.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Not getting verbose compiler output.
Reply #10 - Jan 15th, 2015 at 7:17pm
Print Post  
1) I am unclear if you copied the project to a new pc or created a new one?

2) Does "build>clean solution" then building make any difference?

3) Have you switched off automatic prototype generation in the project that fails (the default is on)?

Thanks
  
Back to top
IP Logged
 
Alex Q. Public
Newbies
*
Offline


Posts: 3
Joined: Jan 20th, 2015
Re: Not getting verbose compiler output.
Reply #11 - Jan 20th, 2015 at 10:30pm
Print Post  
Hi, I just registered here because I encounter the same issue. Clean installation of Atmel Studio 6.2.1502 SP1, Visual Micro 1.1412.10 and Arduino 1.0.6. Rebuilding the solution doesn't help.

It looks like Visual Micro doesn't parse any STDERR output, only STDOUT. If you open the same .ino file in the Arduino IDE and press Verify, you will see the error message in orange because that comes from STDERR output. As another test, go to the Micro Build output window and copy the entire big generated avr-g++ command line, then paste it in a new Windows Command shell. You will then see the compiler errors (again, from STDERR), proving that there's nothing wrong with the toolchain itself, but that Visual Micro doesn't read the output correctly.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Not getting verbose compiler output.
Reply #12 - Jan 21st, 2015 at 10:53am
Print Post  
Hi Alex, Thanks for the clear report. We will test and resolve as required for the next sp
  
Back to top
IP Logged
 
Alex Q. Public
Newbies
*
Offline


Posts: 3
Joined: Jan 20th, 2015
Re: Not getting verbose compiler output.
Reply #13 - Jan 21st, 2015 at 9:43pm
Print Post  
I've just discovered a minimal example that consistently reproduces this problem. And what's more, by commenting out a single line you can make some compile errors appear... This sure is a strange bug!

Save the following snippet as "example.ino" and drag it in Atmel Studio. Create a solution when asked.


#include <Arduino.h>

byte xxx[] PROGMEM = {1}; // If this line is present, compile error is NOT shown!

int mistake = "hello, world!"; // Obvious compile error

void setup() {}
void loop() {}



Press F7 to build. You'll just get the dreaded "Error compiling".
Now comment out the line "byte xxx[] PROGMEM = {1};" and press F7 again. You'll now see "example.ino:5: error: invalid conversion from 'const char*' to 'int'" above "Error compiling".
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Not getting verbose compiler output.
Reply #14 - Jan 21st, 2015 at 9:50pm
Print Post  
Yes I found it and fixed it an hour ago, sorry about that. 

I am about to publish the new release (few hours). There was a bug in the last two releases. An attempt to hide the false errors from using P(str) caused all errors to be hidden!

Sorry and well found!!
« Last Edit: Jan 21st, 2015 at 9:51pm by Tim@Visual Micro »  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: Not getting verbose compiler output.
Reply #15 - Jan 22nd, 2015 at 2:03am
Print Post  
Thanks! I've been out of town for a few days. Great news to come back to. I was getting very worried.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Not getting verbose compiler output.
Reply #16 - Jan 22nd, 2015 at 4:10am
Print Post  
Yes really sorry about that.

The new beta is now available on the visualmicro.com downloads page. (1412.10 sp6)

Hopefully the compiler output makes more sense now.

Thanks for all reports

« Last Edit: Jan 22nd, 2015 at 4:10am by Tim@Visual Micro »  
Back to top
IP Logged
 
Alex Q. Public
Newbies
*
Offline


Posts: 3
Joined: Jan 20th, 2015
Re: Not getting verbose compiler output.
Reply #17 - Jan 22nd, 2015 at 10:57pm
Print Post  
Tested it, works fine now. Well done.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint