AdRoll / rebar3_typer

Rebar3 plugin wrapper around TypEr
MIT License
12 stars 2 forks source link

Plugin crashes due to `undef` on OTP26 or newer, `dialyzer_plt:from_file/1` doesn't exist anymore. #64

Open NelsonVides opened 1 month ago

NelsonVides commented 1 month ago

rebar3_typer version

0.0.0

OS version

Macos 15.0.1.

Steps to reproduce

Just run on OTP26 or newer.

Current behavior

Fails entirely, as dialyzer_plt:from_file/1 does not exist anymore, and it's used here: https://github.com/AdRoll/rebar3_typer/blob/fa636b1e8c5e0698c0b03fe2e8fecca7198b87c9/src/typer_core.erl#L997

Expected behavior

I wanted to add types, instead the plugin crashes 🥲

elbrujohalcon commented 1 month ago

Oh, no!!! I was expecting some changes from OTP26+… but… dialyzer_plt:from_file/1 will be sorely missed. We need to do the yearly upgrade this project with the changes from Erlang/OTP but this year I've been a bit slow on open-source maintainance, in general. And the Erlang/OTP team has been quite fast in making changes 🎉