Skip to content

[nvim][Telescope] LSP: server does not support workspace_symbol #1227

Closed

Description

@weeman1337

I am tried to set up Phpactor with NeoVim and Telescope.

Telescope provides searching lsp_workspace_symbols. Unfortunately that doesn't work: LSP: server does not support workspace_symbol.

Another search lsp_document_symbols on the other hand is working.

I am not sure whether this is a missing feature of the Phpactor LSP or Telescope or NeoVim's LSP Client.

If I can help with additional information let me know.

Activity

  1. dantleech commented on Apr 10, 2021

    @dantleech
    Collaborator

    This is currently a missing feature in Phpactor - but I don't think it would be hard to implement as the search capabilities are already in place, I'll see if I can pick some low hanging fruit...

  2. dantleech commented on Apr 10, 2021

    @dantleech
    Collaborator

    Implemented in #1228 - currently only supporting classes, function names and and constnats according to what is currently indexed - so it will not find class members. I'm not sure what the more popular use cases are here.

  3. weeman1337 commented on Apr 11, 2021

    @weeman1337
    ContributorAuthor

    Wow that was fast @dantleech . With the latest master it didn't work. I have run composer i and ./phpactor cache:clear.

    Running the completion returns No results from workspace/symbol. Maybe try a different query: Telescope lsp_workspace_symbols query=example. I am not sure whether that is a Telescope or Phpactor issue.

    currently only supporting classes, function names

    That is a great start.

  4. weeman1337 commented on Apr 11, 2021

    @weeman1337
    ContributorAuthor
  5. dantleech commented on Apr 11, 2021

    @dantleech
    Collaborator

    I guess it wouldn't harm to return all symbols for an empty string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions