Hi guys,
I'm trying to het PlatformIO running on my MacBook (El Capitan). Unfortunately, I get an error when starting:

I've tried reinstalling setuptools and platformio, but unfortunately with no luck.
Please try rm -rf ~/.atom and restart. Did it help you?
Already tried that. Same problem. :(
Very strange problem. Something is wrong with setuptools.
sudo pip install -U setuptoolsrm -rf ~/.atom$ sudo pip install -U setuptools
Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/site-packages
$ rm -rf ~/.atom
Still same problem.
Also interesting:
$ platformio
-bash: platformio: command not found
$ echo $PATH
/Users/Michael/.composer/vendor/bin:/usr/local/share/npm/lib/node_modules/grunt-cli/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Could you provide TeamViewer session for debug? Mail [email protected]. Thanks.
TeamViewer credentials in your mail.
I had the same problem on my Capitan with german OS settings; this command line worked for me:
LC_ALL=C /Applications/Atom.app/Contents/MacOS/Atom
Try to this line to your Shell profiles (~/.bash_profile or ~/.zshrc):
export LC_ALL=en_US.UTF-8
I agree that this solves the issue, but should't PlatformIO include a check for this?
but should't PlatformIO include a check for this?
Of course, it should check. That is why this issue marked as bug.
@MichMich Could you try the one idea?
export LC_ALL=en_US.UTF-8 in ~/.bash_profileNext:
process.env.LC_ALL = 'en_US.UTF-8'; below process.env.PATH = process.env.Path;Does it help?
The file ~/.atom/packages/platformio-ide/origin/lib/main.js does not exist. (There isn't an origin folder.)
I tried that change in ~/.atom/packages/platformio-ide/lib/main.js and that indeed solved the issue.
does not exist. (There isn't an origin folder.)
Sorry, it was my mistake.
I tried that change in ~/.atom/packages/platformio-ide/lib/main.js and that indeed solved the issue.
Do you mean, that process.env.LC_ALL = 'en_US.UTF-8'; helped you?
Could you try to restart Mac? It seems that OS caches system environment variables.
Do you mean, that process.env.LC_ALL = 'en_US.UTF-8'; helped you?
Yes, this is correct.
@svogl Could you try to replace this file ~/.atom/packages/platformio-ide/lib/main.js with https://github.com/platformio/platformio-atom-ide/blob/develop/lib/main.js ?
@ivankravets Work for me as well - I copied the modified platformio-ide package into a clean .atom subdirectory and the base installation has completed successfully.
@svogl Thanks a lot for the report! I'll release new IDE version as soon as possible.
Most helpful comment
Of course, it should check. That is why this issue marked as
bug.