-
Notifications
You must be signed in to change notification settings - Fork 118
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
Python3 not recognised for right item #459
Comments
Yep, it should check for Fish has an internal function For your case, you can simply alias function python
python3 $argv
end This only works for Fish shell so won't break programs that find |
@kidonng yes and no. Yes, I tried that before and it works of course. However, my intention is that the default install of Thanks for pointing out In any case, I do believe that Fish and The bug I'm trying to address here is that the @IlanCosman what do you think? |
Sorry if I didn't make it clear, I'm not saying you should use a workaround (it is indeed a bug). I'm just pointing out a possible fix.
It only checks stub |
To add to this, no error should be raised if there's no Python binary. |
I ran into this as well. Latest Ubuntu LTS comes with a So this affects not only MacOS. It's no big deal to fix this on my system (suggestions are in this thread, a simple symlink does the trick as well), but it should be handled by tide as suggested by @JesseFarebro and @schlomo. The case of python3 only or no python at all should not cause errors. |
Thanks a lot! |
Describe the bug
Steps to reproduce
change into a Python-relevant directory
Screenshots
Environment
Output of
tide bug-report
:Additional context
I believe that the root cause is the fact that on recent MacOS
python
is not available any more by default, but onlypython3
. OTOH, within a Python virtual env there might again be apython
binary.While the
_tide_remove_unusable_items
function does check for bothpython
andpython3
, the_tide_item_python
function assumes that Python can always be called bypython
and doesn't check for apython3
binary.I was able to resolve the problem by amending
_tide_item_python.fish
to read like this:And the result works:
The text was updated successfully, but these errors were encountered: