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 expected a ';' (Read 3693 times)
marc1
Junior Member
**
Offline


Posts: 10
Joined: May 4th, 2017
Intellisense expected a ';'
May 4th, 2017 at 9:37am
Print Post  
Hi,

I installed the latest version of Visualmicro (1704.30) and intellisense had gone crazy. Some examples of Intellisense "errors":

- at almost all functions: function "EMIT" is not a type name
- at almost every if(): expected a ';'

Code is compiled with no problems at all!

Using arduino mega 1280, release mode, VS2015.

I gues this is kind of new gcc version not being compatible with VM and you will solve it soon?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense expected a ';'
Reply #1 - May 4th, 2017 at 1:16pm
Print Post  
Thanks for the post. I responded to your pm asking for verbose output and for you to create a thread in this forum.

You have created the thread so we just need the output emailed.

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense expected a ';'
Reply #2 - May 4th, 2017 at 2:41pm
Print Post  
Thanks for the verbose output.

Please open board manager and uninstall the avr tool chain.

The issue might be some vm confusion with the board manager version of avr and the version installed with the arduino ide. You don't need to use board manager for avr because it is always included with arduino ide. To be clean, restart the ide after making changes to board manager.

If this resolves then I will look at the issue. If not please zip and email the .vcxproj file from your project folder

Thanks
« Last Edit: May 4th, 2017 at 2:42pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense expected a ';'
Reply #3 - May 5th, 2017 at 10:57am
Print Post  
Another thought.

Delete this folder and restart the ide

C:\Users\[your name]\AppData\Local\arduino15\packages\arduino
  
Back to top
WWW  
IP Logged
 
marc1
Junior Member
**
Offline


Posts: 10
Joined: May 4th, 2017
Re: Intellisense expected a ';'
Reply #4 - May 5th, 2017 at 1:15pm
Print Post  
Hi,

did it, but errors are the same, no difference at all.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense expected a ';'
Reply #5 - May 5th, 2017 at 1:38pm
Print Post  
and if you now switch between boards maybe that forces a refresh of intellisense.

otherwise I will look at your .vcxproj over the weekend.
« Last Edit: May 5th, 2017 at 1:39pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense expected a ';'
Reply #6 - May 5th, 2017 at 8:13pm
Print Post  
I looked at your vcxproj but I need to see it now that you have removed the C:\Users\[your name]\AppData\Local\arduino15\packages\arduino folder

Thanks

ps: Unrelated- Your project is set to use the 2560 not not the 1280

  
Back to top
WWW  
IP Logged
 
marc1
Junior Member
**
Offline


Posts: 10
Joined: May 4th, 2017
Re: Intellisense expected a ';'
Reply #7 - May 6th, 2017 at 12:00pm
Print Post  

Switching between boards does not help Intellisence to start working correctly, also.

(Jp, I test code on both, 1280 and 2560. I have two workstations and both have the same symptoms. I have VM licence and I truly congratulate you for VM.)
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense expected a ';'
Reply #8 - May 6th, 2017 at 1:01pm
Print Post  
1) Can you please close the solution and zip and email the project to me.

2) Confirm the issue happens with a new test project?

Thanks

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense expected a ';'
Reply #9 - May 6th, 2017 at 8:18pm
Print Post  
Thanks for the email.

The ArduinoJson library uses syntax that Visual Studio intellisense does not like. It's the only one I know of and was reported a couple of weeks ago by another user.

We will shortly move to Microsoft new CLang intellisense system which handles things better.

There are only two possible workarounds

1) Use Visual Micro in AStmel Studio 7

2) Wrap the include of arduino.json in a define that causes intellisense to ignore but compile to work as normal. It's a lame workaround because all of the arduino json calls in your code will show errors and not show any intellisense. However everything else will work as expected.

Code (C++)
Select All
#if !defined(_MSC_VER)

 #include <ArduinoJson.h>

#endif 

  
Back to top
WWW  
IP Logged
 
marc1
Junior Member
**
Offline


Posts: 10
Joined: May 4th, 2017
Re: Intellisense expected a ';'
Reply #10 - May 7th, 2017 at 9:05am
Print Post  
Or I will use other Json library  Wink

Thanky you for support!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense expected a ';'
Reply #11 - Jun 6th, 2017 at 1:23pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint