Skip to content
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

Doesn't work on fish shell #19

Closed
augustocdias opened this issue Nov 22, 2021 · 8 comments
Closed

Doesn't work on fish shell #19

augustocdias opened this issue Nov 22, 2021 · 8 comments

Comments

@augustocdias
Copy link

When I open nvim using fish shell I'm getting a message that tabnine is not executable... Where is it even stored?

@tzachar
Copy link
Owner

tzachar commented Nov 22, 2021

Did you run the install script? This is probably no related to fish.

@augustocdias
Copy link
Author

augustocdias commented Nov 22, 2021

I've tried uninstalling and installing it again and the problem persists...

Error detected while processing /Users/augusto/.local/share/nvim/site/pack/packer/start/cmp-tabnine/after/plugin/cmp-tabnine.lua:
E5113: Error while calling lua chunk: Vim:E475: Invalid value for argument cmd: '/Users/augusto/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries/4.0.9/perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LC_ALL = (unset),
        LC_CTYPE = "UTF-8",
        LC_TERMINAL = "iTerm2",
        LANG = "en_DE.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
x86_64-apple-darwin/TabNine' is not executable
stack traceback:
        [C]: in function 'jobstart'
        ...pack/packer/start/cmp-tabnine/lua/cmp_tabnine/source.lua:175: in function '_on_exit'
        ...pack/packer/start/cmp-tabnine/lua/cmp_tabnine/source.lua:98: in function 'new'
        ...e/pack/packer/start/cmp-tabnine/lua/cmp_tabnine/init.lua:7: in function 'setup'

I've tried running it manually and the executables are there but somehow the plugin can't start

@tzachar
Copy link
Owner

tzachar commented Nov 23, 2021

what is the output of

find /Users/augusto/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries

I am also baffled as to why perl is being executed here.
Also try another shell, if you think its related to fish.

@augustocdias
Copy link
Author

I am migrating to fish from zsh... Everything works fine when I start it from zsh.

Here's the output

find /Users/augusto/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries                                                                                                                         I
/Users/augusto/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries
/Users/augusto/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries/4.0.9
/Users/augusto/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries/4.0.9/x86_64-apple-darwin
/Users/augusto/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries/4.0.9/x86_64-apple-darwin/TabNine
/Users/augusto/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries/4.0.9/x86_64-apple-darwin/TabNine-deep-cloud
/Users/augusto/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries/4.0.9/x86_64-apple-darwin/TabNine-deep-local
/Users/augusto/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries/4.0.9/x86_64-apple-darwin/WD-TabNine

@augustocdias
Copy link
Author

Okay. I found the reason.

It is the variables from the first message. I thought it were 2 distinct messages but as soon as I set those variables it started to work as expected.

Maybe add to the docs so maybe other fish users are aware.

@tzachar
Copy link
Owner

tzachar commented Nov 23, 2021

Again, why is perl being run here? any idea?

@augustocdias
Copy link
Author

No idea... Might be another plugin...

@tzachar
Copy link
Owner

tzachar commented Nov 23, 2021

Well, im closing this as I don't think its applicable in general.
Cheers.

@tzachar tzachar closed this as completed Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants