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 does not pick up changes involving remote types #502

Closed
lukaszsamson opened this issue Mar 1, 2021 · 1 comment
Closed

Dialyzer does not pick up changes involving remote types #502

lukaszsamson opened this issue Mar 1, 2021 · 1 comment
Labels
wontfix This will not be worked on

Comments

@lukaszsamson
Copy link
Collaborator

Environment

  • Elixir & Erlang versions (elixir --version): 1.11, 23.2
  • Editor Plugin/LSP Client name: current master

To reproduce

  1. create Module1 that defines a public type my_type and Module2 uses Module1.my_type e.g. in callback or spec.
  2. introduce a type error involving Module1.my_type
  3. fix the error by changing my_type definition in Module1

Result:

Dialyzer diagnostic persists regardless of error being fixed.

Troubleshooting

The diagnostic goes away after forcing recompilation of Module2

Unfortunately this is due to elixir compiler design choices - remote types do not introduce compile-time dependancy (and since 1.12 runtime dependancy, see elixir-lang/elixir#10406)

@lukaszsamson lukaszsamson added the wontfix This will not be worked on label Jan 23, 2022
@lukaszsamson
Copy link
Collaborator Author

No easy way to fix it. When it happens it's best to simply restart the server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant