Skip to content

BSP: resolving targets does not reload build #5783

@jastice

Description

@jastice

steps

  1. import an sbt project set to version 1.4.0-M2 as BSP project into IntelliJ
  2. make some change in build.sbt that would cause an error
  3. do a project refresh in IntelliJ

problem

The import works just like before - the project was not refreshed.
To trigger a refresh, it must be manually run from an sbt shell connected to the same server, or the connection and server process must be forcibly closed.

expectation

Ideally, sbt detects in any project refresh is necessary when calling certain BSP requests, such as workspace/buildTargets, and does a reload before answering. If the reload fails, these requests respond with an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions