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) Snytax highlighting gone - WTF (Read 11249 times)
JoeB
Junior Member
**
Offline


Posts: 13
Joined: Oct 14th, 2013
Snytax highlighting gone - WTF
Oct 15th, 2013 at 3:56am
Print Post  
In my enthusiasm playing with this new toy, I somehow lost my syntax highlighting. Now, I'm like a one legged man in an ass kicking contest. I've tried using the tools/options to set it C++ but that options isn't available using Visual Studio. I've tried a few other things no luck. If I create a new project, sure enough it's there; is there a setting I can remove or change or must I recreate a new project to get it back. When you've got a good amount of code you really forget how much the syntax highlighting does for you until you loose it.  Cry
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Snytax highlighting gone - WTF
Reply #1 - Oct 15th, 2013 at 5:05am
Print Post  
In Visual Studio have you used tools>options>environment>text editor to set syntax highlight for .ino files?

Is intellisense working when you type code such as "Serial." do you see a list of serial port options such as available()? 

Does this report only apply to .pde/.ino file types?

Which version of Visual Studio?

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


Posts: 13
Joined: Oct 14th, 2013
Re: Snytax highlighting gone - WTF
Reply #2 - Oct 15th, 2013 at 7:57pm
Print Post  
No intellisense doesn't work. If i create a basic visual studio C++ project all is fine (intellisense, syntax highlighting) etc.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Snytax highlighting gone - WTF
Reply #3 - Oct 15th, 2013 at 8:26pm
Print Post  
Hi, are you saying that you have cpp files in your arduino project that do not have intellisense or is it just .ino and .pde files you have having a problem with?

Please zip and email the sketch folder so we can see what is wrong.

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


Posts: 13
Joined: Oct 14th, 2013
Re: Snytax highlighting gone - WTF
Reply #4 - Oct 15th, 2013 at 8:38pm
Print Post  
I apologize for lack of clarity. If I create a standard cpp project (non arduino within visual studio it everything works fine).  If i create a new arduino project or open an arduino sketch that's where I experience the issues (no syntax highlighting, outlining or intellisence), however, compile and debug work fine.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Snytax highlighting gone - WTF
Reply #5 - Oct 15th, 2013 at 8:41pm
Print Post  
Have you followed this setup guide for Arduino syntax color coding in Visual Studio?
  
Back to top
IP Logged
 
JoeB
Junior Member
**
Offline


Posts: 13
Joined: Oct 14th, 2013
Re: Snytax highlighting gone - WTF
Reply #6 - Oct 15th, 2013 at 8:56pm
Print Post  
Yes i have
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Snytax highlighting gone - WTF
Reply #7 - Oct 15th, 2013 at 9:35pm
Print Post  
Hi Joe,

I have received your sketch by email and can see that it is an Atmel Studio sketch and not a Visual Studio sketch.

Atmel Studio color coding and intellisense configuration works a different way to Visual Studio and the options shown in the color syntax config guide will not be available. 

There are few ways to fix this problem in Atmel Studio. The quickest solution would be to run the Visual Micro installer and click Uninstall and then click it again to re-install.

You can also run the uninstall via "Windows>add or remove programs>Visual Micro for Arduino". Your Visual Micro personal settings will lost during this process.

Before running this process please close all Atmel Studio instances and then open task manager (right click the window task bar and select Task Manager). In task manager make sure Atmel Studio has shutdown properly, terminate any remaining atmelstudio.exe processes.

If this doesn't fix the problem let me know, I will give you a solution that will fix it.

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


Posts: 13
Joined: Oct 14th, 2013
Re: Snytax highlighting gone - WTF
Reply #8 - Oct 16th, 2013 at 2:25am
Print Post  
That did the trick, maybe you can add attribute in the properties that says something to the effect Amel Visual Studio or Visual Studio? Just a thought.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Snytax highlighting gone - WTF
Reply #9 - Oct 16th, 2013 at 1:17pm
Print Post  
Yes good idea although the title bar of the main ide should say what it is?
  
Back to top
IP Logged
 
canol
Newbies
*
Offline


Posts: 8
Joined: Oct 30th, 2013
Re: Snytax highlighting gone - WTF
Reply #10 - Nov 4th, 2013 at 3:22pm
Print Post  
Just for a quick issue report: I had the same problem that IntelliSense, VA Outline and syntax highlighting was not working (Atmel Studio 6.1) but a reinstall of VisualMicro fixed the problem like mentioned above. In my case the syntax highlighting didn't work since installation though, it didn't disappear after a while.

I didn't open an issue report on CodePlex page since I can't reproduce the problem.
« Last Edit: Nov 4th, 2013 at 3:23pm by canol »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint