-
Notifications
You must be signed in to change notification settings - Fork 54
__avn_chpwd:local:1: not valid in this context error #36
Comments
Can you try without the If no conflict, can you share what version of |
Still no joy with rbenv commented out. ZSH 5.1.1 no addons other than oh my zsh |
Ok, the issue was with whitespace in the path name. I've got a branch up that you should be able to install & test. I want to add test coverage to this before merging, but don't have time right now. Please test with:
|
no joy I'm afraid. I tried with and without rbenv commented out. My .node-version just contains '0.12.7' is that correct - I couldn't find any example .node-version files anywhere! |
@apricot13 yes, that's correct. The format is documented here. Can you please provide debugging output when using that branch? |
using that branch the output is, I ran it before and after running hannahmacbook: ~/Projects/National Theatre/national-theatre-pp
→ __avn_debug
__avn_debug:local:1: not valid in this context: Theatre/national-theatre-pp/.node-version Definitely doesn't like the spaces. |
@apricot13 sorry, I had the sequence of commands slightly wrong before (I didn't update the version number on the branch, so avn didn't actually upgrade itself): npm i -g 'wbyoung/avn#zsh-whitespace-dir'
rm -r ~/.avn
avn setup Now open a new shell, |
you ⭐, it works! (also how do I get back to the main branch once your changes are merged in!?) |
@apricot13 once merged & released, it'll just be updating as usual. |
I've just switched to zsh and am getting the following error when I load a directory with a .node_version file in it
__avn_chpwd:local:1: not valid in this context: Theatre/national-theatre-pp/.node-version
I have this in my .zshrc file (copied over from my .bashrc)
can anyone point me in the right direction?
The text was updated successfully, but these errors were encountered: