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 messages are messed up (Read 6123 times)
Computerizer
Newbies
*
Offline


Posts: 2
Location: Bellingham, WA
Joined: Feb 21st, 2013
Error messages are messed up
Feb 25th, 2013 at 4:55am
Print Post  
I'm a pretty new user to Visual Micro. I noticed that in my builds, the error messages for C++ are missing a lot of information. For example, this is an error that the Arduino IDE currently shows for my code:
[code]Thread.cpp: In constructor 'Thread::Thread(const char*)':
Thread.cpp:24: error: ISO C++ forbids taking the address of an unqualified or parenthesized non-static member function to form a pointer to member function.  Say '&Thread::Run'
Thread.cpp:24: error: converting from 'void (Thread::*)()' to 'void*'[/code]

This is what I see in the Visual Micro "Micro Build" view in Visual Studio for the same error:
[code]Thread.cpp : : In constructor 'Thread::Thread(const char*)':
Thread.cpp : Run'
Thread.cpp : *)()' to 'void*'[/code]

I'm not posting about the error itself -- it's my code and I do know how to fix it. But this is extremely irritating as I can't figure out what half the errors are in my code without switching to the Arduino IDE and trying it there also!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error messages are messed up
Reply #1 - Feb 25th, 2013 at 3:20pm
Print Post  
Yes this one had slipped down the list, it should be sorted for the next release

One thing that might help is that you should be able to dbl click one of the error lines of each error message to GoTo the line that is wrong, that might help. Switching on verbose compile in the options might also help but adds a lot of rubbish to the output window.
  
Back to top
IP Logged
 
Computerizer
Newbies
*
Offline


Posts: 2
Location: Bellingham, WA
Joined: Feb 21st, 2013
Re: Error messages are messed up
Reply #2 - Feb 25th, 2013 at 7:05pm
Print Post  
Thanks Tim. I noticed that the double clicking did take me to the line, at least, as you said. Verbose doesn't make any difference in the content of these messages.

I look forward to the next release.
  
Back to top
 
IP Logged
 
EraYaN
Newbies
*
Offline


Posts: 9
Location: Netherlands
Joined: Feb 1st, 2013
Re: Error messages are messed up
Reply #3 - Mar 3rd, 2013 at 4:33pm
Print Post  
Also double clicking takes me to the top of the file and most of the time the wrong file.

Example:
Error is on line 45 in FTMS.ino:

After a double click on the first line.

After a double click on the second line.

Arduino IDE does know where the error is...
  
Back to top
 
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Error messages are messed up
Reply #4 - Mar 3rd, 2013 at 4:44pm
Print Post  
I have seen this behavior when there is an error in a library file. It could also be a linker error but mostly if an type identifier of a class is not declared.

If for instance you have

MYCLASS::my_class(

and MYCLASS was not declared in scope, then this could happen. Strange I know but I go directly to the cpp file when I get this error.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error messages are messed up
Reply #5 - Mar 3rd, 2013 at 8:16pm
Print Post  
VM does need more work which will happen shortly but Marius is right in as much as errors that involve other files can confuse some parts of each error. In this case director.ino is included in part of the gcc error but the arduino ide has hidden it.
« Last Edit: Feb 11th, 2014 at 11:22pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error messages are messed up
Reply #6 - Feb 11th, 2014 at 11:22pm
Print Post  
Sorry about the delay. Error formatting should be greatly improved in the last release of Visual Micro. There will also be a visual tweak in the next release
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint