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) Error compiling (split from Re: Intellisense errors for standart files) (Read 15518 times)
Letnic
Newbies
*
Offline


Posts: 7
Location: montreal
Joined: Dec 22nd, 2012
Error compiling (split from Re: Intellisense errors for standart files)
Jan 8th, 2013 at 4:55am
Print Post  
I get errors compiling my sketch
« Last Edit: Jan 8th, 2013 at 10:56pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense errors for standart files
Reply #1 - Jan 8th, 2013 at 12:47pm
Print Post  
Letnic, your problem might be different. This report relates to the special vs intellisense/trace window showing errors. With that window closed VS should be giving you good intellisense in your project. 

For example if you type "Serial." do you see a list of options for the serial port?

We need to establish that the intellisense of your basic system is working correctly before looking at this extra requirement.

Please confirm, thanks
  
Back to top
IP Logged
 
Letnic
Newbies
*
Offline


Posts: 7
Location: montreal
Joined: Dec 22nd, 2012
Re: Intellisense errors for standart files
Reply #2 - Jan 8th, 2013 at 7:34pm
Print Post  
yes i got a list of options for the serial port like begin .....

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense errors for standart files
Reply #3 - Jan 8th, 2013 at 7:42pm
Print Post  
Great, then you should close the intellisense report window and can reply on the intellisense red underlines in the code when a mistake has been made?
  
Back to top
IP Logged
 
Letnic
Newbies
*
Offline


Posts: 7
Location: montreal
Joined: Dec 22nd, 2012
Re: Intellisense errors for standart files
Reply #4 - Jan 8th, 2013 at 7:48pm
Print Post  
how do you close intellisense report ? 

mistakes are made in stdlib.h and new.h interrup.h stdarg.h

i got 17 errors in errors list, 10 from intellisense.

( sorry i'm a french guys )
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense errors for standart files
Reply #5 - Jan 8th, 2013 at 7:55pm
Print Post  
There is a little X in the top right of the "Error List". Click the X and the list will hide. It's an unimportant list, errors should be ignored. 

The reason for the "errors" is that VS C++ is not entirely Arduino compatible. It doesn't prevent users from enjoying intellisense but does make the error list irrelevant.

Email a screen shot of your vs to:- info [at] visualmicro.com and I can give you better ideas of how the Ide can be arranged.
  
Back to top
IP Logged
 
Letnic
Newbies
*
Offline


Posts: 7
Location: montreal
Joined: Dec 22nd, 2012
Re: Intellisense errors for standart files
Reply #6 - Jan 8th, 2013 at 7:59pm
Print Post  
e-mail send

« Last Edit: Jan 8th, 2013 at 8:37pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense errors for standart files
Reply #7 - Jan 8th, 2013 at 8:52pm
Print Post  
I've attached your image to your last post so you have control of it. The image was very large I have tried to cut it down a bit.

You will not be able to remove those 10 error messages. They are in the arduino core unconnected with your sketch code. VS just doesn't understand of the low level arduino syntax but all these errors can be ignored. 

The plugin does NOT use vs for compile so these are intellisense only messages and are not real code faults.

Some suggestions if you can close the "Error List"??

In the image you can see the title of the lower section is "Error list" and it has an X to the far right of the far right of the screen. Click the X to close the error list.

You possibly have a little confusion with your window layout. I notice that your solution explorer is attached to the same bank of tabs as "Output window", "Error list" etc. This makes it difficult for you.

Hold the mouse button down on the "Solution Explorer" TAB and float the Solution Explorer tool window. Notice that if you then keep the mouse button down and drag to the far left of the screen VS shows some drop bars. Drop and the solution explorer window on a far left drop bar by releasing the mouse when over the drop bar.

This should give you the solution explorer in a clean vertical strip unconnected to the tab of the "Output window", "Error List" area.

I can see one benefit of the "Error List", your sketch is raising "Sketch Error" messages but these are not needed?

Check out the youtube video on the debugger page to see a working layout

Hope this helps
  
Back to top
IP Logged
 
Letnic
Newbies
*
Offline


Posts: 7
Location: montreal
Joined: Dec 22nd, 2012
Re: Intellisense errors for standart files
Reply #8 - Jan 8th, 2013 at 10:10pm
Print Post  
i don't know what my error in my sktech because i can compile it in arduino ide and it work. 

my new work layout
http://imageshack.us/photo/my-images/856/sanstitrercd.jpg/
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling
Reply #9 - Jan 8th, 2013 at 10:55pm
Print Post  
I have split the thread so the the original poster does not keep getting emails about this problem
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling (split from Intellisense errors for standart files)
Reply #10 - Jan 9th, 2013 at 12:30am
Print Post  
Letnic,

I have your sketch but this is getting confusing.

Your sketch compiles fine. I have expanded your image from below and can now see that you are having a compile problem with the debugger.

You said it worked in the arduino ide but not in visual studio. This is incorrect information.

If you switch OFF the debugging. Does the compile and upload work correctly from Visual Studio???
« Last Edit: Jan 9th, 2013 at 12:31am by Tim@Visual Micro »  
Back to top
IP Logged
 
Letnic
Newbies
*
Offline


Posts: 7
Location: montreal
Joined: Dec 22nd, 2012
Re: Error compiling (split from Intellisense errors for standart files)
Reply #11 - Jan 9th, 2013 at 3:14pm
Print Post  
When i put micro debug to none and i press F5 it upload in the arduino and it work correctly. In the arduino IDE it work too.
« Last Edit: Jan 9th, 2013 at 3:14pm by Letnic »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling (split from Intellisense errors for standart files)
Reply #12 - Jan 9th, 2013 at 4:52pm
Print Post  
Okay great. Then the plugin is working so I will move this thread to the debugger forum board.

The problem with your sketch is the space between the setup() method and the first "{". The debugger needs to inject some code into the setup() method and currently gets confused by the space (blank line)

Your code is this

Code
Select All
void setup() /*----( SETUP: RUNS ONCE )----*/

{
 



Please take out the blank line and make it this

Code
Select All
void setup() /*----( SETUP: RUNS ONCE )----*/
{
 



Silly problem, sorry you hit it  Smiley
  
Back to top
IP Logged
 
Letnic
Newbies
*
Offline


Posts: 7
Location: montreal
Joined: Dec 22nd, 2012
Re: Error compiling (split from Intellisense errors for standart files)
Reply #13 - Jan 9th, 2013 at 4:58pm
Print Post  
thank you very much it work now, debugger is great
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling (split from Intellisense errors for standart files)
Reply #14 - Jan 9th, 2013 at 5:00pm
Print Post  
Excellent, thanks for letting me know.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint