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

Request textDocument/hover failed. #556

Open
ConnorRigby opened this issue Nov 13, 2024 · 3 comments
Open

Request textDocument/hover failed. #556

ConnorRigby opened this issue Nov 13, 2024 · 3 comments

Comments

@ConnorRigby
Copy link

I get this error on one project for pretty much every function in the project. unsure what exactly i'm doing wrong, but {:error :module_not_found} seems important. happy to share what i can

Request textDocument/hover failed.
  Message: ** (MatchError) no match of right hand side value: [ok: {:docs_v1, 1, :elixir, "text/markdown", :none, %{}, [{{:function, :create_reminder, 1}, 24, ["create_reminder(args)"], :none, %{}}, {{:function, :list_reminders, 0}, 38, ["list_reminders()"], :none, %{}}, {{:function, :parse_message, 2}, 45, ["parse_message(message, regex)"], :none, %{}}, {{:function, :update_reminder, 2}, 31, ["update_reminder(reminder, now)"], :none, %{}}, {{:type, :time_unit, 0}, 5, [], :none, %{}}, {{:type, :create_attrs, 0}, 7, [], :none, %{}}, {{:type, :base_attrs, 0}, 15, [], :none, %{}}]}, ok: {:error, :module_not_found}]
    (next_ls 0.23.2) lib/next_ls.ex:377: anonymous fn/3 in NextLS.handle_request/2
    (next_ls 0.23.2) lib/next_ls.ex:1339: anonymous fn/4 in NextLS.dispatch/3
    (elixir 1.17.2) lib/registry.ex:488: Registry.dispatch/4
    (next_ls 0.23.2) lib/next_ls.ex:1338: NextLS.dispatch/3
    (next_ls 0.23.2) lib/next_ls.ex:376: NextLS.handle_request/2
    (gen_lsp 0.10.0) lib/gen_lsp.ex:350: anonymous fn/2 in GenLSP.loop/3
    (telemetry 1.2.1) /Users/runner/work/next-ls/next-ls/deps/telemetry/src/telemetry.erl:321: :telemetry.span/3
    (gen_lsp 0.10.0) lib/gen_lsp.ex:349: anonymous fn/7 in GenLSP.loop/3
@mhanberg
Copy link
Collaborator

Are you using workspace folders with this project?

@ConnorRigby
Copy link
Author

Are you using workspace folders with this project?

this project does use this, yeah

@mhanberg
Copy link
Collaborator

Roger, I suspect that you have one of the workspaces as a subfolder of another workspace, which is causing the issue.

Its not clear to me if having a workspace folder be inside another is valid or not, but I believe I can fix this regardless.

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

2 participants