platformio-vscode-ide icon indicating copy to clipboard operation
platformio-vscode-ide copied to clipboard

'platformio-ide.build' not found

Open edvinmellergard opened this issue 5 years ago • 41 comments

Temporary workaround

Please wait some time while PlatformIO installs dependent packages. You should see the "loading" indicator on the bottom status bar.


Hi, I'm having problem with platformio since a few days back. Haven't used VS Code for a few weeks and after updating everything I can no longer build.

I get the error: command 'platformio-ide.build' not found

I found a few people with similar issues but their solution didn't work for me. For example: https://community.platformio.org/t/problem-with-platformio-installation-on-vscode/9983 https://github.com/platformio/platformio-vscode-ide/issues/1127

I have tried:

  1. Uninstalling VS Code
  2. Uninstall pyton
  3. Delete %user%/.platformio
  4. Delete %user%/.vscode
  5. Downlaod VScode and install
  6. Install platformio extension
  7. Downlaod and install latest pyton (3.8.0) and add it to PATH.

Any one have any ideas?

image

EDIT: Windows x64 VSC 1.40.1 Platforio 3.0.1 Core 4.1.0

edvinmellergard avatar Nov 24 '19 14:11 edvinmellergard

I'm having the same issues on macOS Catalina. Home was crashing until a reboot for a few days, probably since the last update. Now I can't do anything and my project is dead in the water.

jhoughjr avatar Dec 08 '19 14:12 jhoughjr

I'm trying steps 3,4,6 will report if it works for me.

jhoughjr avatar Dec 08 '19 15:12 jhoughjr

:/ didn't/t work. Guess ill have to try Atom.

jhoughjr avatar Dec 08 '19 15:12 jhoughjr

Did you guys find a solution? I am having the same problem.

adx-git avatar Dec 22 '19 18:12 adx-git

closest I have come is to unistall the extension and just use pio command line. Ive also started just using esp-idf

jhoughjr avatar Dec 22 '19 19:12 jhoughjr

No solution yet :( I installed VS Code on another computer and run the build on that one after syncing the whole compiled project from the first computer to the second.

edvinmellergard avatar Dec 22 '19 22:12 edvinmellergard

Same problem here. Tried same process:

  1. Uninstalled PIO extension in workspace
  2. Removed %USERNAME%.vscode\extensions\platformio.platformio-ide-1.10.0 folder
  3. Removed %USERNAME%.platformio folder
  4. Installed python 3.8.1
  5. Restarted VS Code

It keeps saying: grafik

And the toolbar icon is also missing: grafik

My PATH variable: grafik

System: PlatformIO IDE 1.10.0 grafik

Crunch91 avatar Jan 24 '20 16:01 Crunch91

Solved only when i completely uninstall Visual Code and reinstall all again. But idk what exactly helps...

FoxExe avatar Jan 27 '20 09:01 FoxExe

I had PlatformIO working when I installed it first. Then I tried to add some external libraries (Arduino) etc. to a project using sym link, which did not work and then copy, which works but who wants to copy the same libraries in multiple projects. So I removed the libraries. Then I noticed, the tools vanished and the commands don't work. The only thing that works is pio commands. The UI seems to be flaky. I tried every possible solution barring reinstalling VSCode, which I have no plans on doing as I have other extensions that are needed and working.

backpacked avatar Jan 30 '20 16:01 backpacked

Solved only when i completely uninstall Visual Code and reinstall all again. But idk what exactly helps...

Did not help in my case. Still same behaviour as before.

Crunch91 avatar Feb 02 '20 10:02 Crunch91

tried same solutions but got same behaviour. could not start ide at all....

heumann-a avatar Mar 19 '20 18:03 heumann-a

Uninstall VisualCode and delete all whats left: C:\Program Files\Microsoft VS Code C:\Users%UserName%.vscode C:\Users%UserName%.platformio

Then, reinstall VSCode and plugins. Its help me.

FoxExe avatar Mar 25 '20 08:03 FoxExe

I got the same error when I opened a folder which didn't have a platformio.ini file. When I opened the correct (child) folder it worked. It would be nice if platformio shouted if you were trying to build in a folder that doesn't have a platformio.ini instead of giving a cryptic 'platformio-ide.build' not found' error.

I'm not saying that OP has same problem as me but it's a possibility.

owennewo avatar May 02 '20 18:05 owennewo

Hi,

Thanks for the report! We rewrote PlatformIO Core installer from the scratch. Please download and install the latest PlatformIO IDE for VSCode 2.0 Beta as described in Try Beta section on that page.

Please respond to this thread if it helped you or you still have an issue. We will reopen this issue again.

Regards, Your friends at PlatformIO

ivankravets avatar Jun 03 '20 12:06 ivankravets

It does not solve the problem. Nothing has changed. image

nnukem avatar Jun 09 '20 07:06 nnukem

You need to open PlatformIO project. Please click on Home icon in the bottom of toolbar and press open project

ivankravets avatar Jun 09 '20 07:06 ivankravets

I am getting this "command 'platformio-ide.build' not found" on both my two Windows PCs & my MacBook Pro.

Not tried to fix Mac yet, but on Windows, uninstalling and deleting all python, platformio and vscode apps and settings/folder, and also uninstalled Mu (which was used for the new Rapsberry Pi Pico), and removing all references in paths - reboot and reinstall -- did not work

Then I tried a different project (C++ PlatformIO different processor) and it was OK -- so I believe it is a project configuration problem

Under PlatformIO -- Project Tasks -- Advanced I ran Test, then Check, Verbose Build -- some of these installed new command line tools

Then everything worked again.

Nuntis-Spayz avatar Feb 28 '21 12:02 Nuntis-Spayz

If nothing works rollback to version 2.1.0, and it worked for me

Noman5237 avatar Mar 21 '21 09:03 Noman5237

@Noman5237 do you mean that the latest 2.3.0 does not work for you?

ivankravets avatar Mar 21 '21 12:03 ivankravets

Yeah I currently cannot make the latest version work

Noman5237 avatar Mar 21 '21 12:03 Noman5237

Please switch back to the latest version and provide more details on how to reproduce your issue. VSCode > Menu > Help > Toggle Developer Tools > Console should help you.

ivankravets avatar Mar 21 '21 12:03 ivankravets

Please switch back to the latest version and provide more details on how to reproduce your issue. VSCode > Menu > Help > Toggle Developer Tools > Console should help you.

I updated to the latest version 2.3.0 and now it works flawlessly,😕 Previously none of the build or upload buttons showed up, i couldn't even made it work from command palette. Well no worries for now, thank you @ivankravets 🙇‍♂️

Noman5237 avatar Mar 21 '21 15:03 Noman5237

Great that it works now!

Happy coding with PlatformIO! 🚀

ivankravets avatar Mar 21 '21 18:03 ivankravets

I see "'platformio-ide.build' not found" "'platformio-ide.upload' not found" "'platformio-ide.clean' not found" errors when something is installing inside VS Code Platformio extension and I press "compile", "upload", "clean". First run. I think it is first install framework. Wait a minute and all works fine.

Windows 10x64

dontsovcmc avatar Mar 28 '21 21:03 dontsovcmc

I have the same problem: "command platformio-ide.build" not found when attempting to build with espidf platform. I can build fine when selecting arduino platform. I'm using PlatformIO home version 3.3.4, core 5.1.1.

This is frustrating. I absolutely do not wish to uninstall all this stuff and re-install it. There must be some configuration or something somewhere which remedies this. Does anyone understand the root cause of the error?

mbratch avatar Apr 09 '21 13:04 mbratch

@mbratch do you see ⚙️ the indicator at the bottom "blue" panel that indicates rebuilding project index?

ivankravets avatar Apr 09 '21 13:04 ivankravets

@ivankravets thanks so much for the quick response. I had just this morning suddenly run into this issue enabling the esp32 platform. After fussing with it awhile I finally decided to completely uninstall, remove, and reinstall platformio and it did clear up the problems. So looks good now. Sorry for the earlier rant.

mbratch avatar Apr 09 '21 15:04 mbratch

Hm, strange issue. It could be great to reproduce it.

ivankravets avatar Apr 09 '21 15:04 ivankravets

Hi, I have the same problem. I installed the extension not having Arduino IDE installed and after installing Arduino IDE problem is still here. I tried uninstalling the extension and Arduino IDE but it didn't help.

molodchyk avatar May 21 '21 10:05 molodchyk

This could be a red herring, but what seems to help me in those situations is just giving the IDE a few minutes (to index the project?) and then things just magically start working.

Sorry if this doesn't help anyone else, just wanted to share my experience with this issue...

I can easily reproduce the problem if I switch framework in platform.ini between arduino and espidf for example.

It would helpful if the IDE would disable the compile/build button while doing its thing and display some progress report on whatever it is doing while getting the project ready.

gerard-hm avatar Jul 18 '21 21:07 gerard-hm