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 issues don't disappear after fixing #238

Closed

Description

@PascalTurbo

Your environment

  • vscode-ruby version: 0.15.0
  • Ruby version: 2.4.3p205 (2017-12-14 revision 61247) [x86_64-darwin17]
  • VS Code version: 1.19.1
  • Operating System: macOS High Sierra 10.13.2
  • Hardware (optional):

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

Expected behavior

After fixing a rubocop issue the issue shouldn't appear in vscode

Actual behavior

After fixing a rubocop issue the issue will appear unless restarting vscode

Steps to reproduce the problem

Create a ruby file and produce an rubocop issue. Save the file, exit vscode, start vscode again, fix the issue. Now the issue should disappear.

I've been watching this problem for month on different devices with different macOS Versions. Even on a brand new device installed from scratch.

Activity

  1. gurgeous commented on Apr 10, 2018

    @gurgeous
    Contributor

    I wonder if we are supposed to manually remove diagnostics when files are closed. I think eslint is doing something similar here - https://github.com/Microsoft/vscode-eslint/blob/master/server/src/eslintServer.ts#L617

  2. greveritt commented on Jul 20, 2018

    @greveritt

    It sounds like I'm having the same problem.

    My environment

    • vscode-ruby version: 0.18.0
    • Ruby version (installed with rbenv): ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
    • VS Code version: 1.25.1
    • Operating System: macOS High Sierra 10.13.6
    • Hardware (optional): MacBook Pro (Retina, 15-inch, Mid 2015)

    Is there some sort of diagnostic file that I should attach?

  3. andrewmcodes commented on Sep 18, 2018

    @andrewmcodes

    Is this still happening on 0.20.0 for you? I just removed some rubocop errors and the issues disappeared.

  4. wingrunr21 commented on Feb 24, 2019

    @wingrunr21
    Collaborator

    This should be working correctly on v0.22.2 and up with language server based linting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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