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 not working. (Read 16602 times)
Dave Leddon
Junior Member
**
Offline


Posts: 17
Location: Danville, CA
Joined: Jun 11th, 2014
Intellisense not working.
Jun 11th, 2014 at 3:27pm
Print Post  
I must be doing something wrong.  I can't get intellisense to work in either Visual Studio or Amtel Studio.  I tried the suggested remedy of removing and reinstalling Visual Micro to no avail.  I am running Visual Studio 2008 and am developing code for the Arduino Due.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working.
Reply #1 - Jun 11th, 2014 at 3:51pm
Print Post  
Hi Dave,

If you switch to another boards such as the Uno then switch back to the Due does intellisense then work correctly?

If not then please close the ide, saving the project and solution then zip and email the sketch folder with sub folders to info[at]visualmicro.com. Then e can see your config.

Thanks
  
Back to top
IP Logged
 
Dave Leddon
Junior Member
**
Offline


Posts: 17
Location: Danville, CA
Joined: Jun 11th, 2014
Re: Intellisense not working.
Reply #2 - Jun 11th, 2014 at 4:38pm
Print Post  
Changing the board type had no effect.  I tried to send  a zipped copy of the project folder as an attachment but I got

The file Mag_Loop_Antenna.zip (1044 KB) is too large. The maximum allowed filesize is in KB: 250
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working.
Reply #3 - Jun 11th, 2014 at 4:39pm
Print Post  
Hi,

I asked you to email the zip to info[at]visualmicro.com  Smiley

Thanks
  
Back to top
IP Logged
 
Dave Leddon
Junior Member
**
Offline


Posts: 17
Location: Danville, CA
Joined: Jun 11th, 2014
Re: Intellisense not working.
Reply #4 - Jun 11th, 2014 at 10:55pm
Print Post  
The debugger and serial output work just fine.  The main loop responds to volatile flags set by the interrupt service routines and the interrupts are triggered by manually rotating a rotary encoder so the frequency of the breakpoints and serial messages is very low.  My main issue is when editing the code I can't take advantage of the Intellisense feature which displays the methods and data types available to the typed variable.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working.
Reply #5 - Jun 11th, 2014 at 11:26pm
Print Post  
David, apologies I have had a number of different discussions come up today and I got confused with my response to you.

The intellisense worked fine for me. Maybe a corrupted vs intellisense file.

Close the Ide, and please delete the .ncb file in the project folder then re-open
« Last Edit: Jun 11th, 2014 at 11:28pm by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
Dave Leddon
Junior Member
**
Offline


Posts: 17
Location: Danville, CA
Joined: Jun 11th, 2014
Re: Intellisense not working.
Reply #6 - Jun 11th, 2014 at 11:44pm
Print Post  
Cheesy Thanks Tim, deleting the Intellisence DB file did the trick.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working.
Reply #7 - Jun 12th, 2014 at 12:40am
Print Post  
Great thanks for the update
  
Back to top
IP Logged
 
Dave Leddon
Junior Member
**
Offline


Posts: 17
Location: Danville, CA
Joined: Jun 11th, 2014
Re: Intellisense not working.
Reply #8 - Jun 17th, 2014 at 5:06pm
Print Post  
I've found that I have to delete the Intellisense DB file each time I restart Visual Studio in order to get it to work.  Just thought you ought to know.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working.
Reply #9 - Jun 17th, 2014 at 5:43pm
Print Post  
Hi David,

I have never heard of this and it doesn't happen with my Visual Studio 2008.

What is the full version number from the help>about?

Next time it happens please close vs and zip and email the sketch folder before zapping the ncb.

It might also be useful to know that Visual Micro has no control over the ncb. The file is a part of the VS 2008 C++ system and is created automatically by Microsoft based upon the various project and code settings. So this is a VS 2008 C++ issue. I am happy to try to help but just explaining things so you know where to look.

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working.
Reply #10 - Jun 18th, 2014 at 9:57pm
Print Post  
Hi Dave,

Thanks for all the info. 

Please try setting Content=True for the .ino files then click save

The 'Content' property is in the property tool window when clicking a .ino file in the solution explorer. 

The property window is actually the same window as the one used to set Visual Micro project properties but instead of selecting the project name you select the .ino file name in the solution explorer.

Does intellisense start working immediately after clicking "Save" or when re-opening the solution without deleting the ncb?

Thanks
  
Back to top
IP Logged
 
Dave Leddon
Junior Member
**
Offline


Posts: 17
Location: Danville, CA
Joined: Jun 11th, 2014
Re: Intellisense not working.
Reply #11 - Jun 18th, 2014 at 11:39pm
Print Post  
I tried setting Content true for all five of the ino files in the solution and after about five open-close-open cycles intellisense failed.  I went through an additional ten cycles to see of intellisense would spontaneously recover, but it didn't.
It is interesting to note that if I type control-j when entering a variable name, the intellisense drop-down does appear, it just doesn't do it automatically.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working.
Reply #12 - Jun 18th, 2014 at 11:46pm
Print Post  
Quote:
It is interesting to note that if I type control-j when entering a variable name, the intellisense drop-down does appear, it just doesn't do it automatically


Oh I didn't realize intellisense was still working. 

So it's just failing when, for example, you press the . after Serial?

If so then what happens if you press CTRL+J after adding the '.'?

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working.
Reply #13 - Jun 18th, 2014 at 11:56pm
Print Post  
Oh I might (hope) have found the problem and solution.

There are a couple of differences between vs versions and there is an optional Visual Micro feature that forces the project to refresh the intellisense more often. You probably won't notice a difference in usage speed.

Set "Tools>Options>Visual Micro>Intellisense>Always Re-Add Header=True"

I'll force it on for vs2008 in the next release!

Thanks
  
Back to top
IP Logged
 
Dave Leddon
Junior Member
**
Offline


Posts: 17
Location: Danville, CA
Joined: Jun 11th, 2014
Re: Intellisense not working.
Reply #14 - Jun 19th, 2014 at 12:30am
Print Post  
If type control-j after typing the period, I get the normal intellisense drop-down.  When I tried to test this just now, the automatic drop-drop down worked without my having deleted the database file first.  The corrupted file thing was probably a red herring and what we're seeing is, most likely, sporadic behavior.  I looked for "Tools>Options>Visual Micro>Intellisense>Always Re-Add Header=True" but the only subheading I could find under Visual Micro is "General".
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working.
Reply #15 - Jun 19th, 2014 at 11:13am
Print Post  
Hi Dave,

Please click into the General list of options and find the option called "Always Re-Add Header"

Thanks
  
Back to top
IP Logged
 
Dave Leddon
Junior Member
**
Offline


Posts: 17
Location: Danville, CA
Joined: Jun 11th, 2014
Re: Intellisense not working.
Reply #16 - Jun 19th, 2014 at 3:32pm
Print Post  
Found it, thanks.  I particularly liked the option "Stop trying to sell me stuff".  You are a cheeky lot.  Changing  "Always Re-Add Header" to True didn't fix the problem.  But given that I can always type control-J to get the intellisense drop-down, the intermittent loss of the automatic drop-down is no big deal.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working.
Reply #17 - Jun 19th, 2014 at 3:56pm
Print Post  
Thanks, seeing you have bought a licence the "stop trying to sell me stuff" option doesn't do anything for you because you are fully licensed. It only applies to people who don't buy and will probably be removed in future releases  Smiley

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint