Platformio-atom-ide: Failed to run a command: build

Created on 1 Apr 2017  ·  6Comments  ·  Source: platformio/platformio-atom-ide

New user running on Ubuntu 16.10, IDE 2.0.0-beta.2.3, Core 3.4.0a3. Getting the "failed to run a command: build" error.

What I'm doing: I followed the quickstart recipe, and tried with a new project, and importing an existing Arduino IDE project. Deleted my .atom and .platformio directories and reinstalled everything. No joy.

What I've tried:

  • Verified I don't have a separate version of PIO.
  • Downgraded to ide 1.7.3 (didn't work for me at all).
  • Checked the FAQ, this error is not listed.
  • Checked build package is enabled, per bug #79
  • Tried with platformio-build package instead.
  • Verified that the same install sequence works as expected on Windows 10 x64.
bug

Most helpful comment

I've isolated this and worked around it: My dev directory is a symlink. I had opened the project through that symlink. When opened with the full absolute filepath with no symlinks, it works correctly.

Suggest you retain this as a bug and add some liberal use of $(readlink -f $1) to the code.

All 6 comments

Could you make clean uninstall of PIO IDE + Atom? Then, install the latest Atom and stable PIO IDE 2.0.0-beta.2.

http://docs.platformio.org/en/latest/ide/atom.html#uninstall-atom-with-platformio-ide

No joy with three different versions of atom. I'm not familiar with Atom, is there a process log somewhere?

NB that some elements of the clean install instructions are absent on my computer:

  • .config/Atom exists, but not .config/Atom-Shell
  • I am using packaged versions of Atom, so nothing is in /usr/local/...

I attempted with the following versions of Atom, with full purge (including apt-get purge) before each attempt.

  • initial attempt: atom-amd64 1.15.0 from webupd8 ppa
  • second attempt: 1.15.0 direct download from front page of atom.io
  • third attempt: 1.16.0-beta0 from beta page of atom.io.

Could you provide an output of apm list command?

1.16 beta0 had no such command. Purged, reinstalled 1.15.0, with following results:

bash: .bashrc: No such file or directory
at@punk:~/pblink$ apm list

[36mBuilt-in Atom Packages[39m (89)
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

Community Packages (13) /home/at/.atom/packages
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

I've isolated this and worked around it: My dev directory is a symlink. I had opened the project through that symlink. When opened with the full absolute filepath with no symlinks, it works correctly.

Suggest you retain this as a bug and add some liberal use of $(readlink -f $1) to the code.

@dsjstc I could kiss you! This was driving me nuts. I uninstalled and re-installed platformio, tried all sorts of things but kept getting the "Failed to run a command build" error. Even though Build was installed and enabled.

I just read your message about symlinks :-) My dev directory structure is on a separate disk and I symlink it to a local directory. Guess what. I closed the project, and opened it via the full path and it works! I didn't have this issue before the recent IDE 2 upgrade

Thanks a million for that tip.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wurmtal868 picture wurmtal868  ·  4Comments

mf1040 picture mf1040  ·  3Comments

johoberm picture johoberm  ·  5Comments

stelgenhof picture stelgenhof  ·  10Comments

urbanmichal picture urbanmichal  ·  7Comments