I keep getting this error, when I want to open or start a project. I use Ubuntu 16.04 LTS.
I tried everything recommend in https://github.com/platformio/platformio-atom-ide/issues/108#issuecomment-263939624 but nothing worked for me.
Here is the error:
/home/cooper/.atom/packages/platformio-ide/lib/utils.js:181
Hide Stack Trace
Error: Failed to get boards
at getBoards (/home/cooper/.atom/packages/platformio-ide/lib/utils.js:181:13)
at InitializeNewProjectView.initializeBoardsSelect (/home/cooper/.atom/packages/platformio-ide/lib/init/view.js:59:20)
at InitializeNewProjectView.initialize (/home/cooper/.atom/packages/platformio-ide/lib/init/view.js:55:10)
at InitializeNewProjectView.BaseView (/home/cooper/.atom/packages/platformio-ide/lib/base-view.js:25:20)
at new InitializeNewProjectView (/home/cooper/.atom/packages/platformio-ide/lib/init/view.js:25:38)
at Object.command (/home/cooper/.atom/packages/platformio-ide/lib/init/command.js:49:14)
at atom-workspace.platformioIdeInitializeNewProject (/home/cooper/.atom/packages/platformio-ide/lib/main.js:66:59)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:259:29)
at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:3:59)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/usr/share/atom/resources/app.asar/src/command-registry.js:160:19)
at runAtomCommand (/home/cooper/.atom/packages/platformio-ide/lib/utils.js:111:24)
at HTMLAnchorElement.callback (/home/cooper/.atom/packages/platformio-ide/lib/home-screen/quick-links.js:41:25)
Tried to delete ~/.atom, restart Atom and reinstall PlatformIO IDE but the error stayed the same.
The version shown on the Welcome screen shows this.
IDE 1.6.0 | CLI Failed to retrieve
pio boards puts out a long list of different platforms
pio --version
PlatformIO, version 3.1.0
There is some confusion on the atom --version.
Using a normal terminal or just checking under Help.
It shows: Atom : 1.12.5
Using the PlatformIO IDE Terminal I get:
cooper@CooperBook:~$ atom --version
v6.5.0