Suggest possible imports when reporting a “symbol not found” error #17681
julienrf
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, if you try to apply a method defined as an extension method, but without importing it, the compiler reports and error and suggests you the possible imports that would make the extension method available.
However, the compiler does not suggest you the possible imports you could add to fix “symbol not found” errors (e.g., if you write
Monad.apply
without first importingcats.Monad
).I believe that would be a useful addition. Many IDEs already do that, but I guess it would be even better if the compiler handled it, and the IDEs could reuse that information directly.
Beta Was this translation helpful? Give feedback.
All reactions