pderichs / sublime_rubocop

A Sublime Text RuboCop plugin.
238 stars 41 forks source link

Rubocop highlighting remains in buffer even after Sublime Text is restarted #14

Closed cimbriano closed 10 years ago

cimbriano commented 10 years ago

This issue was first described in a StackOverflow question since I was not sure at the time what was causing it.

http://stackoverflow.com/questions/21639983/unexpected-highlighting-in-sublime-text-3

Since then, I think I've narrowed down the issue.

OS: OSX 10.9.1 Build 13B42 Sublime Text : Stable Channel, Build 3059 Rubocop Package: v2014.02.01.19.05.03

After disabling Rubocop, I did not close the file, instead just used Cmd + Q to quit. Then when relaunching Sublime, the previously opened file was reopened/still open. This screenshot is after a restart and shows the Rubocop line highlighting and the results of Sublime's "Package Control: Enable Packages" (showing the currently disabled packages).

Screenshot of the Issue

It appears that closing the file and restarting Sublime prevents seeing highlighting after the package is disabled.

pderichs commented 10 years ago

Thanks for reporting that. The main error here was, that the marks became invalid after restarting ST.