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 Error output too cryptic (Read 5500 times)
Luc
Junior Member
**
Offline


Posts: 17
Joined: Dec 10th, 2013
Error output too cryptic
Dec 17th, 2013 at 1:12pm
Print Post  
In AtmelStudio I got the following compiler output:

Compiling 'testcode' for 'Arduino Nano w/ ATmega168'
testcode.ino : : In function 'void __vector_12()':
testcode.ino : ' token
Error compiling

But this is not useful.
The same program compiled in Arduino IDE (verbose mode):

testcode.ino: In function 'void __vector_12()':
testcode.ino:742: warning: unused variable 'preverr'
testcode.ino:743: warning: unused variable 'prevpreverr'
testcode:802: error: expected `;' before ':' token
testcode.ino:825: warning: suggest parentheses around + or - inside shift

That's useful!
How can I get such output in AtmelStudio?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error output too cryptic
Reply #1 - Dec 17th, 2013 at 1:31pm
Print Post  
Hi Luc,

We are working on better errors however you will find you can double click many of the errors to GoTo the source code. 

The double click is useful but means we have to ensure sources are opened from within the project and not for the temporary compiler copies of the source which would confuse users. So we have to work hard with the error messages.

Please respond to the usb thread that you posted. I will have more info for you after you confirm things.
  
Back to top
WWW  
IP Logged
 
Luc
Junior Member
**
Offline


Posts: 17
Joined: Dec 10th, 2013
Re: Error output too cryptic
Reply #2 - Dec 17th, 2013 at 1:58pm
Print Post  
I hope there will be a verbose mode too!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error output too cryptic
Reply #3 - Dec 17th, 2013 at 2:02pm
Print Post  
Yes but with all paths to sources changed when ever possible.

Does the double click drill down into errors work ok?
  
Back to top
WWW  
IP Logged
 
Luc
Junior Member
**
Offline


Posts: 17
Joined: Dec 10th, 2013
Re: Error output too cryptic
Reply #4 - Dec 17th, 2013 at 2:27pm
Print Post  
Yes that works.  The problem was only that the error description was so cryptic I needed to go back to Arduino IDE to make sense of it. 

P.S. its strange but I still get no notifications on the AVRISP topic, even though "Notify of replies" is ticked.  They work fine for this topic.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error output too cryptic
Reply #5 - Dec 17th, 2013 at 2:32pm
Print Post  
Yes we will improve the errors, hopefully then combined with double click we get a good solution.

Try stopping notifications for the thread then click get notifications again. Thanks
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint