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) Syntax color missing in Atmel Studio (Read 18591 times)
Hermann
Newbies
*
Offline


Posts: 2
Joined: May 24th, 2013
Syntax color missing in Atmel Studio
May 24th, 2013 at 2:40pm
Print Post  
Hi everyone.
I just installed Atmel Studio 6.1 and AfVS latest beta (1305.21). Everything looks great so far. Now I am trying to get the syntax color coding to work.
According to this page 

http://www.visualmicro.com/post/2011/10/09/How-to-fix-Arduino-code-color-coding-... 

the extensions ino and pde should be set to "Microsoft Visual C++". Unfortunately there is no Visual C++ in my drop down box. Only "Microsoft Visual Basic". Also in the left pane of the Options window I see only 
"All Languages
Assembler
Basic
CSS
GCC
....."

Am I missing something?
« Last Edit: Jun 22nd, 2013 at 11:04am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Syntax color missing in Atmel Studio
Reply #1 - May 24th, 2013 at 3:12pm
Print Post  
Hi Hermann,

The instructions in the link are for Visual Studio only (pls see note at top of article).

The Visual Micro installer should make the color code work in Atmel Studio. Please run the installer again and click repair. Does this fix the problem?

Thanks
« Last Edit: Jun 22nd, 2013 at 11:06am by Tim@Visual Micro »  
Back to top
IP Logged
 
Hermann
Newbies
*
Offline


Posts: 2
Joined: May 24th, 2013
Re: Syntax color missing in Atmel Studio
Reply #2 - May 24th, 2013 at 3:23pm
Print Post  
Ooops!  Embarrassed I think I should read more carefully...
It works after I did the repair.

Thanks!
« Last Edit: Jun 22nd, 2013 at 11:06am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Microsoft Visual C++" missing...
Reply #3 - May 24th, 2013 at 3:25pm
Print Post  
I hope to raise a bit of cash to get some help with the documentation on this site. It's not right at the moment so I am not surprised you missed it Smiley

Good to hear it is all working, thanks for the update
  
Back to top
IP Logged
 
bionicle
Junior Member
**
Offline


Posts: 11
Location: D
Joined: Feb 1st, 2013
Re: "Microsoft Visual C++" missing...
Reply #4 - Jun 21st, 2013 at 3:32pm
Print Post  
Hello all,
I have the same problem ! even the "repair" did not work.
The C++ ist still missing, what can I do ??
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Microsoft Visual C++" missing...
Reply #5 - Jun 21st, 2013 at 3:34pm
Print Post  
Hi,

I assume you mean intellisense is not working in pde/ino files

Please install 1305.21 from our codeplex DOWNLOADS>Beta Channel 

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


Posts: 11
Location: D
Joined: Feb 1st, 2013
Re: Syntax color missing in Atmel Studio
Reply #6 - Jun 21st, 2013 at 5:44pm
Print Post  
Sorry when I was not precise:
I can not select C++ editor in: Tools-Options-Text editor -File Extensions because C++ is not listed! I did the "Repair" but the problem is still present.
I will try your recommendation and install 1305.21.
Thanks a lot
« Last Edit: Jun 22nd, 2013 at 11:07am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
bionicle
Junior Member
**
Offline


Posts: 11
Location: D
Joined: Feb 1st, 2013
Re:Syntax color missing in Atmel Studio
Reply #7 - Jun 21st, 2013 at 6:02pm
Print Post  
Yes, the complete set : Atmel Studio 6.1.2674 SP1. (latest version)
Meanwhile I have installed Visual Micro 1305.21 - The problem is still present.
Where is the problem ?
« Last Edit: Jun 22nd, 2013 at 11:06am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Syntax color missing in Atmel Studio
Reply #8 - Jun 21st, 2013 at 6:26pm
Print Post  
Hi, 

The "text editor>C++" wiki document states that is for Visual Studio and NOT Atmel Studio.

The Visual Micro installer attempts to register the intellisense and color coding for Atmel Studio. 

Q: Do you have syntax color code working?
Q: Do you have intellisense working?

These two things are different installer config options so if you can explain which are not working I can tell you how to fix the problem(s).

Thanks
« Last Edit: Jun 22nd, 2013 at 11:06am by Tim@Visual Micro »  
Back to top
IP Logged
 
bionicle
Junior Member
**
Offline


Posts: 11
Location: D
Joined: Feb 1st, 2013
Re: Syntax color missing in Atmel Studio
Reply #9 - Jun 21st, 2013 at 7:14pm
Print Post  
Thanks for the quick response!
When I create a new project by: " File-New-Arduino Projekt-" and import an existing code (from Arduino), then syntax higlighting and intellisense seem to work now !! Does that mean I do not have to set the C++ text editor setting ?
Sorry if this is written somewhere but I did not see it.

Thanks
« Last Edit: Jun 22nd, 2013 at 11:07am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
gelius59
Junior Member
**
Offline


Posts: 82
Location: Ukraine
Joined: Oct 6th, 2012
Re: Syntax color missing in Atmel Studio
Reply #10 - Jun 21st, 2013 at 7:26pm
Print Post  
Yes, you understood correctly Visual micro! 


Descriptions of "text editor>C++" Atmel on this issue, I have not seen.
« Last Edit: Jun 22nd, 2013 at 11:05am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Syntax color missing in Atmel Studio
Reply #11 - Jun 21st, 2013 at 7:55pm
Print Post  
Hi,

Yes this is all setup fine. The C++ setup relates to Visual Studio and not Atmel Studio

Question: The link at the start of this post concerning C++ has the following text at the top of the page. Were you looking at a different link where I should also add the text??

Quote:
these instructions are not required for Atmel Studio versions, Atmel users please install visual micro version 1305.21 +, syntax color configuration is automatic for atmel users. It should just work out of the box!



Thanks
« Last Edit: Jun 22nd, 2013 at 11:05am by Tim@Visual Micro »  
Back to top
IP Logged
 
gelius59
Junior Member
**
Offline


Posts: 82
Location: Ukraine
Joined: Oct 6th, 2012
Re: Syntax color missing in Atmel Studio
Reply #12 - Jun 21st, 2013 at 8:03pm
Print Post  
Yes, the link is at the top really is.
Missed. Lips Sealed
« Last Edit: Jun 22nd, 2013 at 11:05am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
bionicle
Junior Member
**
Offline


Posts: 11
Location: D
Joined: Feb 1st, 2013
Re:Syntax color missing in Atmel Studio
Reply #13 - Jun 21st, 2013 at 9:31pm
Print Post  
Hi again,
now I am completely frustrated! After syntax highlight and intellisense worked, I saved the Project and tried to open it again: File-Open-Arduino Project. And then Syntax highlighting was gone! (intellisense works)
I get the same (no syntax highlighting) when I create an new Arduino project.
I did not change anything in the Atmel Studio !

What ist this ??
« Last Edit: Jun 22nd, 2013 at 11:05am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Syntax color missing in Atmel Studio
Reply #14 - Jun 21st, 2013 at 10:59pm
Print Post  
Hi there,

Visual Micro has nothing to do with the syntax color coding except that during install it sets a few registry keys so that Atmel knows to do the color coding for pde/ino files.

Therefore I can only assume that Atmel Studio re-set its own registry keys for some reason. Maybe this was after first time use but as you can see it is not something that we can know.

I suggest that you run the Visual Micro repair, all this will do is put the registry keys back again. 

Hopefully that is then the end of the problem of missing syntax color code. Sorry I can be more specific or give you a guaranteed solution. All I can say is that this has happened for 1 or 2 users but only happened once.

Fingers crossed Smiley

Hope to hear how you get on. Please create a new forum thread if it happens again so that the user who raised this thread that was happy with running the repair does not keep getting notification emails.

Thanks very much
« Last Edit: Jun 22nd, 2013 at 11:04am by Tim@Visual Micro »  
Back to top
IP Logged
 
bionicle
Junior Member
**
Offline


Posts: 11
Location: D
Joined: Feb 1st, 2013
Re: Syntax color missing in Atmel Studio
Reply #15 - Jun 22nd, 2013 at 9:22pm
Print Post  
Hi,
It seems that my problem is solved!
I installed again "ArduinoForVisualStudio1305-21.msi" and chosed "repair"
The repair solved the problem, but I installed it only a few minutes before !!
I hope my Atmel studio runs stable now because its a great IDE for Arduino now, in my opinion it is more handy than Microsoft Visual Studio and Atmel is free!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint