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 Intellisense Error After Update. (Read 4415 times)
Feinstein
Junior Member
**
Offline


Posts: 12
Joined: Sep 14th, 2016
Intellisense Error After Update.
Sep 14th, 2016 at 9:52pm
Print Post  
I am getting a lot of intellisense squiggles after I updated the plugin. I have Visual Micro version 1609.10.0 .

All my EEMEM variables are marked with the red error squiggles, although my project compiles just fine.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense Error After Update.
Reply #1 - Sep 14th, 2016 at 10:08pm
Print Post  
Hi,

Please give some versions and info.

Which arduino ide?
Which hardware?
Which version of visual studio?
How long approx since you last upgraded?
Which source file opens when pressing F12 on EEMEM
Is EEMEM part of a library if so then please say which one.

Switching on vMicro>Compiler>Verbose will give some of the info. You could post the output as .txt or email to info[at]visualmicro.com. If you also want to zip and email the project that will also save some time.

Thanks
  
Back to top
IP Logged
 
Feinstein
Junior Member
**
Offline


Posts: 12
Joined: Sep 14th, 2016
Re: Intellisense Error After Update.
Reply #2 - Sep 14th, 2016 at 10:56pm
Print Post  
Which arduino ide?
1.6

Which hardware?
Arduino Pro or Pro Mini w/ ATMega328(5V, 16Mhz)

Which version of visual studio?
Visual Studio Enterprise 2015 Version 14.0.25425.01

How long approx since you last upgraded?
I updated it a lot of times, there were daily updates this last week if I remember correctly, so this last update was just a few days a go, but still this error is showing for a while, I was just hoping it would go away when I finished my code and it compiles (I thought it was a compilation error interfering with EEMEM compilation), but now that I finished the code and it compiles the error persists.

Which source file opens when pressing F12 on EEMEM
None. Nothing happens.

Is EEMEM part of a library if so then please say which one.
it's on the AVR EEPROM library, <avr/eeprom.h> it's a MACRO that should be:

#define EEMEM __attribute__((section(".eeprom"))) 

It's supposed to inform the compiler the variable is to be set on the EEPROM memory and its address should be an EEPROM address and not a RAM or Flash Program Memory address.


There are no errors on the compiler verbose output, just what it's supposed to do. The errors are pure intellisense.

Can't email the project I am sorry :/
« Last Edit: Sep 14th, 2016 at 11:00pm by Feinstein »  
Back to top
 
IP Logged
 
Feinstein
Junior Member
**
Offline


Posts: 12
Joined: Sep 14th, 2016
Re: Intellisense Error After Update.
Reply #3 - Sep 14th, 2016 at 11:10pm
Print Post  
FYI: The F12 doesn't open any files when I try it over EEMEM, but under other functions from the same include file (<avr/eeprom.h>) it does open the correct file and function.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense Error After Update.
Reply #4 - Sep 15th, 2016 at 1:36pm
Print Post  
Thanks I will look into it but don't think this area changed in recent updates.

Are you sure this wasn't an issue previously but had gone unnoticed?

I ask because it is the type of syntax that will confuse the Visual Studio C++ intellisense quite easily.

#define EEMEM __attribute__((section(".eeprom")))

As I said I will look at it but I am not sure it is related to updates of Visual Micro.

Did you also update the arduino ide?

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense Error After Update.
Reply #5 - Sep 15th, 2016 at 4:38pm
Print Post  
Hi,

I just tried this in a new project and it seems okay.

Can you please try a new project to see if you get the same result.

If you do then please zip and email the project to info[at]visualmicro.com

If not then please email at least the .vcxproj and the __vm folder from your live project or just zip and send the entire code if happy (will be kept private and deleted after this is resolved)

I would also like to see a verbose compiler output vMicro>Compiler>Verbose which you can send as .txt

If you send an email please include a link back to this thread

Thanks
  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint