Skip to content

Warning messages linger after file is closed #527

@RustanLeino

Description

@RustanLeino

Problem

I have a file open in VS Code and the Problems pane is showing a warning about the file. When I close the file, the warning is still listed in the Problems pane.

Repro

  • Use View->Problems to make the Problems pane visible if it isn't already.

  • Open a folder in VS Code. (I've tried it both with and without a dfyconfig.toml file. The issue occurs with both.)

  • Open or create a file LingeringWarnings.dfy with the following contents:

    method M() returns (r: int)
      ensures r < 10

    This should show a warning in the Problems pane.

  • Close the file. The warning is still showing in the Problems pane.

Version

I'm using Dafny IDE version 3.4.4. In it, I use Dafny version 4.10 or "latest stable release" (which I think are the same at this time).

Mitigation

The only way I know how to get rid of the warning is to restart VS Code. Or to reopen the file, change the file to make the warning go away, save the file, and close it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions