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

platformio run command blocks platformio init completion in subprocess #283

Closed
ghost opened this issue Sep 6, 2015 · 5 comments
Closed
Assignees
Labels
Milestone

Comments

@ghost
Copy link

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

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

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

@ghost
Copy link
Author

ghost 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 this to the 2.3.1 milestone Sep 6, 2015
@ivankravets
Copy link
Member

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

@ivankravets
Copy link
Member

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
Labels
Projects
None yet
Development

No branches or pull requests

1 participant