anaconda-project icon indicating copy to clipboard operation
anaconda-project copied to clipboard

[BUG] Anaconda-project appears to lockup if run on an empty directory.

Open bkreider opened this issue 2 years ago • 3 comments

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

bkreider avatar Oct 27 '21 20:10 bkreider

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.

bkreider avatar Oct 29 '21 22:10 bkreider

Adding that option seems like a good idea, but waiting for user input should presumably also be preceded by a prompt of some sort.

jbednar avatar Oct 30 '21 00:10 jbednar

Is this solved by #380 ?

AlbertDeFusco avatar Jul 08 '22 18:07 AlbertDeFusco