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

Wrong type location reported? #559

Open
Olivier-Boudeville opened this issue Sep 23, 2023 · 0 comments
Open

Wrong type location reported? #559

Olivier-Boudeville opened this issue Sep 23, 2023 · 0 comments

Comments

@Olivier-Boudeville
Copy link

Hi,

Using latest Gradualizer version [1], the following command reports a type, text/0, presumably in ui_test.erl:

[...]/Gradualizer/bin/gradualizer --infer --fmt_location verbose --fancy --color always --stop_on_first_error -pa ./src/apps/generate-password -pa ./src/apps/merge-tool -pa ./src/data-management -pa ./src/maths -pa ./src/meta -pa ./src/scripts -pa ./src/user-interface/graphical -pa ./src/user-interface/textual -pa ./src/user-interface/audio -pa ./src/user-interface -pa ./src/utils -pa ./.. -pa ./ebin -- ./test/user-interface/ui_test.beam
./test/user-interface/ui_test.beam: Undefined type text/0 on line 62 at column 22

However https://github.com/Olivier-Boudeville/Ceylan-Myriad/blob/713c7440750c0bc2d36fcdd909ac2cad40830f46/test/user-interface/ui_test.erl#L62 shows that there is no such type used there (or even referenced in that source file).

If it is relevant:

  • these modules are parse-transformed
  • a debug_info_key is used; if Gradualizer relies on the BEAM files (rather than on the source files), I would have expected that an option existed to specify that key (unless ~/.erlang.crypt is used?)

Thanks in advance for any hint,

Olivier.

[1] BTW, if we update a Gradualizer clone and just run make escript, a new escript is indeed generated but it does not rely on the recently pulled module sources that shoud be recompiled: instead of reporting v0.3.0-9-g81385f6 it was for example still v0.2.0-162-g182be65 (but apparently make clean escript does the job).

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