Closed nrzull closed 1 year ago
Why are you running on master elixir_sense? ElixirLS is not updated yet to handle changed API.
@lukaszsamson didn't get it. I just installed vscode-elixir-ls
0.14.5 version and it gives me such error. I don't use elixir_sense
directly in my projects.
How did you install it?
@lukaszsamson via extensions marketplace in vscode
I got the same issue with the following steps:
mix phx.new
Enum
) internal
Starting ElixirLS release v0.14.5
Running in /Users/frederik/tmp/elixir_ls_test
[Info - 09:49:59] Started ElixirLS v0.14.5
[Info - 09:49:59] Running in /Users/frederik/tmp/elixir_ls_test
[Info - 09:49:59] ElixirLS built with elixir "1.14.4" on OTP "25"
[Info - 09:49:59] Running on elixir "1.14.4 (compiled with Erlang/OTP 25)" on OTP "25"
[Warn - 09:49:59] OTP compiled without EEP48 documentation chunks. Language features for erlang modules will run in limited mode. Please reinstall or rebuild OTP with appropriate flags.
[Info - 09:49:59] Elixir sources not found (checking in /home/build/elixir). Code navigation to Elixir modules disabled.
[Info - 09:49:59] Loaded DETS databases in 17ms
[Info - 09:49:59] Starting build with MIX_ENV: test MIX_TARGET: host
==> floki
Compiling 2 files (.erl)
Compiling 28 files (.ex)
Generated floki app
==> decimal
Compiling 4 files (.ex)
Generated decimal app
==> mime
Compiling 1 file (.ex)
Generated mime app
==> nimble_options
Compiling 3 files (.ex)
Generated nimble_options app
===> Analyzing applications...
===> Compiling telemetry
==> telemetry_metrics
Compiling 7 files (.ex)
Generated telemetry_metrics app
===> Analyzing applications...
===> Compiling telemetry_poller
==> jason
Compiling 10 files (.ex)
Generated jason app
==> db_connection
Compiling 15 files (.ex)
[Info - 09:50:04] Experimental server is disabled.
Generated db_connection app
==> expo
Compiling 2 files (.erl)
Compiling 21 files (.ex)
Generated expo app
==> phoenix_pubsub
Compiling 11 files (.ex)
Generated phoenix_pubsub app
==> plug_crypto
Compiling 5 files (.ex)
Generated plug_crypto app
==> hpax
Compiling 4 files (.ex)
Generated hpax app
==> gettext
Compiling 17 files (.ex)
Generated gettext app
===> Analyzing applications...
===> Compiling ranch
==> ecto
Compiling 56 files (.ex)
Generated ecto app
==> plug
Compiling 1 file (.erl)
Compiling 40 files (.ex)
Generated plug app
==> phoenix_html
Compiling 9 files (.ex)
Generated phoenix_html app
==> phoenix_template
Compiling 4 files (.ex)
Generated phoenix_template app
==> postgrex
Compiling 68 files (.ex)
Generated postgrex app
==> ecto_sql
Compiling 25 files (.ex)
Generated ecto_sql app
==> nimble_pool
Compiling 2 files (.ex)
Generated nimble_pool app
==> castore
Compiling 1 file (.ex)
Generated castore app
==> esbuild
Compiling 3 files (.ex)
Generated esbuild app
==> tailwind
Compiling 3 files (.ex)
Generated tailwind app
==> mint
Compiling 1 file (.erl)
Compiling 19 files (.ex)
Generated mint app
==> finch
Compiling 13 files (.ex)
Generated finch app
==> websock
Compiling 1 file (.ex)
Generated websock app
===> Analyzing applications...
===> Compiling cowlib
===> Analyzing applications...
===> Compiling cowboy
===> Analyzing applications...
===> Compiling cowboy_telemetry
==> plug_cowboy
Compiling 5 files (.ex)
Generated plug_cowboy app
==> swoosh
Compiling 42 files (.ex)
Generated swoosh app
==> websock_adapter
Compiling 2 files (.ex)
Generated websock_adapter app
==> phoenix
Compiling 71 files (.ex)
Generated phoenix app
==> phoenix_live_view
Compiling 35 files (.ex)
Generated phoenix_live_view app
==> phoenix_live_dashboard
Compiling 40 files (.ex)
Generated phoenix_live_dashboard app
==> phoenix_ecto
Compiling 7 files (.ex)
Generated phoenix_ecto app
==> elixir_ls_test
Compiling 17 files (.ex)
Generated elixir_ls_test app
[Info - 09:50:20] Compile took 21119 milliseconds
[Info - 09:50:20] [ElixirLS WorkspaceSymbols] Indexing...
[Info - 09:50:20] [ElixirLS Dialyzer] Checking for stale beam files
[Info - 09:50:20] [ElixirLS WorkspaceSymbols] Module discovery complete
[Info - 09:50:21] [ElixirLS WorkspaceSymbols] 403 callbacks added to index
[Info - 09:50:21] [ElixirLS Dialyzer] Found 872 changed files in 1448 milliseconds
[Info - 09:50:23] [ElixirLS WorkspaceSymbols] 1101 modules added to index
[Info - 09:50:23] [ElixirLS WorkspaceSymbols] 994 types added to index
[Info - 09:50:31] [ElixirLS WorkspaceSymbols] 13685 functions added to index
[Info - 09:50:35] [ElixirLS Dialyzer] Analyzing 872 modules: [Swoosh.Adapters.SocketLabs, Ecto.Adapters.Postgres, Expo.PluralForms.SyntaxError, Phoenix.LiveView.Route, Expo.Message, Mix.EctoSQL, :cow_mimetypes, :ranch_conns_sup, Phoenix.LiveDashboard.SystemInfo.PortDetails, Plug.RewriteOn, Swoosh.ApiClient, Ecto.UUID, HPAX.Huffman, String.Chars.Floki.Selector, Mix.Tasks.Ecto.Rollback, Expo.PO, Mint.Core.Transport.TCP, :cowboy_telemetry_h, Postgrex.Extensions.Time, ElixirLsTestWeb.PageHTML, Jason.Encoder.Date, Ecto.Adapters.SQL.Sandbox, Phoenix.LiveDashboard.ReingoldTilford, Mix.Tasks.Phx.Gen.Embedded, Phoenix.HTML.Safe.Atom, Plug.Conn.WrapperError, Floki.FlatText, :expo_plural_forms_parser, :cowboy_middleware, Plug.Conn.Status, Phoenix.Param.BitString, Postgrex.Extensions.INET, Postgrex.Extensions.OID, Finch.Request, DBConnection.Query, Swoosh.Email.Recipient.Any, Plug.Application, Ecto.Query.Builder.CTE, Gettext.Plural, Mix.Tasks.Phx.Gen.Notifier, Phoenix.Template.EExEngine, Plug.Test, Finch.Response, Mix.Tasks.Phx.Routes, Plug.Exception.Ecto.CastError, Ecto.Query.Builder.Select, Inspect.Phoenix.LiveView.UploadConfig, Phoenix.CodeReloader.Server, :cowboy_tracer_h, Jason.Encoder.List, ...]
[Info - 09:50:45] [ElixirLS Dialyzer] Analysis finished in 23552 milliseconds
[Info - 09:50:45] Dialyzer analysis is up to date
[Info - 09:50:45] [ElixirLS Dialyzer] Writing manifest...
[Info - 09:50:46] [ElixirLS Dialyzer] Done writing manifest in 694 milliseconds.
[Error - 09:51:07] Request textDocument/hover failed.
Message: an exception was raised:
** (CaseClauseError) no case clause matching: %{actual_subject: "ElixirLsTestWeb.Layouts", docs: %{callbacks: "", docs: "> ElixirLsTestWeb.Layouts\n\nNo documentation available\n", types: ""}, range: %{begin: {8, 29}, end: {8, 52}}}
(language_server 0.14.5) lib/language_server/providers/hover.ex:24: ElixirLS.LanguageServer.Providers.Hover.hover/4
(language_server 0.14.5) lib/language_server/server.ex:824: anonymous fn/3 in ElixirLS.LanguageServer.Server.handle_request_async/2
Code: -32000
[Error - 09:51:07] Process #PID<0.181.1> raised an exception
** (CaseClauseError) no case clause matching: %{actual_subject: "ElixirLsTestWeb.Layouts", docs: %{callbacks: "", docs: "> ElixirLsTestWeb.Layouts\n\nNo documentation available\n", types: ""}, range: %{begin: {8, 29}, end: {8, 52}}}
(language_server 0.14.5) lib/language_server/providers/hover.ex:24: ElixirLS.LanguageServer.Providers.Hover.hover/4
(language_server 0.14.5) lib/language_server/server.ex:824: anonymous fn/3 in ElixirLS.LanguageServer.Server.handle_request_async/2
[Error - 09:51:07] Request textDocument/hover failed.
Message: an exception was raised:
** (CaseClauseError) no case clause matching: %{actual_subject: "ElixirLsTestWeb.Layouts", docs: %{callbacks: "", docs: "> ElixirLsTestWeb.Layouts\n\nNo documentation available\n", types: ""}, range: %{begin: {8, 29}, end: {8, 52}}}
(language_server 0.14.5) lib/language_server/providers/hover.ex:24: ElixirLS.LanguageServer.Providers.Hover.hover/4
(language_server 0.14.5) lib/language_server/server.ex:824: anonymous fn/3 in ElixirLS.LanguageServer.Server.handle_request_async/2
Code: -32000
[Error - 09:51:07] Process #PID<0.182.1> raised an exception
** (CaseClauseError) no case clause matching: %{actual_subject: "ElixirLsTestWeb.Layouts", docs: %{callbacks: "", docs: "> ElixirLsTestWeb.Layouts\n\nNo documentation available\n", types: ""}, range: %{begin: {8, 29}, end: {8, 52}}}
(language_server 0.14.5) lib/language_server/providers/hover.ex:24: ElixirLS.LanguageServer.Providers.Hover.hover/4
(language_server 0.14.5) lib/language_server/server.ex:824: anonymous fn/3 in ElixirLS.LanguageServer.Server.handle_request_async/2
Edit: I just noticed my comment could be more related to https://github.com/elixir-lsp/elixir-ls/issues/882 but the error message is the same.
I discovered that such error appears on hover and not during start of vscode-elixir-ls
so I close this issue in favor of #882
Environment
elixir 1.14.4-otp-25 erlang 25.3.1 ubuntu 22.04 vscode vscode-elixir-ls 0.14.5
Current behavior
It fails to start with next error:
Expected behavior