logo elektroda
logo elektroda
X
logo elektroda

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

sq9etc 2307 19
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
    khoam
    Level 42  
    sq9etc wrote:
    What is wrong?
    .
    Is "PlatformIO IDE" listed in Extensions as installed?

    Visual Studio Code + Platformio - Installed, and I cannot create a project. .
  • #3 18525975
    sq9etc
    Level 12  
    Exactly right. It shows up as installed, I'm just missing that house icon on the bottom bar.
  • #4 18525987
    khoam
    Level 42  
    A strange thing, but the same functionality can be achieved by selecting the PIO icon on the left sidebar and then 'Open' in the menu.

    Visual Studio Code + Platformio - Installed, and I cannot create a project. .
  • #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.
  • ADVERTISEMENT
  • #6 18526369
    khoam
    Level 42  
    sq9etc wrote:
    I think I will uninstall the extension, then VSC and try again to install everything one by one.
    .
    After the de-installation you have to restart VSC. During the re-installation of the PlatformIO IDE, messages may appear in the VSC console window about possible problems.
  • #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
    khoam
    Level 42  
    What does the platform.ini file look like in this imported project?
  • #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
    khoam
    Level 42  
    sq9etc wrote:
    Only this PIO Home rarely appears to me in Visual Studio Code.
    .
    This is what I don't understand. During a session with VSC does it disappear and reappear? Or is it just that after VSC reboots once it is there and once it is not.
  • 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
    khoam
    Level 42  
    sq9etc wrote:
    It has appeared 2 times so far, but with a long delay after starting VSC.
    .
    This can happen if the last PIO installation did not complete correctly, and you restarted VSC before the console message to restart VSC appeared.
  • #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
    khoam
    Level 42  
    sq9etc wrote:
    I installed the Atom from PlatformIO and there everything runs from the first shot.
    .
    There will be no big differences, even in appearance :) .
  • #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.
Summary generated by the language model.
ADVERTISEMENT