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 Small error of intellisense? (Read 5330 times)
Itsmetoo
Junior Member
**
Offline


Posts: 15
Joined: Jan 25th, 2015
Small error of intellisense?
Jan 25th, 2015 at 8:55pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12070
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Small error of intellisense?
Reply #1 - Jan 25th, 2015 at 9:04pm
Print Post  
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.
« Last Edit: Jan 25th, 2015 at 9:04pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Itsmetoo
Junior Member
**
Offline


Posts: 15
Joined: Jan 25th, 2015
Re: Small error of intellisense?
Reply #2 - Jan 25th, 2015 at 9:17pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12070
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Small error of intellisense?
Reply #3 - Jan 25th, 2015 at 9:25pm
Print Post  
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: 15
Joined: Jan 25th, 2015
Re: Small error of intellisense?
Reply #4 - Jan 25th, 2015 at 9:38pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12070
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Small error of intellisense?
Reply #5 - Jan 25th, 2015 at 9:55pm
Print Post  
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 TopicPrint