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

Completion request fails on a LiveComponent #493

Closed
megalithic opened this issue May 20, 2024 · 0 comments · Fixed by #495
Closed

Completion request fails on a LiveComponent #493

megalithic opened this issue May 20, 2024 · 0 comments · Fixed by #495

Comments

@megalithic
Copy link

megalithic commented May 20, 2024

Using nightly neovim, latest elixir-tools.nvim; next-ls at 0.22.4:

[Warning] [Next LS] Failed to run completion request: ** (MatchError) no match of right hand side value: {:ok, {:badrpc, {:EXIT, {%Protocol.UndefinedError{protocol: Enumerable, value: Phoenix.LiveComponent, description: ""}, [{Enumerable, :impl_for!, 1, [file: ~c"lib/enum.ex", line: 1]}, {Enumerable, :reduce, 3, [file: ~c"lib/enum.ex", line: 166]}, {Enum, :reduce, 3, [file: ~c"lib/enum.ex", line: 4423]}, {:_next_ls_private_spitfire_env, :expand_macro, 7, [file: ~c"/Users/me/Library/Application Support/.burrito/next_ls_erts-14.2.2_0.22.4/lib/next_ls-0.22.4/priv/monkey/_next_ls_private_compiler.ex", line: 1443]}, {:_next_ls_private_spitfire_env, :expand_list, 4, [file: ~c"/Users/me/Library/Application Support/.burrito/next_ls_erts-14.2.2_0.22.4/lib/next_ls-0.22.4/priv/monkey/_next_ls_private_compiler.ex", line: 1596]}, {:_next_ls_private_spitfire_env, :expand_macro, 7, [file: ~c"/Users/me/Library/Application Support/.burrito/next_ls_erts-14.2.2_0.22.4/lib/next_ls-0.22.4/priv/monkey/_next_ls_private_compiler.ex", line: 1413]}, {:_next_ls_private_spitfire_env, :expand, 2, [file: ~c"/Users/me/Library/Application Support/.burrito/next_ls_erts-14.2.2_0.22.4/lib/next_ls-0.22.4/priv/monkey/_next_ls_private_compiler.ex", line: 1099]}]}}}}
    (next_ls 0.22.4) lib/next_ls.ex:642: anonymous fn/5 in NextLS.handle_request/2
    (next_ls 0.22.4) lib/next_ls.ex:1356: anonymous fn/4 in NextLS.dispatch_to_workspace/3
    (elixir 1.16.2) lib/enum.ex:2528: Enum."-reduce/3-lists^foldl/2-0-"/3
    (next_ls 0.22.4) lib/next_ls.ex:1355: anonymous fn/5 in NextLS.dispatch_to_workspace/3
    (elixir 1.16.2) lib/registry.ex:488: Registry.dispatch/4
    (next_ls 0.22.4) lib/next_ls.ex:1353: NextLS.dispatch_to_workspace/3
    (next_ls 0.22.4) lib/next_ls.ex:641: NextLS.handle_request/2
    (gen_lsp 0.8.1) lib/gen_lsp.ex:277: anonymous fn/2 in GenLSP.loop/3

For some more context, if I open a regular elixir module; completions work. For LiveComponents, for some reason, they do not. ElixirLS and lexical both provide completions (not sure that's of value).

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

Successfully merging a pull request may close this issue.

1 participant