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

Exception occurs when hovering on defmodule #37

Open
axelson opened this issue Jan 5, 2019 · 0 comments · May be fixed by #38
Open

Exception occurs when hovering on defmodule #37

axelson opened this issue Jan 5, 2019 · 0 comments · May be fixed by #38

Comments

@axelson
Copy link

axelson commented Jan 5, 2019

When hovering on defmodule in an lsp-client you get an elixir_sense exception like:

Error from the Language Server: an exception was raised:
    ** (FunctionClauseError) no function clause matching in ElixirSense.Core.Source.tokenize_prefix/1
        (elixir_sense) lib/elixir_sense/core/source.ex:156: ElixirSense.Core.Source.tokenize_prefix({:ok, [{:identifier, {1, 1, nil}, :de}]})
        (elixir_sense) lib/elixir_sense/core/source.ex:142: ElixirSense.Core.Source.which_func/1
        (elixir_sense) lib/elixir_sense/providers/signature.ex:19: ElixirSense.Providers.Signature.find/5
        (language_server) lib/language_server/providers/signature_help.ex:4: ElixirLS.LanguageServer.Providers.SignatureHelp.signature/3
        (language_server) lib/language_server/server.ex:419: anonymous fn/3 in ElixirLS.LanguageServer.Server.handle_request_async/2 (Server End Error)

With the input to tokenize_prefix of {:ok, [{:identifier, {1, 1, nil}, :de}]}

lukaszsamson added a commit to lukaszsamson/elixir_sense that referenced this issue Oct 6, 2019
* fix pre 1.4 local call detection, add tests

* transform pipe calls into normal so they can be registered

* add pipe operator and capture references tests
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