JakeBecker / elixir-ls

A frontend-independent IDE "smartness" server for Elixir. Implements the JSON-based "Language Server Protocol" standard and provides debugger support via VS Code's debugger protocol.
Apache License 2.0
846 stars 52 forks source link

Compilation error in file lib/language_server/dialyzer/analyzer.ex #174

Closed 0rzech closed 5 years ago

0rzech commented 5 years ago

Environment

Problem Description

elixir-ls compilation (mix compile) on master and latest release fails with:

== Compilation error in file lib/language_server/dialyzer/analyzer.ex ==
** (RuntimeError) error parsing file /usr/lib/erlang/lib/dialyzer-3.2.3/src/dialyzer.hrl, got: {:error, :enoent}
    (elixir) lib/record/extractor.ex:84: Record.Extractor.read_file/2
    (elixir) lib/record/extractor.ex:50: Record.Extractor.extract_record/2
    lib/language_server/dialyzer/analyzer.ex:42: (module)
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
0rzech commented 5 years ago

The solution is to install erlang-src package in Ubuntu.