IDE integration fails for Eclipse OSX Luna SR2 or MARS - missing builder #272

Closed
gslender opened this Issue Aug 20, 2015 · 9 comments

Projects

None yet

2 participants

@gslender

IDE integration fails for Eclipse OSX Luna SR2 or MARS - missing builder with a path not found.

Error is [Program "platformio" not found in PATH]

If I copy full/correct path it works..../usr/local/bin/platformio

Not sure why

@gslender

Didn't get any better after that...

08:09:11 **** Build of configuration Default for project art.test ****
/usr/local/bin/platformio --force run 
[Fri Aug 21 08:09:11 2015] Processing uno (platform: atmelavr, targets: upload, framework: arduino, board: uno)
--------------------------------------------------------------------------------
Error: The PlatformIO and `scons` aren't installed properly. Please use official installation manual: http://docs.platformio.org/en/latest/installation.html
Command canceled

08:09:14 Build Cancelled (took 2s.475ms)

@gslender

I've had both Windows and now Mac OSX not work in terms of integration - talk about bad luck!

@gslender

I think this issue is due to the fact that Mac OS X does not include /usr/local/bin in its default PATH. Therefore, assuming you're using the default bash shell, you need to execute the command (or include in /etc/profile) export PATH=/usr/local/bin:$PATH

@gslender

Fixed the problem by adding 'setenv PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin' to the file /etc/launchd.conf and rebooted.... Eclipse now can find platformio

@ivankravets ivankravets added this to the 2.3.0 milestone Aug 21, 2015
@ivankravets ivankravets self-assigned this Aug 21, 2015
@ivankravets
Member

Thanks! I've just added info/note to each IDE into docs http://docs.platformio.org/en/latest/ide/eclipse.html#integration

@gslender

In researching this issue, the solution is different for each release of OS X, so I would recommend that you look at some other way of having Eclipse or OS X find the platformio command. It would seem that /usr/local/bin isn't a place where GUI apps commonly have in their path... a problem that starts in early version of OS X and continues into the latest. The solution I use won't work on OS X 10.10 for example.

Can you put a sym link into /usr/bin or similar upon installation so that it is found in the GUI app on OS X ????

@gslender

I had this problem again when installing on a Yosemite (10.10) OS X workstation and fixed it in a way that I think you could probably add to your install script.

# cd /usr/sbin
# ln -s /usr/local/bin/platformio platformio
@ivankravets
Member

Thanks, docs updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment