FabioAntunes / fish-nvm

nvm wrapper for fish-shell
MIT License
509 stars 20 forks source link

bass.py error #27

Closed rmi7 closed 5 years ago

rmi7 commented 5 years ago

just freshly installed this plugin through fisher,

however when after restarting the terminal (iTerm on MacOS Mojave) and typing in nvm, I get back:

python: can't open file '/Users/my-username/.config/fish/functions/__bass.py': [Errno 2] No such file or directory

Tried installing edc/bass using fisher, but still the same error (even after iTerm restart)

fisher ls outputs:

edc/bass
FabioAntunes/fish-nvm

.config/fish/functions/ contains:

-rw-r--r--  2 my-username  staff    141 Oct  4 11:12 __can_run_command.fish
-rw-r--r--  2 my-username  staff   1078 Oct  4 11:12 __nvm_run.fish
-rw-r--r--  2 my-username  staff    479 Sep  5 01:35 bass.fish
-rw-r--r--  1 my-username  staff  14322 Oct  6 12:28 fisher.fish
-rw-r--r--  2 my-username  staff     87 Oct  4 11:12 node.fish
-rw-r--r--  2 my-username  staff     74 Oct  4 11:12 npm.fish
-rw-r--r--  2 my-username  staff     82 Oct  4 11:12 npx.fish
-rw-r--r--  2 my-username  staff    500 Oct  4 11:12 nvm.fish
-rw-r--r--  2 my-username  staff   1594 Oct  4 11:12 nvm_alias_command.fish
-rw-r--r--  2 my-username  staff    772 Oct  4 11:12 nvm_alias_function.fish
-rw-r--r--  2 my-username  staff     77 Oct  4 11:12 yarn.fish

any help much appreciated

FabioAntunes commented 5 years ago

What's your fish and fisher versions

rmi7 commented 5 years ago

fish 2.7.1 fisher 3.0.3

FabioAntunes commented 5 years ago

@rmi7 can you try removing edc/bass and install FabioAntunes/bass

rmi7 commented 5 years ago

just did, still the exact same output

FabioAntunes commented 5 years ago

Ah crap the new fisher v3 doesn't symlink files anymore, the easiest way would be to manually copy the __bass.py file:

cp ~/.config/fisher/github.com/edc/bass/functions/__bass.py ~/.config/fish/functions/

for the time being

rmi7 commented 5 years ago

solved it by downgrading to fisher 2.13.0, since other plugins were also giving me trouble, thanks fro looking into this on such short notice

FabioAntunes commented 5 years ago

no worries could you give your feedback on https://github.com/jorgebucaran/fisher/issues/456

rmi7 commented 5 years ago

well I'm no expert on how fisher internally works so don't know what to add, but I'm glad to see that there is active discussion regarding this issue 👍

FabioAntunes commented 5 years ago

If you could post at least the packages that failed for you, that would be great

rmi7 commented 5 years ago

the other ones had different kinds of failures, likely related to package itself not being updated to work with fisher v3, so highly doubt they should be in that same issue.

but here they are:

jorgebucaran commented 5 years ago

@rmi7 No worries! jorgebucaran/fisher#456 is a non-technical discussion. We're trying to figure out whether is a good idea or not. The technical aspect is an after-thought.

FabioAntunes commented 5 years ago

I'm closing this issue, it seems that https://github.com/jorgebucaran/fisher/commit/7850f78e8a978dde82e983dab5334aaf41c9cbff solves the problem on v3.

@rmi7 If you have any problems feel free to re open this issue or open a new one