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

Language Server crashes when autocompleting :pg #279

Closed
VictorGaiva opened this issue Sep 22, 2023 · 0 comments
Closed

Language Server crashes when autocompleting :pg #279

VictorGaiva opened this issue Sep 22, 2023 · 0 comments

Comments

@VictorGaiva
Copy link

VictorGaiva commented Sep 22, 2023

Versions

app version
VSCode 1.82.2
ElixirLS Extension v0.16.0
asdf v0.11.3-0adc6c1
erlang 26.0.2
elixir 1.15.4-otp-26

Issue

Attempting to get functions completetion on the module :pg causes elixir-ls server to crash.

[Trace - 2:13:18 PM] Received response 'textDocument/completion - (232)' in 121ms. Request failed: an exception was raised:
    ** (SystemLimitError) a system limit has been reached
        (erts 14.0.2) :erlang.binary_to_atom("{:discover, peer :: pid()}\n| {:discover, peer :: pid(), any()}\n| {:join, peer :: pid(), group(), pid() | [pid()]}\n| {:leave, peer :: pid(), pid() | [pid()], [group()]}\n| {:DOWN, reference(), :process, pid(), term()}\n| {:nodedown, node()}\n| {:nodeup, node()}", :utf8)
        (elixir_sense 2.0.0) lib/elixir_sense/core/type_info.ex:698: anonymous fn/1 in ElixirSense.Core.TypeInfo.extract_params/1
        (elixir 1.15.4) lib/enum.ex:1693: Enum."-map/2-lists^map/1-1-"/2
        (elixir_sense 2.0.0) lib/elixir_sense/providers/suggestion/complete.ex:1127: ElixirSense.Providers.Suggestion.Complete.format_params/2

Troubleshooting performed:

  • Deleted deps, _build and .elixir_ls folders.
  • Restarted VSCode, and the computer
  • Issue happening in at least 3 different computers. A Mac M1, and two Linux Manjaro, with AMD Cpu.

Issue seems to be related to Erlang's atom amount limit, based on the content of the trace, pointing to this code

@lukaszsamson lukaszsamson transferred this issue from elixir-lsp/elixir-ls Sep 25, 2023
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

1 participant