-
Notifications
You must be signed in to change notification settings - Fork 3
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
New environment not created properly #2
Comments
Sounds like I need to disallow empty projects. Note that it takes a directory where you keep your projects, ie mine is |
Yep, my PROJECT_DIRS is It's an existing project, not an empty folder. |
What platform are you on? |
OSX El Capitan |
If you cd into your project and run:
What does it print out? |
the folder I'm in is
gives Looks like it has too much of the path in there. |
Nope, that's exactly right. I wanted vox to have support for organized environments, not just a flat space. This might be a bug in the underlying vox library. Does |
vox gets it correct. It creates an |
and now, changing directory back into my project folder is failing with a key error. |
That's odd twice over. avox is just a policy wrapper around vox. Vox is still doing all the hard work. The output of You should need to refer to the environment by the full name. Vox doesn't go searching through subdirs to do activations. That is, |
KeyError from whom? |
Also, with the new release of avox, an error should not prevent changing the directory. |
It did still change directory. |
Now that's wacky. What's the full backtrace? |
|
That's from |
whoops. yes. wrong one..... |
|
I'm reproducing that on my end, but it's extra wacky. avox should only be trying to activate environments that exist ( Weirdly, it's only happening for the top directory, not the subdirs. |
Ohhhhhh!!!!!!!
|
Marvellous! At least my own sanity is restored!! |
Filed as xonsh/xonsh#1689 and xonsh/xontrib-vox#6. Hopefully I'll have time to fix them tonight (busy kind of day), but it won't be released for a few weeks. (xonsh is on a month-ish release schedule.) I think this is just a vox issue, but I'm keeping it open until I'm sure. |
Submitted as xonsh/xonsh#1727. Rumor is that there may be a new xonsh release in a little while. |
Running
avox new
within a project directory gives the following messages:However, no environment is activated.
vox list
then shows no environment with a name matching the project directory.It does show three new environments named
bin
,include
andlib
running
avox new
once again gives:and
avox remove
gives:removing the
bin
,include
andlib
folders from my virtualenvs directory puts me back where I started.The text was updated successfully, but these errors were encountered: