logo elektroda
logo elektroda
X
logo elektroda

Visual Studio Code + Platformio - Installed, and I cannot create a project.

sq9etc 2826 19
Best answers

How can I create a new PlatformIO project in VS Code if the PlatformIO Home house icon does not appear after installation?

The PlatformIO Home icon may simply appear with a delay after VS Code starts, so wait a bit for the module to load, and make sure the PlatformIO IDE extension finished installing before restarting VS Code [#18527481][#18526369][#18526964] If the house icon still does not show, use the PIO icon in the left sidebar and choose “Open” to access the same functionality [#18525987] If the extension is globally disabled as unsafe, open it in the Extensions view, click the shield/trust option, and trust PlatformIO [#20346994]
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18525780
    sq9etc
    Level 12  
    I installed VSC, then PlatformIO. I seem to have VSC installed, but I don't know how to create a new project.
    According to this description: Quick Start I should have an icon with a house (PlatformIO Home) in the bottom left corner. In my case, nothing like that appears.
    What is wrong?
  • ADVERTISEMENT
  • #2 18525947
    Anonymous
    Level 1  
  • #3 18525975
    sq9etc
    Level 12  
    Exactly right. It shows up as installed, I'm just missing that house icon on the bottom bar.
  • ADVERTISEMENT
  • #4 18525987
    Anonymous
    Level 1  
  • #5 18526362
    sq9etc
    Level 12  
    In my case, the icon is not there. This is what it looks like:
    Visual Studio Code + Platformio - Installed, and I cannot create a project. [/img].

    I think I will uninstall the extension, then VSC and try again to install everything one by one.
  • #6 18526369
    Anonymous
    Level 1  
  • #7 18526445
    sq9etc
    Level 12  
    I uninstalled, reinstalled. PIO Home appeared, but only once. I imported the project from this topic Link . It imported with errors about header files. Then PIO Home disappeared somewhere. The extension is visible as installed.

    Now it has reappeared. I don't understand any of this, it runs when it wants to.
  • #8 18526576
    Anonymous
    Level 1  
  • #9 18526780
    sq9etc
    Level 12  
    khoam wrote:
    What does the platform.ini file look like in this imported project?
    .
    [env:esp07]
    platform = espressif8266
    board = esp07
    framework = arduino
    lib_extra_dirs = ~/Documents/Arduino/libraries
    
    .
  • ADVERTISEMENT
  • #11 18526934
    sq9etc
    Level 12  
    OK. Only this PIO Home rarely appears to me in Visual Studio Code. Here's the problem. It has only appeared to me 2 times, and most of the time it is not there.
  • #12 18526941
    Anonymous
    Level 1  
  • ADVERTISEMENT
  • #13 18526953
    sq9etc
    Level 12  
    khoam wrote:
    In the course of a session with VSC it disappears and appears?
    .
    During a session it doesn't seem to have disappeared for me yet, but after a restart it hasn't. It has appeared 2 times so far, but with a long delay after starting VSC.
  • #14 18526964
    Anonymous
    Level 1  
  • #15 18527481
    Slawek K.
    Level 35  
    This icon appears with a slight delay after starting the VSC, simply the module loads and it takes a while, depending on the computer, if it is weak it may take longer.

    Best regards
  • #16 18527668
    sq9etc
    Level 12  
    khoam wrote:
    This can happen if the last PIO installation did not complete correctly, and you restarted VSC before the console message to restart VSC appeared.
    .
    Perhaps. But if I see a message that the installation was successful, then I guess I can assume it is:) .
    Slawek K. wrote:
    This icon appears with a slight delay after starting VSC, It just mdu³ loads and it takes a while, depending on your computer, if it's weak it may take longer.
    .
    I noticed this, but waited over an hour for the extension to run.
    I may try again to uninstall everything one at a time and remove the leftovers from the disk. Then one last try.
  • #17 18527749
    Slawek K.
    Level 35  
    Also remember to remove the following two directories from the user directory you are working on :

    Visual Studio Code + Platformio - Installed, and I cannot create a project. .

    Best regards
  • #18 18532474
    sq9etc
    Level 12  
    Thank you all for your help, but I have had enough for now.
    I installed Atom from PlatformIO and there everything laughs from the first shot.
    I am not closing the topic yet.
  • #19 18532955
    Anonymous
    Level 1  
  • #20 20346994
    Rybex
    Level 12  
    Topic probably out of date but I had a similar issue a while ago.
    It turned out that the PIO extension was deemed unsafe and therefore globally disabled.
    I clicked on it in the Extensions window/list and there was this shield icon. After another click on the shield in the main window I could click to trust PIO. And now it works.

Topic summary

✨ The discussion revolves around issues faced by a user after installing Visual Studio Code (VSC) and the PlatformIO extension. The user is unable to see the PlatformIO Home icon, which is essential for creating new projects. Responses suggest checking if the PlatformIO IDE is installed, and if the icon is missing, alternative methods to access the functionality are provided. The user attempts to uninstall and reinstall the extension, which sometimes resolves the issue temporarily. However, inconsistencies with the appearance of the PIO Home icon persist, leading to frustration. Other users mention potential problems with the installation process and suggest ensuring that the extension is trusted in VSC. Ultimately, the user decides to switch to Atom, where the PlatformIO extension works without issues.
Generated by the language model.

FAQ

TL;DR: In VS Code, PIO Home may appear late; one user waited over an hour—"I waited over an hour for the extension to run." Fix by opening PIO via the left sidebar, reinstalling cleanly, or trusting the extension. [Elektroda, sq9etc, post #18527668]

Why it matters: This FAQ helps makers using VS Code + PlatformIO fix missing PIO Home so they can start projects fast.

Quick Facts

How do I open PlatformIO Home if the house icon is missing?

Use the PlatformIO view on the left Activity Bar. 1. Click the PIO icon. 2. Click Open. 3. Use New Project to create a project. This mirrors the house icon’s functionality and lets you proceed even if the status-bar icon never appears. [Elektroda, khoam, post #18525987]

Why doesn’t the PlatformIO Home icon show up immediately after startup?

PlatformIO loads after VS Code starts, so the icon appears with a delay. On lower-spec machines, loading takes longer. “This icon appears with a slight delay.” Wait for the extension to finish initializing before troubleshooting further. [Elektroda, Slawek K., post #18527481]

I waited a long time for PIO Home. How long is too long?

One user waited over an hour for the extension to run. If it still never appears, a clean reinstall is reasonable. Remove leftovers on disk and try again. This often clears inconsistent behavior. [Elektroda, sq9etc, post #18527668]

Do I need to restart VS Code after uninstalling PlatformIO IDE?

Yes. After de-installation, restart VS Code. During re-installation, watch the console for potential problems or prompts. Complete any requested actions before using PlatformIO. [Elektroda, khoam, post #18526369]

Why does PIO Home only appear sometimes after restarting VS Code?

“This can happen if the last PIO installation did not complete correctly.” You may have restarted before the console asked you to. Let installation finish fully, then restart once, and recheck the icon. [Elektroda, khoam, post #18526964]

Will PIO Home disappear during a session?

Users report it stays during a session and issues mainly occur at startup. One user saw it appear only two times after restarts, with long delays. If it vanishes mid-session, suspect installation or extension state. [Elektroda, sq9etc, post #18526953]

What should platform.ini look like for ESP-07 with Arduino?

A working example used: env name esp07, platform espressif8266, board esp07, framework arduino, and optional lib_extra_dirs. Match platform and board to your hardware. Adjust only what the project requires. [Elektroda, sq9etc, post #18526780]

Should I use lib_extra_dirs or the Library Manager?

Prefer the Library Manager in PIO Home. “You can directly install the libraries you need from PIO Home => Libraries.” This avoids brittle path references and simplifies updates. [Elektroda, khoam, post #18526914]

After importing an Arduino project, I see header file errors. What should I try?

Remove lib_extra_dirs and install the missing libraries via PIO Home => Libraries. Then rebuild the project so PlatformIO resolves headers correctly. This approach fixes many include errors. [Elektroda, khoam, post #18526914]

How do I perform a clean reinstall of PlatformIO?

Uninstall the PlatformIO extension and close VS Code. Delete the two PlatformIO-related directories from your user profile. Reinstall PlatformIO IDE and allow it to finish initializing before use. [Elektroda, Slawek K., post #18527749]

VS Code marks PlatformIO as unsafe or disabled. How do I enable it?

Open the Extensions view and select PlatformIO IDE. Click the shield icon in the main pane. Choose Trust to enable the extension globally and restore functionality. [Elektroda, Rybex, post #20346994]

Is Atom better than VS Code for PlatformIO?

They’re very similar in behavior and look. “There will be no big differences, even in appearance.” Pick the editor you prefer for workflow and plugins. [Elektroda, khoam, post #18532955]

Where can I find a working example to verify my setup?

Use the platform-espressif8266 examples on GitHub. Open an example project, build it, and compare platform.ini and structure with your setup. [Elektroda, khoam, post #18526914]
Generated by the language model.
ADVERTISEMENT