Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Rubocop linter stops working after reopening a file #373

@artrocid

Description

@artrocid

Your environment

  • vscode-ruby version: 0.19.0
  • Ruby version: 2.5.1
  • VS Code version: 1.25.1
  • Operating System: macOS High Sierra
  • Hardware (optional): Macbook Pro 2016

Make sure you have ruby, ruby-debug-ide and ruby-debug-basex19 installed before submitting your issue -- thank you ! ✅

Expected behavior

Keeps linting after closing and reopening the same file

Actual behavior

Linting breaks:

  • existing lint issues are not disappearing after getting fixed (still underlined and displayed in problems tab)
  • new lint issues not detected and marked

Steps to reproduce the problem

  1. Make a styling offense
  2. Wait for it to be marked
  3. Save the file
  4. Close the file
  5. Reopen the file (reopen last shortcut/file explorer/ctrlp - doesn't matter)
  6. Fix the offense
  7. Wait/save
  8. Linter underlines correct code where the former offences were present
  9. Reload window to make it work again

Before reopening:
screen shot 2018-08-07 at 11 53 21

After:
screen shot 2018-08-07 at 11 56 40

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions