Skip to content

Erlang LS crash loop with OTP 28 #174

Description

@matlaj

With OTP 28, the extension can't start the included Erlang LS because it was compiled with OTP 24.

The PR over here fixes this problem.

[2025-06-22T08:24:29.143244+02:00] [error] Supervisor: {local,els_sup}. Context: start_error. Reason: {'EXIT',{undef,[{els_snippets_server,start_link,[],[]},{supervisor,do_start_child_i,3,[{file,"supervisor.erl"},{line,996}]},{supervisor,do_start_child,3,[{file,"supervisor.erl"},{line,982}]},{supervisor,'-start_children/2-fun-0-',3,[{file,"supervisor.erl"},{line,966}]},{supervisor,children_map,4,[{file,"supervisor.erl"},{line,1891}]},{supervisor,init_children,2,[{file,"supervisor.erl"},{line,932}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,2276}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,2236}]}]}}. Offender: id=els_snippets_server,pid=undefined. [supervisor:start_children/2 L974] <0.116.0>
[2025-06-22T08:24:29.143195+02:00] [error] beam/beam_load.c(594): Error loading function els_snippets_server:build_snippet/1: op bs_add p x i u x:, please re-compile this module with an Erlang/OTP 28 compiler or update your Erlang/OTP version [ L] <0.116.0>
escript: exception exit: terminating
  in function  application_controller:call/2 (application_controller.erl:515)
  in call from application:'-ensure_all_started/3-lc$^0/1-0-'/1 (application.erl:368)
  in call from application:ensure_all_started/3 (application.erl:368)
  in call from erlang_ls:main/1 (/home/runner/work/vscode/vscode/erlang_ls/apps/els_lsp/src/erlang_ls.erl:29)
  in call from escript:run/2 (escript.erl:906)
  in call from escript:start/1 (escript.erl:420)
  in call from init:start_it/1 
  in call from init:start_em/1 
[Info  - 8:24:29 AM] Connection to server got closed. Server will restart.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions