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 partially working on VS2015 (Read 6071 times)
Brian
Junior Member
**
Offline


Posts: 10
Joined: Dec 6th, 2012
Intellisense partially working on VS2015
Mar 9th, 2017 at 10:35pm
Print Post  
I know this is the most asked question, but I can't find an answer. I found this here:

Quote:
"Important: Intellisense does NOT use the deep search facility. ALL libraries that are used by the .ino or .cpp code must be #included in the project_name.ino

Viual Micro uses the older regex system to determine includes for intellisense purposes. This is because it can take many seconds to scan library sources which would disrupt the Ide during code writing.

Hopefully as the next few months progress we manage to optimize and add intelligence to the "deep scan" enabling its use for intellisense.

In the meantime, if intellisense is not discovering libraries, please #include any required libraries directly into the project_name.ino code. (Then click Save or Build to force an intellisense refresh)


I have a half-dozen #includes in this project, and I'm getting Intellisense from one of them. There are three others where the classes are right there in the #included header file and shouldn't require deep scan, but Intellisense doesn't work for them.

The frustrating thing is that it used to work before I did a little housekeeping in the include directory. Now only the one file works.

Is there a way to completely wipe away any Intellisense cache and have it try again?
« Last Edit: Mar 9th, 2017 at 10:35pm by Brian »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense partially working on VS2015
Reply #1 - Mar 10th, 2017 at 5:43am
Print Post  
Hi,

Library locations differ per board so it;s difficult to know what the issue is.

You can zip and email your project if you want and then tell me which #includes were not being found.

Email to info[at]visualmicro.com along with a link to this post

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


Posts: 10
Joined: Dec 6th, 2012
Re: Intellisense partially working on VS2015
Reply #2 - Mar 10th, 2017 at 2:41pm
Print Post  
Sent. Thanks!
  
Back to top
 
IP Logged
 
Brian
Junior Member
**
Offline


Posts: 10
Joined: Dec 6th, 2012
Re: Intellisense partially working on VS2015
Reply #3 - Mar 12th, 2017 at 11:23pm
Print Post  
I just discovered that if I change the solution configuration to Debug, the symbols show up and all Intellisense works. But I'd rather build for release. When I set it back to Release, Intellisense goes away again.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense partially working on VS2015
Reply #4 - Mar 12th, 2017 at 11:47pm
Print Post  
So you build for release and it doesn't update intellisense after build?
  
Back to top
IP Logged
 
Brian
Junior Member
**
Offline


Posts: 10
Joined: Dec 6th, 2012
Re: Intellisense partially working on VS2015
Reply #5 - Mar 14th, 2017 at 2:00pm
Print Post  
As long as the solution configuration is set to Debug, Intellisense works, built or not. As soon as I change it to Release, everything gets underlined red again.

« Last Edit: Mar 14th, 2017 at 2:02pm by Brian »  

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 partially working on VS2015
Reply #6 - Mar 14th, 2017 at 2:08pm
Print Post  
After you change to release and click build is it then correct?
  
Back to top
IP Logged
 
Brian
Junior Member
**
Offline


Posts: 10
Joined: Dec 6th, 2012
Re: Intellisense partially working on VS2015
Reply #7 - Mar 14th, 2017 at 2:26pm
Print Post  
No. Building the project doesn't change the state of the Intellisense. Merely selecting Debug from the configuration menu turns on Intellisense. Changing it to Release breaks it. Building has no effect.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense partially working on VS2015
Reply #8 - Mar 14th, 2017 at 2:41pm
Print Post  
Thanks will look at it
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense partially working on VS2015
Reply #9 - Mar 17th, 2017 at 10:45pm
Print Post  
I looked into this and had no problem in release/debug or any configuration. I also noted that there was no need to compile for intellisense to work. Compiling was only required to discover intellisense for libraries used by related libraries that are not #included in the .ino code.

It seems like you have entered the text "Debug" into the "Release Configuration" property in "Tools>Options>Visual Micro". Can you confirm that the option is empty and then try switching to Release mode again?

I also looked in the .vcxproj file you sent (which is just text/xml) and could see the Release section has not been updated recently. It should be automatically updated unless the "Release Configuration" has been specified.

Thanks
« Last Edit: Mar 18th, 2017 at 12:06am by Tim@Visual Micro »  
Back to top
IP Logged
 
Brian
Junior Member
**
Offline


Posts: 10
Joined: Dec 6th, 2012
Re: Intellisense partially working on VS2015
Reply #10 - Mar 18th, 2017 at 2:47pm
Print Post  
Nothing in the properties for Debug or Release.

And I'm not sure what you mean by "the Release section has not been updated recently.". How can you tell? The file is current. Is there something I can do to force an update of this file?

  

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 partially working on VS2015
Reply #11 - Mar 18th, 2017 at 10:19pm
Print Post  
Thanks for the report and sorry it took so long to fix.

I found the issue it related to an invalid path in the vcxproj intellisense paths list. 

The latest release resolved the issue, you can download it here otherwise it will be in the gallery within a day or two.

download

  
Back to top
IP Logged
 
Brian
Junior Member
**
Offline


Posts: 10
Joined: Dec 6th, 2012
Re: Intellisense partially working on VS2015
Reply #12 - Mar 18th, 2017 at 10:30pm
Print Post  
Perfect! works great. Thanks for your help.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint