-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Latest pyenv versions require different initialisation #1882
Comments
Well that's a bummer. I'll try to take a look this weekend. |
Looking at it, I think pyenv/pyenv#1920 is probably the place with the most explanations about what's happening, why and what their plans for the future are. |
Thanks for reporting this ! So changes like this one have been a long-time-coming since you're not really supposed to modify the I have an idea for dealing with this particular instance: The devs have made the
With this transparency, we have permission to manually add the shims folder to our path, ie something like:
This could be a one-line fix that gets us past the issue for now ... |
That approach sounds more backwards compatible. |
Doh!, yes that is correct. An issue with setting the path first is that pyenv doesn't check the path before generating the new path statement (verified locally), so if the shims folder is already on the path, will be added to the path again ... perhaps not a terrible issue but less than ideal. So, reversing the order could be a quick-fix while we work on a better one. I suspect we'll need multiple plugins with some kind of tag in the name to distinguish them ... |
I've deleted my last comment because it was too long and not accurate. Instead, I've opened a PR that solves the problem, and will follow up with any discussion there. Thanks @SwampFalc & @davidpfarrell ! |
The latest versions of pyenv no longer support the initialisation commands that are currently used in the plugin.
Error message upon starting a new terminal:
Expected Behavior
Current Behavior
Error message. No shims in PATH.
Possible Solution
Hard to say... The fix in and of itself is simple, but I do not expect it to be backwards compatible. So anyone that updates bashit but not their pyenv would end up with the inverse problem.
Fix: use
pyenv init --path
instead ofpyenv init -
Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: