Skip to content

Some Times Errors don't Go Away after Import #8686

Description

@tsmaeder

Describe the bug

Some times errors that are normal, because the workspace has not been imported yet, don't go away on their own: I have to insert a space into the file for the import errors to go away.

  1. Open Spring Boot
  2. Open SampleProfileApplication.java
  3. Observe: there is an error on import org.springframework.core.env.ConfigurableEnvironment;
    That is normal: there is no mbt.json yet. The import process is going on in the background
  4. Open some other files in the editor
  5. Let the import process finish
  6. Observe: the import error is still visible.
  7. Insert a space into the file
  8. Observe: the import goes away

Note that most of the time, errors go away as imports become available.

Expected behavior

No response

Operating system

Windows

Editor/Extension

VS Code

Version of Metals

2.0.0-SNAPSHOT

Scala version/s

n/a

Extra context or search terms

No response

Metadata

Metadata

Assignees

Labels

bugSomething that is making a piece of functionality unusablemetals-v2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions