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) Intellisense Errors (Read 7243 times)
Doctor Wizard
Junior Member
**
Offline


Posts: 21
Location: Orange Park, FL
Joined: Dec 2nd, 2014
Intellisense Errors
Mar 27th, 2016 at 5:38pm
Print Post  
Intellisense is generally working, but some of the built-in Arduino specific commands are showing red underlines as not being recognized.  Some examples are pinMode, digitalWrite, Serial, F
It compiles OK though.  But the red squiggles are kinda annoying and I don't like all the false positives.  Is something not configured right or is a file missing?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense Errors
Reply #1 - Mar 27th, 2016 at 10:34pm
Print Post  
Which board and arduino hardware version are you using?
  
Back to top
IP Logged
 
Doctor Wizard
Junior Member
**
Offline


Posts: 21
Location: Orange Park, FL
Joined: Dec 2nd, 2014
Re: Intellisense Errors
Reply #2 - Mar 28th, 2016 at 5:39pm
Print Post  
Out of the frying pan, into the fire.  I 'fixed' the Intellisense problem and created a new one.  I think this is a Visual Studio issue and not directly related to VisualMicro.  (or more accurately, a stupid user error Cheesy)

I looked at all the intellisense errors, and a few were that the command/keyword was not recognized.  Most of them however, like for pinMode, was something to the effect that it had several overloaded methods and couldn't figure out which one I was referring to.

Well, I clicked something, and all the Intellisense errors went away.  Unfortunately, I'm not sure what I clicked on that did it!  (I think it was just the 'Clear All' icon)  And now I have a new problem:  When I compile and get errors, it no longer shows me what the actual error message is or what line it is on, but does still show the line itself and what procedure it is in.  Example below:

Code (C++)
Select All
Compiling debug version of 'trafficLight' for 'Arduino/Genuino Uno'
trafficLight.ino:In function 'void loop()
:EEPROM.writeInt (eLocLastNight, minutesRunning)
:EEPROM.writeInt (eLocHalfNight, halfNight)
trafficLight.ino:In function 'void lostPower()
:EEPROM.writeInt(ADDR_USER_DATA + eLocLastNight, minutesRunning)
:EEPROM.writeInt(ADDR_USER_DATA + eLocHalfNight, halfNight)
trafficLight.ino:In function 'void stackEm(unsigned int)
:EEPROM.writeInt(ADDR_USER_DATA + eLocLastValidNight + i*2,EEPROM.readInt(eLocLastValidNight + i*2-2))
:EEPROM.writeInt(ADDR_USER_DATA + eLocLastValidNight,newVal)
Error compiling project sources
 

 

Boards I'm using are Arduino Uno and Mega, Arduino IDE is latest I think, 1.6.8, and VisualMicro is latest I think 1.1603.20.

What did I inadvertently turn off that I need to turn back on?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense Errors
Reply #3 - Mar 28th, 2016 at 9:58pm
Print Post  
Thanks, there was a problem with error messages in the last build. There will be an update over the next few hours with a fix and improvement.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense Errors
Reply #4 - Apr 2nd, 2016 at 1:33pm
Print Post  
Did you try the update with the improved and working error messages?
  
Back to top
IP Logged
 
Doctor Wizard
Junior Member
**
Offline


Posts: 21
Location: Orange Park, FL
Joined: Dec 2nd, 2014
Re: Intellisense Errors
Reply #5 - Apr 2nd, 2016 at 7:53pm
Print Post  
Yes!  Works fine!  Thanks!  I've got a couple of new issues, but haven't yet dug real deep into them to get more detail.  Having trouble uploading to certain boards (works fine in Arduino IDE) and having trouble compiling for ChipKit Uno32 (works fine in MPIde).  Despite small issues, I LOVE Visual Micro!  It's soooo much nicer to work in Visual Studio than the standard IDEs.  Thanks for a great product!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense Errors
Reply #6 - Apr 2nd, 2016 at 9:50pm
Print Post  
Some chipKIT boards might need more testing. I assume you are using the chipKIT core as opposed? 

Let me know which boards fail in threads when you come across them.

Thanks for the update.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense Errors
Reply #7 - Apr 3rd, 2016 at 2:27pm
Print Post  
I have just looked at the chipKIT system again. They have now integrated fully into the standard Arduino Ide 1.6.x Board Manager system.

That makes the older MPIDE obsolete. You will get a much better experience by installing Arduino 1.6.8 (you can use the zip install from arduino.cc)

Both MPIDE and Arduino can be installed side by side and both can be registered in Visual Micro. So you should find it very easy to switch between the two and try the same code in both.

I have updated the chipKIT page on visualmicro.com with the install guide.

You can ignore the "Drivers" section because the MPIDE install would have installed the usb drivers and they will be the same.

Arduino 3rd party board support urls can be found here:- https://github.com/arduino/Arduino/wiki/Unofficial-list-of-3rd-party-boards-supp...
« Last Edit: Apr 3rd, 2016 at 2:58pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Doctor Wizard
Junior Member
**
Offline


Posts: 21
Location: Orange Park, FL
Joined: Dec 2nd, 2014
Re: Intellisense Errors
Reply #8 - Apr 3rd, 2016 at 5:34pm
Print Post  
I have Arduino IDE 1.6.8, and probably the latest MPIde as I just re-downloaded it recently.  Also just got the latest Visual Micro a couple days ago.  Will check out your URL above, and report back soon with more specific error messages.  The ChipKit Uno32 is not a big priority for me right now though.  I am more concerned with the issue that I can't upload to a lot of my various Arduino clones in Visual Micro.  Get a timeout.  They all work with the Arduino IDE though.  Will get you more specifics on that soon as well.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense Errors
Reply #9 - Apr 3rd, 2016 at 5:53pm
Print Post  
Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint