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

Error executing luv callback #14

Open
AlanWarren opened this issue Sep 20, 2024 · 0 comments
Open

Error executing luv callback #14

AlanWarren opened this issue Sep 20, 2024 · 0 comments

Comments

@AlanWarren
Copy link

Hello! Thanks for this plugin. I've been using it for a long time without any issue.

Today I notice the following error when adding some build scripts to my package.json. For example -

"scripts": {
  "build": "tsc --p ./tsconfig.lib.json && vite build",
  "build:test"   <-- insert mode with cursor inside quotes here

I'm seeing the following error:

Error executing luv callback:
...warren/.config/nvim/plugged/cmp-npm/lua/cmp-npm/init.lua:112: attempt to index local 'name' (a nil value)
stack traceback:
        ...warren/.config/nvim/plugged/cmp-npm/lua/cmp-npm/init.lua:112: in function '_user_on_exit'
        ...en/.config/nvim/plugged/plenary.nvim/lua/plenary/job.lua:241: in function '_shutdown'
        ...en/.config/nvim/plugged/plenary.nvim/lua/plenary/job.lua:48: in function <...en/.config/nvim/plugged/plenary.nvim/lua/plenary/job.lua:39>

If I continue typing out my build script value. i.e. "build:test": "some text here" With my cursor between the quotes of the value in insert mode, I see nvim-cmp open suggestions from co-pilot and I get the following error.

Error executing luv callback:
...warren/.config/nvim/plugged/cmp-npm/lua/cmp-npm/init.lua:89: bad argument #1 to 'match' (string expected, got nil)
stack traceback:
        [C]: in function 'match'
        ...warren/.config/nvim/plugged/cmp-npm/lua/cmp-npm/init.lua:89: in function <...warren/.config/nvim/plugged/cmp-npm/lua/cmp-npm/init.lua:88>
        [C]: in function 'sort'
        ...warren/.config/nvim/plugged/cmp-npm/lua/cmp-npm/init.lua:88: in function '_user_on_exit'
        ...en/.config/nvim/plugged/plenary.nvim/lua/plenary/job.lua:241: in function '_shutdown'
        ...en/.config/nvim/plugged/plenary.nvim/lua/plenary/job.lua:48: in function <...en/.config/nvim/plugged/plenary.nvim/lua/plenary/job.lua:39>

Any help would be appreciated.

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

1 participant