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

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

Open
bkreider opened this issue Oct 27, 2021 · 3 comments
Open
Labels
TRIAGE Uncategorized issue

Comments

@bkreider
Copy link

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 bkreider added the TRIAGE Uncategorized issue label Oct 27, 2021
@bkreider
Copy link
Author

bkreider commented Oct 29, 2021

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.

@jbednar
Copy link
Collaborator

jbednar commented Oct 30, 2021

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

@AlbertDeFusco
Copy link
Collaborator

Is this solved by #380 ?

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

No branches or pull requests

3 participants