facebook / facebook/flow

LSP: Unused suppression comment warning disappears after first edit

Open
#8,282 4 comments 5 reactions 0 assignees View on GitHub
bug LSP needs triage
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

Flow version: v0.117

## Expected behavior

Given the code:

```flow
// @flow

// $FlowFixMe
const lol = 1 + 1;
```

...line 3 should have an "unused suppression comment" warning because there is no error on the next line.

## Actual behavior

The warning shows up when the Flow server first starts up, but immediately disappears after the user edits and saves the file. It never reappears.

More info at the GItHub project below, which contains a tiny project w/ .flowconfig that reproduces the bug.

* Link to Try-Flow or Github repo: https://github.com/jvilk-stripe/flow-unused-suppression-comment-bug

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.