anaconda-project
anaconda-project copied to clipboard
[BUG] Anaconda-project appears to lockup if run on an empty directory.
ALL software version info
anaconda-project -v 0.8.3
Description of expected behavior and the observed behavior
Running anaconda-project run
from a directory having no project causes hanging. Same for anaconda-project list-commands
.
E.g. your anaconda-project.yml file
No project file.
Complete, minimal, self-contained example code that reproduces the issue
mkdir test
cd test
anaconda-project run
You can see a stack trace using Ctrl-C if you raise an exception inside: $PREFIX/lib/python3.7/site-packages/anaconda_project/internal/cli/bug_handler.py:36
I actually think this is caused by an interactive prompt. I was running it via a subprocess. It hangs while waiting for user input. I think there was other slowness where i was killing to before it finished in the "by hand" testing above.
The fix is a feature so we can pass a --no or --yes option to answer this dialog.
Adding that option seems like a good idea, but waiting for user input should presumably also be preceded by a prompt of some sort.
Is this solved by #380 ?