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 vs2012 compile misses line numbers (Read 2108 times)
Peter9
Newbies
*
Offline


Posts: 5
Joined: Apr 29th, 2013
vs2012 compile misses line numbers
Apr 29th, 2013 at 8:24pm
Print Post  
When I compile some arduino code where I make an error (which I do quite a lot at the moment), some of the information is missing from the "Output" window compared to the arduino IDE. Normally this is the line number of the error, which I am taken to if I double-click on the error, so that's fine.

In some cases though, it misses part of the error itself.

For example, when I try to use an overloaded function and my call doesn't match either of the templates, such as this:

Code
Select All
int x(int, int, String);
int x(int, int, bool);

int y=x(p,q,r); 


where p,q and r are ints
it misses out the actual error.

Arduino IDE output:
Code
Select All
proj:9: error: no matching function for call to 'x(int, int, int)'
proj:1: note: candidates are: x(int, int, String)
proj:2: note:                 x(int, int, bool) 



Visual Micro output:
Code
Select All
proj.ino : x(int, int, int)'
proj.ino : x(int, int, String)
proj.ino : x(int, int, bool) 



Does anyone know what's going wrong?
It's probably just me being stupid...

Thanks,
Peter

NB: This isn't my actual code, but a majorly simplified version that should demonstrate the problem.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vs2012 compile misses line numbers
Reply #1 - Apr 29th, 2013 at 11:58pm
Print Post  
On some error lines in VS, you should be able to double click or "right click>goto location" to get an idea of where the problem is.

Yes error display is currently under review
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint