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

REPL auto completion no longer shows method/function paremeters #17367

Closed
rcano opened this issue Apr 28, 2023 · 0 comments · Fixed by #19917
Closed

REPL auto completion no longer shows method/function paremeters #17367

rcano opened this issue Apr 28, 2023 · 0 comments · Fixed by #19917

Comments

@rcano
Copy link

rcano commented Apr 28, 2023

Compiler version

All versions of scala 3

Minimized code

Welcome to Scala 3.3.0-RC4 (19.0.2, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                                                                                                                                                                                                                                             
scala> randomstuff.CurlParser.parse<TAB>

Output

nothing is shown because the method name is fully expanded. Under scala 2 you get the actual arguments to the method

Expectation

It should work like in scala2, without this, the scala 3 repl is pretty useless, as you either must know before hand every api, or wont be able to navigate it.

@rcano rcano added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels Apr 28, 2023
@Kordyjan Kordyjan added itype:enhancement area:repl and removed itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels May 1, 2023
Florian3k added a commit that referenced this issue Mar 17, 2024
Closes #17367 

This PR brings method signatures to repl completions, as in Scala 2 repl
(but with syntax highlighting).

After typing `List(1).max<TAB>`:

![image](https://github.com/scala/scala3/assets/24961583/0846e7b1-ff44-4e95-aaff-398069821b2f)
@Kordyjan Kordyjan added this to the 3.4.2 milestone Mar 28, 2024
@Kordyjan Kordyjan modified the milestones: 3.4.2, 3.5.0 May 10, 2024
WojciechMazur added a commit that referenced this issue Jul 3, 2024
Closes #17367 

This PR brings method signatures to repl completions, as in Scala 2 repl
(but with syntax highlighting).

After typing `List(1).max<TAB>`:

![image](https://github.com/scala/scala3/assets/24961583/0846e7b1-ff44-4e95-aaff-398069821b2f)
[Cherry-picked b0ba045][modified]
WojciechMazur added a commit that referenced this issue Jul 3, 2024
Closes #17367 

This PR brings method signatures to repl completions, as in Scala 2 repl
(but with syntax highlighting).

After typing `List(1).max<TAB>`:

![image](https://github.com/scala/scala3/assets/24961583/0846e7b1-ff44-4e95-aaff-398069821b2f)
[Cherry-picked b0ba045][modified]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants