Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Visual Studio IntelliSense bug

$
0
0
Hi, since I switched from Visual Studio 2013 to Visual Studio 2015, IntelliSense (or Visual Studio itself) is broken on one of my projects: It is not only really slow (code suggestions take about 10 seconds to load in some files) but also shows errors that are no errors and does not parse the code correctly - some functions do not even show up in the navigation bar on top. The following produces an error: #ifndef _WIN32 DueTime = Params->StartTime - GetHighPrecisionTime(); #else HANDLE TickTimer = CreateWaitableTimer(0, true, 0); bool DoWait = true; { auto CurrentTime = GetHighPrecisionTime(); int64_t DueTime = std::min(-20000LL * (int64_t)Params->TickIntervalMs + (CurrentTime - Params->StartTime).GetTimeIn100Nanoseconds(), 0LL); if (DueTime == 0) DoWait = false; if (DoWait) { LARGE_INTEGER liDueTime; liDueTime.QuadPart = DueTime; SetWaitableTimer(TickTimer, &liDueTime, 0, NULL, NULL, 0); } } #endif In the line below "bool DoWait = true;" it shows the error "expected a declaration" although there is only a brace "{". The code compiles without errors or warnings, but this error is really annoying when you code something and you have to manually look up everything... Even things like the call hierarchy do not work properly. I think the #ifdef directives break Visual Studio/IntelliSense since it works when you remove them, but why does it happen in the first place and why only with this project although my other project also uses #ifdef directives. Reinstalling Visual Studio didn't help. Does anyone have an idea on how to fix this?

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>