-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Give "did you mean ...?" hints also for simple identifiers #18747
Conversation
1. Only show accessible members 2. Show several alternatives if they are at same distance. Unlike Scala 2, we do not show alternatives at larger distance. I fear that would produce more noise than signal. Fixes scala#17067
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E006] Not Found Error: tests/neg/yimports-stable/C_2.scala:4:16 ---------------------------------------------------- | ||
4 | val v: Numb = magic // error // error | ||
| ^^^^^ | ||
| Not found: magic | ||
| Not found: magic - did you mean main? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in case you wondered if @main
is too much magic
If scala.annotation
were opened by @syntax
, then annotations there would autocomplete only under @ma[etc]
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I like that and did propose it at some point. Failed to convince @sjrd though.
Co-authored-by: Jamie Thompson <[email protected]>
Fixes #18682
Fixes #17067