SublimeLinter / SublimeLinter-rubocop

SublimeLinter 3 plugin for Ruby, using rubocop.
MIT License
159 stars 40 forks source link

queue.Empty error in queye.py #28

Closed lessless closed 7 years ago

lessless commented 8 years ago

Hello, all of a sudden rubocop linter stopped to work with following error

SublimeLinter: -------------------- 
reloading Packages/User/Package Control.sublime-settings
reloading Packages/User/Preferences.sublime-settings
SublimeLinter: error in SublimeLinter daemon: 
SublimeLinter: -------------------- 
SublimeLinter: Traceback (most recent call last):
  File "/Users/lessless/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/lint/queue.py", line 57, in loop
    item = self.q.get(block=True, timeout=self.MIN_DELAY)
  File "./queue.py", line 175, in get
queue.Empty

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/lessless/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/lint/queue.py", line 65, in loop
    self.lint(view_id, timestamp)
  File "/Users/lessless/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/lint/queue.py", line 111, in lint
    self.callback(view_id, timestamp)
  File "/Users/lessless/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/sublimelinter.py", line 119, in lint
    Linter.lint_view(view, filename, code, hit_time, callback)
  File "/Users/lessless/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/lint/linter.py", line 924, in lint_view
    linter.lint(hit_time)
  File "/Users/lessless/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/lint/linter.py", line 1367, in lint
    cmd = self.get_cmd()
  File "/Users/lessless/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/lint/linter.py", line 1119, in get_cmd
    return self.build_cmd()
  File "/Users/lessless/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/lint/linter.py", line 1169, in build_cmd
    cmd[0:1] = util.convert_type(path, [])
  File "./posixpath.py", line 379, in abspath
  File "./posixpath.py", line 64, in isabs
AttributeError: 'list' object has no attribute 'startswith'

SublimeLinter: -------------------- 

Sublime: build 3083 Python: v. 2.7.10

joshmfrankel commented 8 years ago

Sounds like a similiar issue was experienced here as well. The same queue.Empty error.

I would give this a shot, if you are still encountering the above error. :-)

Reinstalling SublimeLinter helps me -st4lk

joshmfrankel commented 8 years ago

I actually ran into this after installing another linter today. From looking at your error report this line in particular seems relevant:

AttributeError: 'list' object has no attribute 'startswith'

joshmfrankel commented 7 years ago

@lessless Are you still experiencing this issue? :-)

lessless commented 7 years ago

nope :)

On Thu, Oct 20, 2016 at 1:34 AM, Josh Frankel notifications@github.com wrote:

@lessless https://github.com/lessless Are you still experiencing this issue? :-)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SublimeLinter/SublimeLinter-rubocop/issues/28#issuecomment-254901841, or mute the thread https://github.com/notifications/unsubscribe-auth/ABd9zPblKM2ZYpsV-aEh7CIeCvWHLamsks5q1mLMgaJpZM4HVREP .

joshmfrankel commented 7 years ago

@lessless Just for curiosities sake (and before I close the issue), any idea what fixed the issue? Ruby version update? Rubocop updated? Something else?

lessless commented 7 years ago

Sorry, can't remember the exact reason, but I believe it was update.

On Fri, Oct 21, 2016 at 8:56 PM, Josh Frankel notifications@github.com wrote:

Closed #28 https://github.com/SublimeLinter/SublimeLinter-rubocop/issues/28.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SublimeLinter/SublimeLinter-rubocop/issues/28#event-832061152, or mute the thread https://github.com/notifications/unsubscribe-auth/ABd9zHGHoqb6PAc9IKlWuqxA2RO6Ys26ks5q2MR-gaJpZM4HVREP .

jacobdr commented 7 years ago

Uninstalling and then reinstalling sublimelinter via package control solved the issue for me

flintforge commented 7 years ago

Error related to the project settings for me :

"SublimeLinter":
    {
-       "@python": 3.4,
"SublimeLinter":
    {
+       "@python": "3.4",