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

bugfix: CompletionPosition inferStart should not crash #6247

Merged
merged 1 commit into from Apr 5, 2024

Conversation

jkciesluk
Copy link
Member

Error 01.11 reported from Scastie using reporting mechanisms

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, it looks like some tests are failing :

@kasiaMarek
Copy link
Contributor

Actually, it looks like some tests are failing :

The failing test has nothing to do with changes in the PR (#6264).

@tgodzik
Copy link
Contributor

tgodzik commented Apr 5, 2024

Actually, it looks like some tests are failing :

The failing test has nothing to do with changes in the PR (#6264).

Are we sure about that?

[error] ==> X tests.feature.Worksheet3NextSuite.import-missing-symbol  8.986s munit.ComparisonFailException: /home/runner/work/metals/metals/tests/unit/src/main/scala/tests/BaseWorksheetLspSuite.scala:906
[error] 905:        // Assert if indentation is correct. See `AutoImports.renderImport`
[error] 906:        _ = assertNoDiff(
[error] 907:          server.bufferContents(path),
[error] diff assertion failed
[error] => Obtained
[error]     """|//> using scala 3.4.1
[error]        |
[error]        |// Some comment
[error]        |
[error]        |// Object comment
[error]        |import scala.concurrent.Future
[error]        |object A {
[error]        |  val f = Future.successful(42)
[error]        |}
[error]        |""".stripMargin
[error] => Diff (- obtained, + expected)
[error]  // Some comment
[error] +import scala.concurrent.Future
[error]  ∙
[error]  // Object comment
[error] -import scala.concurrent.Future
[error]  object A {
[error]     at munit.Assertions.failComparison(Assertions.scala:274)

I tried rerunning and the test failed again.

@kasiaMarek
Copy link
Contributor

I tried rerunning and the test failed again.

Works after rebase. I don't think that just re-running will take the newest changes from main, it may be always using the state that was "on push".

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my bad, thanks!

@tgodzik tgodzik merged commit 8cc7a42 into scalameta:main Apr 5, 2024
26 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants