-
Notifications
You must be signed in to change notification settings - Fork 21
REPL won't tell me the parameters with multiple completion candidates #12843
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
Yeah, this has long bugged me. |
First tab Second tab to select with enter Third tab to show it above the prompt (instead of below?) Fourth tab to select updated instead then fifth tab for sig (actually I've lost track of the tabs while pasting screen shots) The carefully curated IOOBE is different for
The behavior is similar but the signature is different on 3.6.4:
Less convenient 2.12 does not tab through alternatives, so you must finish typing it yourself and then tab for sig:
I don't know that I was right that the behavior used to be different: for a single completion candidate, tab shows sigs of all overloads. If more than one completion candidate, you must complete before viewing sigs. (Edit: it works that way in 2.13.11, so I don't know what my problem was.) My other observation was that it doesn't show the sig of a missing arg list, but will show sigs of ambiguous overload, which is somehow ironic:
Maybe I will keep this open just for that part; maybe that's what bugged Seth and not the tab behavior. |
The foulest check file:
|
The other point is that the method may be overloaded even if an alternative has been selected.
because the source looks like
where the current message is unhelpful (or at least unhintful). |
Reproduction steps
Scala version: 2.13.11
Problem
I'd like to see the signature without attempting an invocation. (Because who knows what may happen.)
It would be nice if
missing argument list
just told me the signature if unique, or that there are overloads.Completion no longer tells me parameters when there are multiple completion candidates. (This used to be offered on subsequent tab.)
In this case,
update
andupdated
are candidates.It does report signatures of a single completion candidate with overloads:
The text was updated successfully, but these errors were encountered: