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

SignatureHelpSuite fails in Scala 2 community build after Scalameta upgrade #7075

Closed
SethTisue opened this issue Dec 28, 2024 · 2 comments
Closed

Comments

@SethTisue
Copy link
Contributor

SethTisue commented Dec 28, 2024

as seen at e.g. https://scala-ci.typesafe.com/job/scala-2.13.x-jdk17-integrate-community-build/2424/artifact/logs/metals-build.log

the failure started occurring when we upgraded Scalameta from 4.12.1 to 4.12.3. (I haven't tried replicating it outside of the community build context, but I imagine you'd see it if you attempt the same upgrade in-repo here. if not, let me know and I can dig deeper)

it looks like it might actually be a progression...?

[metals] ==> X tests.pc.SignatureHelpSuite.named_2.13.16-bin-f44badf  0.031s munit.Compa
risonFailException: tests/cross/src/test/scala/tests/pc/SignatureHelpSuite.scala:578
[metals] 577:
[metals] 578:  check(
[metals] 579:    "named",
[metals] diff assertion failed
[metals] => Obtained
[metals]     """|apply(<age: Int = 42>, <name: String = "John">): User
[metals]        |                       ^^^^^^^^^^^^^^^^^^^^^^^
[metals]        |""".stripMargin
[metals] => Diff (- obtained, + expected)
[metals] -apply(<age: Int = 42>, <name: String = "John">): User
[metals] -                       ^^^^^^^^^^^^^^^^^^^^^^^
[metals] +apply(<age: Int = ...>, <name: String = ...>): User
[metals] +                        ^^^^^^^^^^^^^^^^^^^^
[metals]     at munit.FunSuite.assertNoDiff(FunSuite.scala:11)
[metals]     at tests.BaseSignatureHelpSuite.$anonfun$check$1(BaseSignatureHelpSuite.scala:97)
[metals] ==> X tests.pc.SignatureHelpSuite.named1_2.13.16-bin-f44badf  0.012s munit.ComparisonFailException: tests/cross/src/test/scala/tests/pc/SignatureHelpSuite.scala:597
[metals] 596:
[metals] 597:  check(
[metals] 598:    "named1",
[metals] diff assertion failed
[metals] => Obtained
[metals]     """|apply(name: String = "John", age: Int = 42): User
[metals]        |                             ^^^^^^^^^^^^^
[metals]        |""".stripMargin
[metals] => Diff (- obtained, + expected)
[metals] -apply(name: String = "John", age: Int = 42): User
[metals] -                             ^^^^^^^^^^^^^
[metals] +apply(name: String = ..., age: Int = ...): User
[metals] +                          ^^^^^^^^^^^^^^
[metals]     at munit.FunSuite.assertNoDiff(FunSuite.scala:11)
[metals]     at tests.BaseSignatureHelpSuite.$anonfun$check$1(BaseSignatureHelpSuite.scalogs/metals-build.log byte 66971/201817 33%
@SethTisue
Copy link
Contributor Author

oh but hmm wait you did upgrade it already: #7069

🤔

@SethTisue
Copy link
Contributor Author

SethTisue commented Dec 28, 2024

doh never mind, #7061 has the change I need. not sure how I missed that

@SethTisue SethTisue closed this as not planned Won't fix, can't repro, duplicate, stale Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant