question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slow "PlatformIO: Rebuilding IntelliSense Index" only first time when reloading VScode after installing PIO

See original GitHub issue

It can take up to 1 minute and 30 seconds for “PlatformIO: Rebuilding IntelliSense Index” to finish for the first time. If this is normal then we can close this issue. The Project Tasks are unusable in this duration which is annoying.

I see this in the console when the problem appears: [Embedded Page] Failed check of PIO Core library updates for undefined TypeError: Cannot read property 'options' of undefined Not sure if it is related.

Reproduction steps:

  1. Close VS code if open
  2. Delete the local .platformio folder
  3. Launch VS code
  4. Wait for PIO to finish installing and reload VS code
  5. Observe slow “PlatformIO: Rebuilding IntelliSense Index” (On my end it is around 1 minute and 30 seconds)

This is what it looks like while it is going: image

I’m on Windows 10 and Latest VScode

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
ivankravetscommented, Jun 9, 2022

Please click on the “terminal” icon on the bottom status bar (blue) and type

pio project init --ide vscode

Does it hang?

0reactions
atsjucommented, Jun 9, 2022
PS C:\GIT\ESP3D> C:\Users\myName\.platformio\penv\Scripts\pio project init --ide vscode
Updating metadata for the vscode IDE...
Project has been successfully updated!
PS C:\GIT\ESP3D> 

Command did not hang

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rebuilding IntelliSense forever- caused by PIO--HELP!
I'm unable to use VSCode, because Rebuilding IntelliSense and Loading Tasks cue on open. They run and run, and they don't stop running....
Read more >
VSCode PlatformIO and the dreaded "IntelliSense Index ...
I thought only Build or Upgrade commands would do it. Perhaps index rebuilding should be made foreground operation with its own terminal? Either ......
Read more >
IntelliSense Index Rebuild stuck running forever after ...
After upgrading PIO to version 5.0.1, the IntelliSense Index Rebuild runs forever. I'm using Visual Studio Code with Platformio extension.
Read more >
Intellisense not working - PlatformIO IDE
Hi, I have installed VS Code and the PlatformIO extension - nothing else. When I write code for esp32 the intellisense is showing...
Read more >
why it does not update upon code change before build?
I've just installed PlatformIO with VSCode and the first project I've tried (converted from Arduino) is doing exactly this. Had an error ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found