RSS
 

Unavailable Visual Studio Intellisense in C++ projetcs

10 nov

Sometimes, in C++ projects, Visual Studio IntelliSense stops working with apparently no reasons. There are many official and non official guides on how to troubleshoot it and they almost always say that, given some conditions are respected, if IntelliSense doesn’t work, it is suggested to delete its database to let Visual Studio rebuilds it. To be able to do it, it is necessary to close the current solution, otherwise windows wouldn’t allow the access to the .ncb file.

However this procedure apparently doesn’t work for me. I have found that I also need to close the IDE and do something else. Here it follows the – at least for me – working sequence:

  1. clean the solution
  2. close the solution
  3. close Visual Studio
  4. delete the .ncb file
  5. open Visual Studio
  6. load the solution and clean it again
  7. rebuild the solution

What I find particularly annoying is that after a while the buggy IntelliSense goes crazy again and I have to stop working and repeat the whole sequence again. That’s a notable waste of time! :-(

I have reproduces this problem on some computers, with VS 2005 and 2008, and with XP and Vista, but only with unmanaged C++. I haven’t tried managed C++, while a colleague of mine says it doesn’t happen with C#.

Comments or – possibly useful ;-) – suggestions?

 
2 Comments

Posted in geek

 

Tags: , , , ,

Leave a Reply

 

 
  1. Alba

    11 gennaio 2012 at 12:21

    it does not work for me…

     
    • kr1zz

      11 gennaio 2012 at 15:00

      I am sorry. Actually I’m forming opinion that Visual Studio is getting non-deterministic ;-)
      Anyway, in case you discovered more, if you let me know, I would greatly appreciate your contribution.