rachartier / tiny-code-action.nvim

A Neovim plugin that provides a simple way to run and visualize code actions with Telescope.
MIT License
113 stars 2 forks source link

nvim 0.10.1 pairs error #9

Closed dotrakoun-clearstreet closed 1 month ago

dotrakoun-clearstreet commented 1 month ago
Error executing vim.schedule lua callback: ...azy/tiny-code-action.nvim/lua/tiny-code-action/utils.lua:14: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
        [C]: in function 'pairs'
        ...azy/tiny-code-action.nvim/lua/tiny-code-action/utils.lua:14: in function 'find_key_in_table'
        ...zy/tiny-code-action.nvim/lua/tiny-code-action/action.lua:116: in function 'find_changes'
        ...zy/tiny-code-action.nvim/lua/tiny-code-action/action.lua:92: in function 'preview_action_callback'
        ...ny-code-action.nvim/lua/tiny-code-action/backend/vim.lua:25: in function 'callback'
        ...zy/tiny-code-action.nvim/lua/tiny-code-action/action.lua:47: in function 'handler'
        .../neovim/0.10.1/share/nvim/runtime/lua/vim/lsp/client.lua:687: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

using

 Client: efm (id: 1, bufnr: [1, 16])
    filetypes:       jsonc, markdown, yaml, json, vim, html, lua, sh, javascript, qml, javascriptreact, typescript, typescriptreact, python
    autostart:       true
    root directory:  /Users/dotrakoun/projects/fleet
    cmd:             /Users/dotrakoun/.local/share/nvim/mason/bin/efm-langserver

 Client: vtsls (id: 3, bufnr: [16])
    filetypes:       javascript, javascriptreact, javascript.jsx, typescript, typescriptreact, typescript.tsx
    autostart:       true
    root directory:  /Users/dotrakoun/projects/fleet/src/sovereign/typescript/apps/client
    cmd:             /Users/dotrakoun/.local/share/nvim/mason/bin/vtsls --stdio

 Client: cssmodules_ls (id: 4, bufnr: [16])
    filetypes:       javascript, javascriptreact, typescript, typescriptreact
    autostart:       true
    root directory:  /Users/dotrakoun/projects/fleet/src/sovereign/typescript
    cmd:             /Users/dotrakoun/.local/share/nvim/mason/bin/cssmodules-language-server

 Client: tailwindcss (id: 5, bufnr: [16])
    filetypes:       aspnetcorerazor, astro, astro-markdown, blade, clojure, django-html, htmldjango, edge, eelixir, elixir, ejs, erb, eruby, gohtml, gohtmltmpl, haml, handlebars, hbs, html, htmlangular, html-eex, heex, jade, leaf, liquid, markdown, mdx, mustache, njk, nunjucks, php, razor, slim, twig, css, less, postcss, sass, scss, stylus, sugarss, javascript, javascriptreact, reason, rescript, typescript, typescriptreact, vue, svelte, templ
    autostart:       true
    root directory:  /Users/dotrakoun/projects/fleet/src/sovereign/typescript/apps/client
    cmd:             /Users/dotrakoun/.local/share/nvim/mason/bin/tailwindcss-language-server --stdio

 Client: eslint (id: 6, bufnr: [16])
    filetypes:       javascript, javascriptreact, javascript.jsx, typescript, typescriptreact, typescript.tsx, vue, svelte, astro
    autostart:       true
    root directory:  /Users/dotrakoun/projects/fleet/src/sovereign/typescript/apps/client
    cmd:             /Users/dotrakoun/.local/share/nvim/mason/bin/vscode-eslint-language-server --stdio
rachartier commented 1 month ago

Hello, I'll need more info...

What is your backend ? Vim or Delta? Where does the code action appear (on your source code) ? On which action does the error appear? Can you show me a screenshot of all the code actions?

rachartier commented 1 month ago

I've pushed a temporary fix, so you can still use the plugin.

dotrakoun-clearstreet commented 1 month ago

all from eslint lsp

dotrakoun-clearstreet commented 1 month ago

actions-preview doesn't handle those actions either, so it's fine with the new fix!

image

rachartier commented 1 month ago

I'll try to find a solution. For now, it will stay like that! I'll come back to you if I did find something.

Thanks