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

Dialyzer issue #153

Open
mcesaro opened this issue Jul 24, 2023 · 0 comments
Open

Dialyzer issue #153

mcesaro opened this issue Jul 24, 2023 · 0 comments

Comments

@mcesaro
Copy link

mcesaro commented Jul 24, 2023

Hi there,
I'm not sure about the behavior of the erlang LS VS Code extension.

My configuration is the following:
Version: 1.80.1
Commit: 74f6148eb9ea00507ec113ec51c489d6ffb4b771
Date: 2023-07-12T17:22:25.257Z
Electron: 22.3.14
ElectronBuildId: 21893604
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Linux x64 6.2.1-060201-generic

Erlang LS VS Code ext version 0.0.40 Server (0.44.1 -> 0.48.0)
Published 11/17/2019, 22:56:41
Last released 7/8/2023, 12:23:40
Last updated 7/10/2023, 08:01:25
Identifier erlang-ls.erlang-ls

In the output tab I see this warning message:

Warn  - 2:46:29 PM] [2023-07-24T14:46:29.804060+02:00] [warning] Cannot extract typer info., Class: error, Exception: undef, Stacktrace: [{dialyzer_plt,from_file,["/home/max/work/test/_build/default/rebar3_26.0_plt"],[]},{els_typer,collect_info,1,[{file,"/home/runner/work/vscode/vscode/erlang_ls/apps/els_lsp/src/els_typer.erl"},{line,302}]},{els_typer,get_info,1,[{file,"/home/runner/work/vscode/vscode/erlang_ls/apps/els_lsp/src/els_typer.erl"},{line,83}]},{els_code_lens_suggest_spec,init,1,[{file,"/home/runner/work/vscode/vscode/erlang_ls/apps/els_lsp/src/els_code_lens_suggest_spec.erl"},{line,29}]},{els_code_lens,lenses,2,[{file,"/home/runner/work/vscode/vscode/erlang_ls/apps/els_lsp/src/els_code_lens.erl"},{line,91}]},{els_code_lens_provider,'-run_lenses_job/1-lc$^0/1-0-',3,[{file,"/home/runner/work/vscode/vscode/erlang_ls/apps/els_lsp/src/els_code_lens_provider.erl"},{line,37}]},{els_code_lens_provider,'-run_lenses_job/1-lc$^0/1-0-',3,[{file,"/home/runner/work/vscode/vscode/erlang_ls/apps/els_lsp/src/els_code_lens_provider.erl"},{line,38}]},{els_code_lens_provider,'-run_lenses_job/1-fun-1-',2,[{file,"/home/runner/work/vscode/vscode/erlang_ls/apps/els_lsp/src/els_code_lens_provider.erl"},{line,38}]}] [els_code_lens_suggest_spec:init/1 L39] <0.486.0>

The application I'm working on is based on OTP 26

The thing I cannot explain is that in the error description:

[warning] Cannot extract typer info., Class: error, Exception: undef, Stacktrace: [{dialyzer_plt,from_file,["/home/max/work/test/_build/default/rebar3_26.0_plt"],[]}

the reference to the undocumented dialyzer_plt:from_file() function is suspect, since I can't find it in the dialyzer source code in the erlang OTP repository.
Maybe I'm wrong, but it looks like that without a PLT file, some features of the erlang LS are not available.
So the question is: Is this an els_typer bug or is there another way to achieve the dialyzer based features of erlang LS?

Thanks

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