VS Arduino
>> >> Small error of intellisense?
https://www.visualmicro.com/forums/YaBB.pl?num=1422219339

Message started by Itsmetoo on Jan 25th, 2015 at 8:55pm

Title: Small error of intellisense?
Post by Itsmetoo on Jan 25th, 2015 at 8:55pm
Hi all,
I'm quite new with visual micro, but so far, so good :-)
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!


Title: Re: Small error of intellisense?
Post by Visual Micro on 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.

Title: Re: Small error of intellisense?
Post by Itsmetoo on Jan 25th, 2015 at 9:17pm
Thank you for the extra info :-)
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?  :D

Title: Re: Small error of intellisense?
Post by Visual Micro on 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.

Title: Re: Small error of intellisense?
Post by Itsmetoo on 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 !

Title: Re: Small error of intellisense?
Post by Visual Micro on 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.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.