Giter Club home page Giter Club logo

Comments (5)

echasnovski avatar echasnovski commented on September 15, 2024

Thanks for the issue!

Unfortunately, I can not reproduce. Would you mind clarifying some details?

  • Does running :lua vim.lsp.buf.references() work? It should be in the same exact conditions as when :Pick lsp scope='references' fails.
  • With what languages and language servers did you see this behavior?

If the first question is negative (as in "vim.lsp.buf.references() works but :Pick lsp scope='references' does not), then I'd have to ask for a reproducible example. So that I can copy and investigate locally. You can use the start of this 'mini.deps' example script or the one from 'lazy.nvim' issues, whichever you're most comfortable with.

from mini.nvim.

rob32 avatar rob32 commented on September 15, 2024

Hey thanks for the super quick feedback.

Regarding point 1: "Does running :lua vim.lsp.buf.references() work"
-> Yes, this works without the E79:

image

With :Pick lsp scope='references' i get the E79:
image

Only after I press space the window appears. Same result as with :lua vim.lsp.buf.references():
image

Regarding point 2: "With what languages and language servers did you see this behavior?"
-> lua_ls, basedpyright, phpactor, intelephense (lua/python/php)


While researching, I found a user who got the same error message but with a theme plugin. I think it was due to the fish shell (which I also use).

...

I hope I can upload a reproducible example this evening.

In any case, many thanks in advance 🙏

PS: sorry for the bad example and the big screenshots above

from mini.nvim.

echasnovski avatar echasnovski commented on September 15, 2024

Interesting.

Based on this comment, would you mind testing if :Pick lsp scope="references" (note double quotes instead of single quotes) works?

If it does work, could you, please, also execute :=vim.fn.expandcmd("scope='references'") (as this is what 'mini.pick' is doing in :Pick command) and see if it gives the E79 error?

from mini.nvim.

rob32 avatar rob32 commented on September 15, 2024

:Pick lsp scope="references" works 👍

with :=vim.fn.expandcmd("scope='references'") I get the E79 again:
image

from mini.nvim.

echasnovski avatar echasnovski commented on September 15, 2024

:Pick lsp scope="references" works 👍

with :=vim.fn.expandcmd("scope='references'") I get the E79 again:

Great! Then I don't think it is a 'mini.pick' / 'mini.extra' issue. It is said that :h expandcmd() should work, but it seems to have issues with single quotes and Fish shell. This looks like an upstream Neovim problem.

If you want, opening an issue there mentioning that :=vim.fn.expandcmd("scope='references'") fails can be helpful. Although, this might be even a more upstream (Vim) issue.

Closing as an upstream issue.

from mini.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.