Closed alairock closed 4 years ago
I am seeing this error even if I set $PROJECT_DIRS
both in ~/.configs/xonsh/config.json
and in ~/.xonshrc
.
Furthermore, if xonsh is started in the project dir, it doesn't activate the avox environment. I have to cd to another directory (produces an error when it tries to deactivate the environment that was never activated), and then CC back into the directory again.
xonsh: For full traceback set: $XONSH_SHOW_TRACEBACK = True
xontrib.voxapi.NoEnvironmentActive: No environment currently active.
Exception raised in event handler; ignored.
Whoops, my bad. I misread that. Need to load avox from ~/.xonshrc
. That seems to help.
Worth noting that the xonsh first time configuration prefers to use ~/.configs/xonsh/config.json
.
I'll have to look in to supporting config.json
more.
It appears that loading avox should happen after inserting items at the start of $PATH
. Otherwise you end up with a PATH that looks like:
$PATH=/usr/local/bin:/Users/brianmay/.virtualenvs/<myproject>/bin:/usr/bin:/bin
Which looks OK initially. However when leaving the environment, both first two items are removed, leaving you with:
$PATH=/usr/bin:/bin
Which is missing the /usr/local/bin
.
Loading avox last, means it gets the first item in the stack, which is probably what it expects.
Ok, yup. I need to change how it's initialized.
Closing this since xonsh itself removed the xonfig feature.
Having defined
$PROJECT_DIRS
in my .xonshrc, on boot I get the following error:From chat: