Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Small error of intellisense? (Read 4393 times)
Itsmetoo
Junior Member
**
Offline



Posts: 11
Small error of intellisense?
Jan 25th, 2015 at 8:55pm
 
Hi all,
I'm quite new with visual micro, but so far, so good Smiley
I just have a non blocking problem with intellisense.

int j;
j=__LPM_word((uint16_t)(&fcstab[indx]));

the code is working perfectly, but intellisense underline it in red with message "Error: expected expression"

I adore such wonderful cryptic message... Any Idea how I can clean that?

Thank you!

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



Posts: 10474
United Kingdom
Re: Small error of intellisense?
Reply #1 - Jan 25th, 2015 at 9:04pm
 
Hi,

Thanks for the post. You are right, the intellisense does not affect the compile.

The compile uses real arduino but Visual Studio is not entirely capable of handling all arduino/gcc syntax.

It is work in progress, we are constantly trying to find a better way to make the intellisense work.

As an alternative you can use Visual Micro with Atmel Studio which is based on Visual Studio and is free.

Atmel Studio is built to understand the Arduino syntax.
Back to top
« Last Edit: Jan 25th, 2015 at 9:04pm by Visual Micro »  
WWW  
IP Logged
 
Itsmetoo
Junior Member
**
Offline



Posts: 11
Re: Small error of intellisense?
Reply #2 - Jan 25th, 2015 at 9:17pm
 
Thank you for the extra info Smiley
I'm surprised that atmel studio would work better with it as (if I'm not mistaken) it is also based on the MS devlopment platform?  Cheesy
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10474
United Kingdom
Re: Small error of intellisense?
Reply #3 - Jan 25th, 2015 at 9:25pm
 
Atmel Studio uses the Visual Studio Shell which does not include a C++ compiler.

Atmel installs with the VisualAssistX extension already configured. It is Visual Assist that provides the Gcc compatible intellisense for the Atmel Gcc toolchain. The Arduino Ide also uses a version of the atmel toolchain which is installed when you install arduino.

The Microsoft C++ compiler expects Microsoft C++ syntax which is close but not 100% compatible. Especially when you use the lower level syntax that you have used.
Back to top
 
WWW  
IP Logged
 
Itsmetoo
Junior Member
**
Offline



Posts: 11
Re: Small error of intellisense?
Reply #4 - Jan 25th, 2015 at 9:38pm
 
Ok, thank you for your very fast answer. I'll try to find some time to try visual micro on atmel studio !
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10474
United Kingdom
Re: Small error of intellisense?
Reply #5 - Jan 25th, 2015 at 9:55pm
 
ok but one thing to note is that after installing atmel or any other vs ide. Run the visual micro installer and click remove, then run and again and click install. Your settings will be preserved but it ensures we are registered with the new ide (all installed ide's) correctly.
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print