-
Notifications
You must be signed in to change notification settings - Fork 352
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
[Scala 3] Incorrect named arguments completions #7188
Comments
I also investigated and can reproduce with Scala |
@tgodzik not sure what we should do here. Should we fix it for the case where the user run a version in 3.3.1..3.3.2? In later versions, this works as expected. |
We probably wasted a bunch of time not realising that the plan is to continue supporting the older scala LTS versions in metals - and now looks like we can back port whatever was fixed in scala/scala3 |
Guess: maybe this has been fixed by scala/scala3#18702 in the new presentation compiler. So to support older version, should we backport the fix to https://github.com/scalameta/metals/blob/main/mtags/src/main/scala-3/scala/meta/internal/pc? |
For reference, here is how we ran the test: $ sbt --client '++3.3.3! cross/testOnly tests.BaseCompletionSuite.CompletionArgSuite -- *default-args8*' |
For future reference, we don't have to backport it to metals. It's fine to have it fixed in the newest presentation compiler only. Thanks for checking! |
Also, sorry for not responding earlier 😓 |
Describe the bug
"""|trait Foo {
| def bar[A](fst: A, snd: Int, thd: Int = 23)
|}
|object Main {
| def foo: Foo = ???
| foo.bar(123, @@)
|}
|""".stripMargin
Expected behavior
Completions should be for both params:
"""|snd = : Int
|thd = : Int
|""".stripMargin
Operating system
None
Editor/Extension
None
Version of Metals
v1.5.2
Extra context or search terms
https://github.com/scalameta/metals/pull/7182/files
The text was updated successfully, but these errors were encountered: