You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fix for #2213 (7122c50) was not complete: the cache is now written as "binary" but is not read as "binary" which will be a problem on Windows.
After upgrading to 0.34.1:
...
Inheriting configuration from c:/Dev/ruby193/lib/ruby/gems/1.9.1/gems/rubocop-0.34.1/config/disabled.yml
0 files inspected, no offenses detected
marshal data too short
c:/Dev/ruby193/lib/ruby/gems/1.9.1/gems/rubocop-0.34.1/lib/rubocop/result_cache.rb:23:in `load'
...
The fix is simple enough I don't think it's worth creating a pull request:
--- result_cache.rb-0.34.1 Sat Sep 12 14:33:57 2015+++ result_cache.rb Sat Sep 12 14:34:07 2015@@ -20,7 +20,7 @@
end
def load
- Marshal.load(IO.read(@path))+ Marshal.load(IO.binread(@path))
end
def save(offenses, disabled_line_ranges, comments)
The text was updated successfully, but these errors were encountered:
The fix for #2213 (7122c50) was not complete: the cache is now written as "binary" but is not read as "binary" which will be a problem on Windows.
After upgrading to 0.34.1:
The fix is simple enough I don't think it's worth creating a pull request:
The text was updated successfully, but these errors were encountered: