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) Updating c/c++ intellisense and browser information (Read 2460 times)
mld
Newbies
*
Offline


Posts: 9
Joined: Aug 14th, 2020
Updating c/c++ intellisense and browser information
Aug 15th, 2020 at 11:54am
Print Post  
I had been using vMicro without issue for a long time. I didn't use it for a while and now I'm getting back into Arduino programming. I'm using Visual Studio 2019 16.7.1 and vMicro 19. I download the latest Arduino IDE.

When I load an empty Arduino project into visual studio it loads ok,  but in the status bar the icon for background tasks shows "Updating c/c++ intellisense and browser information" and that never stops running. I left it run overnight and it still had not stopped this morning after about 14 hours.

What this causes is when I try to load a library into my project, or close down Visual Studio it hangs until I use Task Manager and kill it.

This only happens when I'm loading Arduino projects, but that's the only time I use C++, so I'm not sure if this is a Visual Studio issue or vMicro. Regular Winforms apps load and close fine with no issues. I thought I would start here and see if anyone has seen this and maybe has a fix.

I have uninstalled everything C++ from Visual Studio which uninstalled vMicro then re-installed it and same thing. I did not re-install Visual Studio because what a pain, but if I can't find an answer then that's the next thing I'll try.

If anyone has any ideas I would appreciate the help. I'm not sure how to get any logs because the IDE is completely non-responsive until I kill it.

Thanks in advance

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Updating c/c++ intellisense and browser information
Reply #1 - Aug 15th, 2020 at 12:00pm
Print Post  
Hopefully running a repair on Visual Studio will solve. That is Visual Studio doing that. We use the standard VC++ intellisense, we simply feed it defines and location of your toolchains. The update of intellisense should also happen in background and not intefere with the IDE. You should only see a message in the status bar while it happens. VS2017/2019 moved to using sql for intellisense but it uses it's own internal version. Therefore repair will hopefully work.

Out of interest, which board/core are you using?

If you click build on the empty project does it build.?
« Last Edit: Aug 15th, 2020 at 12:01pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
mld
Newbies
*
Offline


Posts: 9
Joined: Aug 14th, 2020
Re: Updating c/c++ intellisense and browser information
Reply #2 - Aug 15th, 2020 at 12:26pm
Print Post  
Wow that was fast.

I forgot to mention that I had already done the repair and no luck. The board is an Arduino Mega, and the empty project does build successfully. Adding a library though just hangs everything. Time do do some searching at Microsoft.

Thanks for the immediate response!

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Updating c/c++ intellisense and browser information
Reply #3 - Aug 15th, 2020 at 12:28pm
Print Post  
1)
Random thought: If you are using the Add Library menu to add a library to the project. I am interested to know if you have enabled any of the checkboxes on the Add Library menu? They cause the library to be copied locally to solution or project. There is possibility for virus checker to cause extra confusion in that case.

2)
If it builds then please follow the guide in yellow above so we can see your config.

Thanks



« Last Edit: Aug 15th, 2020 at 4:14pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
mld
Newbies
*
Offline


Posts: 9
Joined: Aug 14th, 2020
Re: Updating c/c++ intellisense and browser information
Reply #4 - Aug 15th, 2020 at 2:55pm
Print Post  
Nothing is checked on the Add Libraries menu. I tried turning off anti-virus but that doesn't help.

After a bit more troubleshooting I have narrowed it down to adding User Installed libraries. 

I created a new empty Arduino project, no problem.

When I added EEPROM from the built-in libraries for example it went through the updating intellisense process quickly and successfully.

Next I added FastLED. It started updating intellisense, got to parsing 348/348, and hung. Different libraries stop at different spots. They are stored on a UNC path, but I ran them from there before no problem.

Not sure what it means, but at least I'm closer.
  
Back to top
 
IP Logged
 
mld
Newbies
*
Offline


Posts: 9
Joined: Aug 14th, 2020
Re: Updating c/c++ intellisense and browser information
Reply #5 - Aug 15th, 2020 at 3:24pm
Print Post  
A little more info. I removed all of my downloaded libraries, downloaded one new one, and tried adding it to the empty project and it hangs. It's definitely something with the user libraries.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Updating c/c++ intellisense and browser information
Reply #6 - Aug 15th, 2020 at 4:15pm
Print Post  
If you can follow the guide in yellow above we will see your config.

Zipping and providing your user libs folder would also allow us to try to replicate.
  
Back to top
WWW  
IP Logged
 
mld
Newbies
*
Offline


Posts: 9
Joined: Aug 14th, 2020
Re: Updating c/c++ intellisense and browser information
Reply #7 - Aug 15th, 2020 at 4:34pm
Print Post  
I emailed you the text file and my libraries folder. Let me know if I can provide anything else.

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Updating c/c++ intellisense and browser information
Reply #8 - Aug 15th, 2020 at 4:37pm
Print Post  
Nothing arrived yet. Maybe a file size issue, please check for failed email.

Thanks
  
Back to top
WWW  
IP Logged
 
mld
Newbies
*
Offline


Posts: 9
Joined: Aug 14th, 2020
Re: Updating c/c++ intellisense and browser information
Reply #9 - Aug 15th, 2020 at 4:55pm
Print Post  
Haven't seen a bounce yet. I attached the text file. Looks like you don't allow zip files to be uploaded.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Updating c/c++ intellisense and browser information
Reply #10 - Aug 15th, 2020 at 5:22pm
Print Post  
The libraries email arrived thanks. They are fine.

I see in your build output you are using unc for the sketchbook folder. Can you try mapping it to a drive letter in windows explorer then setting that as the sketchbook path in IDE locations. 

Also confirm that adding non-user libraries is not an issue? That will prove that the UNC is the issue.

Thanks

  
Back to top
WWW  
IP Logged
 
mld
Newbies
*
Offline


Posts: 9
Joined: Aug 14th, 2020
Re: Updating c/c++ intellisense and browser information
Reply #11 - Aug 15th, 2020 at 5:54pm
Print Post  
Nice work. I set up the mapped drive and now everything is working the way it should. I added user libraries, I added built in libraries, everything works.

So this is a Visual Studio issue? It used to work, so I guess somewhere along the line an update broke something.

Fantastic support by the way. I was shocked when you answered on a Saturday.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Updating c/c++ intellisense and browser information
Reply #12 - Aug 15th, 2020 at 5:54pm
Print Post  
Thanks, we will try to setup a test and replicate.
  
Back to top
WWW  
IP Logged
 
mld
Newbies
*
Offline


Posts: 9
Joined: Aug 14th, 2020
Re: Updating c/c++ intellisense and browser information
Reply #13 - Aug 15th, 2020 at 5:57pm
Print Post  
Let me know if you need anything else from me.
  
Back to top
 
IP Logged
 
mld
Newbies
*
Offline


Posts: 9
Joined: Aug 14th, 2020
Re: Updating c/c++ intellisense and browser information
Reply #14 - Aug 15th, 2020 at 7:27pm
Print Post  
It seems like just loading the project from the UNC path is enough to trigger this. I loaded a previous project using the mapped drive and everything was good. Then out of curiosity I loaded the exact same project from the UNC path, and the problem appeared.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Updating c/c++ intellisense and browser information
Reply #15 - Aug 15th, 2020 at 7:29pm
Print Post  
That makes more sense. Intellisense paths for libraries and project are set in the same place.

It would be interesting to see if you can create and build a new empty standard VC++ win32 project in the ucn path.
« Last Edit: Aug 15th, 2020 at 7:30pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint