PlatformIO Community

VSCode PlatformIO and the dreaded "IntelliSense Index Rebuild"


#1

So, in getting some projects working under both windows and Linux development environments on multiple machines, I’ve been hitting the “PlatformIO: IntelliSense Index Rebuild” (can’t remember if that is the exact phrasing from the status bar) a few times… and I finally twigged as to what was happening (in my case, anyway)… When I a repo that needed a complete new platform and library setup… platformio was surreptitiously starting to downloading all the pre-requisites so that when I hit that ‘Build’ button everything would be ready to go. However, since my internet is quite slow when trying to get some of the packages (i.e. the xtensa compiler/SDK for the esp8266)… it takes a while… and intellisense just sits there seemingly frozen.

Now that I’ve given the background… the purpose of this post is to ask - is there some way to get access to status of what is happening at the time (other than randomly trawling task manager, realising platformio and VScode is busy using the network/internet, and then seeing the temp files downloading in the platformio folder and unpacked :wink: ). I did close VSCode, and managed to get a build going before intellisense tried to update, allowing the build to start, and consequently was able see status messages for libraries and platform stuff being downloaded unpacked… but it is pretty hit and miss… so hopefully there is a better way?


#2

Thanks! You described everything very well. We need a real toolchain and related frameworks to build configuration for IntelliSense service. If you use PIO Home -> Create Project, it will show progress.
It seems that you opened PlatformIO project on a clean machine.

Nevertheless, we don’t download something “twice”. PlatformIO Package Manager locks the main DB and other processes wait when it will finish.

In any case, we will think about how to improve this issue.


#3

Yeah, I was importing projects from another machine via git on a clean install of PlatformIO, so it had the disadvantage of having to download the platform support files, which held things up for a while.

Can’t really say I noticed progress when doing it through ‘Create Project’… just that animated messages about PlatformIO - indicating that things probably hadn’t frozen.

That’s why I was hoping maybe there was a hidden console window or something in VScode where you could see the package manager status, just as you would see it if you were building and dependencies were missing. It would at least be a stopgap until things could be improved on that front.