lukechilds / zsh-better-npm-completion

Better completion for npm
MIT License
474 stars 35 forks source link

Error: (eval):1 command not found: _scripts #7

Closed denysdovhan closed 7 years ago

denysdovhan commented 7 years ago

I'm getting this error every time I hit <Tab>:

kapture 2017-10-11 at 11 01 40

lukechilds commented 7 years ago

Thanks for reporting, have you tried disabling zsh-better-npm-completion to see if that stops the error? It appears to be caused by calling _scripts inside eval which zsh-better-npm-completion doesn't do.

Also, what versions of zsh, node and npm do you have installed?

lukechilds commented 7 years ago

Oh, also what installation method did you use?

denysdovhan commented 7 years ago

Oh, also what installation method did you use?

Installed with zgen

zsh: 5.3 Node.js: v8.5.0 npm: 5.4.2

P.S: I'm also using zsh-autosuggestions and zsh-syntax-highlighting. Maybe that helps.

lukechilds commented 7 years ago

Sorry, also what OS? I'll see if I can recreate the issue.

Moving abroad over the weekend btw so may not be able to spend much time on this until next week.

Edit: Nevermind, just realised it's macOS from your GIF.

denysdovhan commented 7 years ago

I'm on macOS High Siera 10.13

lukechilds commented 7 years ago

Sorry for late reply, a lot of stuff going on in my personal life atm.

Did you try disabling?

Thanks for reporting, have you tried disabling zsh-better-npm-completion to see if that stops the error? It appears to be caused by calling _scripts inside eval which zsh-better-npm-completion doesn't do.

denysdovhan commented 7 years ago

Hmmm, it doesn't help 😕

lukechilds commented 7 years ago

You still get the error when you disable zsh-better-npm-completion?

denysdovhan commented 7 years ago

Yes. ¯_(ツ)_/¯

However, I’ve got this first time, after enabling zsh-better-npm-completion.

On Oct 19, 2017, at 12:15, Luke Childs <notifications@github.com mailto:notifications@github.com> wrote:

You still get the error when you disable zsh-better-npm-completion?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lukechilds/zsh-better-npm-completion/issues/7#issuecomment-337849084, or mute the thread https://github.com/notifications/unsubscribe-auth/ADTJLnJJGDRI77UDpHFzvuDvp98CWsbeks5stxM4gaJpZM4P1ES6.

lukechilds commented 7 years ago

Are you sure you didn't add/update any other plugins at the same time?

If it's not doing it with zsh-better-npm-completion removed then it's not likely to be a problem with zsh-better-npm-completion.

It's just a shell script that's sourced, nothing is left behind or installed.

denysdovhan commented 7 years ago

I understand. Let's keep this issue open. I'll try to figure it out.

lukechilds commented 7 years ago

Closing due to inactivity, if you find the issue is related to this plugin feel free re-open with more info.