erlang-ls / erlang_ls

The Erlang Language Server
https://erlang-ls.github.io/
Apache License 2.0
620 stars 136 forks source link

els_typer: Handle OTP26 changes to dialyzer functions #1444

Closed the-mikedavis closed 6 months ago

the-mikedavis commented 11 months ago

Description

OTP26 added the dialyzer_iplt module and took over some of the PLT functions from dialyzer_plt. I added some conditional compilation to use the dialyzer_iplt functions on 26+ and dialyzer_plt on 25-. dialyzer_iplt comes from the big refactor for incremental mode: https://www.erlang.org/blog/otp-26-highlights/#incremental-mode-for-dialyzer

Fixes #1443.

plux commented 6 months ago

Thanks for your contribution @the-mikedavis !