Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gslender opened this issue Aug 20, 2015 · 9 comments
Closed
Assignees
Milestone

Comments

@gslender
Copy link

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
Copy link
Author

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
Copy link
Author

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

@gslender
Copy link
Author

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
Copy link
Author

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
Copy link
Member

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

@ivankravets
Copy link
Member

@gslender
Copy link
Author

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
Copy link
Author

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
Copy link
Member

Thanks, docs updated.

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

No branches or pull requests

2 participants