Skip to content

sbt 1.4.0: BSP warning diagnostics disappear on recompilation #5950

@adpi2

Description

@adpi2

steps

  • Create an sbt project and add "-deprecation" in the scalacOptions
  • Import it with BSP (in Metals for instance)
  • Type something deprecated and save the file
  • A warning is reported
  • Change another file to trigger a recompilation
  • The previous warning disappears

problem

The BuildServerReporter resets all files after compilation even the ones that has not been recompiled (thanks to incremental compilation).

expectation

The warning diagnostics should persist until the file is recompiled.

Metadata

Metadata

Assignees

Labels

Bugarea/ideIntelliJ or Metals integration

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions