-
Notifications
You must be signed in to change notification settings - Fork 1.1k
REPL tab completion includes spurious Any members #12514
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
Comments
I'm unable to reproduce this:
(I presume the backtick is an indication of where the tab key was pressed) |
Hmm. It's the same with 3.0.0 release or local project.
The backtick may have been because I expected a backticked identifier for the implicit. Maybe backtick has special jline meaning?
|
Aha, so the backtick was part of the input! I tried that originally but there were no completions...or as it turns out, I am too impatient, as the completions when the backtick is included are very slow to appear here. I can reproduce now, when including the backtick as typed input. |
This will ensure that when you try to backtick an import whether it's needed or not that you correctly capture the prefix and offer a backticked completion. For example: ```scala import scala.util.chaining.`s<TAB> ``` Results in an `Ident(<error>)` which we now check to see if a backtick is causing it and correctly offer the completion. Fixes scala#12514
This will ensure that when you try to backtick an import whether it's needed or not that you correctly capture the prefix and offer a backticked completion. For example: ```scala import scala.util.chaining.`s<TAB> ``` Results in an `Ident(<error>)` which we now check to see if a backtick is causing it and correctly offer the completion. Fixes scala#12514
Compiler version
Minimized code
and then
and completion after
sca
I guess it's because package object?
Output
// as shown
Expectation
Tab completion shows actual members of thing being completed.
The text was updated successfully, but these errors were encountered: