You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran into an interesting issue when trying to use autojump. When starting in a directory that contains a .python-version file, which the tool pyenv uses to set a local Python version, autojump will fail if said version is not installed. Here's the error I get:
$ j down
pyenv: version `3.8.3' is not installed (set by /Users/tylucaskelley/Code/validation-service/.python-version)
autojump: directory 'down' not found
\n\n
Try `autojump --help` for more information.
If I remove the .python-version file, the issue goes away. The reason why that local version isn't installed is because I'm using the Poetry package management tool for my Python projects, so I don't actually need to install that version on my system globally.
Reproducing
Here's a minimal way to reproduce the issue (assuming autojump already installed)
Install pyenv on the system
Create a directory with a .python-version file in it, and set to a Python version not installed on the system
Go to said directory, and try to use autojump to leave - should get the same error I did above
System info
macOS 10.15.5
autojump installed via Homebrew
System has pyenv installed
Using iTerm 2
The text was updated successfully, but these errors were encountered:
This won't be the case if autojump is not implemented in a interpreted language like Python. So I've created a project to rewrite it in Go, you may want to give it a try: https://github.com/suzaku/shonenjump
I found an easy solution here.
Basically, you just need to copy the 4 .py files from your system python (/usr...): autojump_argparse, autojump_data, autojump_match, autojump_utils to the corresponding version in .pyenv.
Description
Ran into an interesting issue when trying to use autojump. When starting in a directory that contains a
.python-version
file, which the toolpyenv
uses to set a local Python version, autojump will fail if said version is not installed. Here's the error I get:If I remove the
.python-version
file, the issue goes away. The reason why that local version isn't installed is because I'm using the Poetry package management tool for my Python projects, so I don't actually need to install that version on my system globally.Reproducing
Here's a minimal way to reproduce the issue (assuming autojump already installed)
pyenv
on the system.python-version
file in it, and set to a Python version not installed on the systemSystem info
The text was updated successfully, but these errors were encountered: