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

platformio run command blocks platformio init completion in subprocess #283

Closed
jrobeson opened this Issue Sep 6, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@jrobeson
Contributor

jrobeson commented Sep 6, 2015

Currently, if you run platformio init --ide=anything with a non-existent ~/.platformio it will not run to completion and simply hangs waiting for user response. This prompt is never shown to the user due to subprocess execution here: https://github.com/platformio/platformio/blob/develop/platformio/ide/projectgenerator.py#L55

Here is the prompt (after some debugging):
The platform 'nordicnrf51' has not been installed yet. Would you like to install it now? [y/N]:.

Is there any way we can avoid calling another command here and simply do whatever run does internally instead?

@ivankravets ivankravets self-assigned this Sep 6, 2015

@ivankravets

This comment has been minimized.

Member

ivankravets commented Sep 6, 2015

See "Troubleshooting" section from installation page http://docs.platformio.org/en/latest/installation.html#troubleshooting

You have to use --force option before each command when running PlatformIO from subprocess. Like, platformio -f init --ide=anything

@ivankravets ivankravets closed this Sep 6, 2015

@ivankravets

This comment has been minimized.

Member

ivankravets commented Sep 6, 2015

Don't forget upgrade (platformio upgrade) PlatformIO to 2.3.0, which was released yesterday. It has improved Project Generator for the multiple IDE.

@jrobeson

This comment has been minimized.

Contributor

jrobeson commented Sep 6, 2015

this is in your code, so I don't see how you can close it. Please see the link. NOTE: I'm using what is in 2.3.0 by using the develop branch

The only command i ran is platformio init --ide=eclipse -b nrf51dk I did not attempt to use any subprocesses myself at all

@ivankravets ivankravets reopened this Sep 6, 2015

@ivankravets ivankravets added bug and removed help wanted labels Sep 6, 2015

@ivankravets ivankravets added this to the 2.3.1 milestone Sep 6, 2015

@ivankravets

This comment has been minimized.

Member

ivankravets commented Sep 6, 2015

Thanks! I'll fix it. Looks like critical bug, maybe I'll release 2.3.1 today.

@ivankravets

This comment has been minimized.

Member

ivankravets commented Sep 6, 2015

Thanks a lot for this report!!! 👍

PlatformIO 2.3.1 is released!

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