Sublime Forum

Plugins in sublime stop working occasionally

#1

I really love using sublime text-3 and i have been using this editor for a while now, i really love some of the features of this editor , i have the following packages installed:

color heighter. JS-linting

I am particularly highly dependent on JS-linting , as its really important to catch bugs right in the editor rather then later in the browser.

Now this is a weird problem , but somehow there plugins work sometimes and sometimes they don’t , there is no particular pattern , they just don’t work sometimes , I.E. sometimes , i will have obvious bugs in my editor and the JSlinter , will not even highlight them. Why is this happening and how do i solve this ?

P.S. i hope you realize how nasty it would be if your linter decided to stop working all of a sudden.

HERE is the error log i get in my console.

0 Likes

#2

Is see this in your console output:
PermissionError: [Errno 13] Permission denied: ‘C:\Users\gautamz07/.codeintel\codeintel.log’

0 Likes

#3

@gertwin sorry , i did’t get you point :slightly_smiling:

0 Likes

#4

This can be the cause of the problem.

Opening the logfile throws an execption (PermissionError).
The plugin code between the place where the exception occurred and the exeption handler are not executed.
That way the plugin can not function properly.

You have to change permissions on codeintel.log or the .codeintel directory so that the plugin can open/create is and write its log records.

You say the plugin stops working occasionally, so some procces may alter the file/directory permissions.

0 Likes

#5

@gertwin noob questions , but how do i change permissions ! ? :smile:

0 Likes

#6

The sublimecodeintel stuff is just a lot of noise. You also didn’t include the entire console log, which could have given us more information to work with.

Anyway, at the very end of the log, I probably found the reason why yout linting stopped working:

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 256, in on_post_save
    callback.on_post_save(v)
  File "C:\Users\gautamz07\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\sublimelinter.py", line 441, in on_post_save
    self.file_was_saved(view)
  File "C:\Users\gautamz07\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\sublimelinter.py", line 445, in file_was_saved
    syntax_changed = self.check_syntax(view)
  File "C:\Users\gautamz07\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\sublimelinter.py", line 205, in check_syntax
    Linter.assign(view, reset=True)
  File "C:\Users\gautamz07\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\linter.py", line 728, in assign
    for name, linter_class in persist.linter_classes.items():
  File "./functools.py", line 251, in wrapper
  File "C:\Users\gautamz07\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\linter.py", line 1588, in can_lint
    elif status is None:
UnboundLocalError: local variable 'executable' referenced before assignment

I do not know how to solve this though.

Please disable the codeintel package and post your entire console log when it stopped working, so we can get more information.

0 Likes

#7

http://pastebin.com/dJX5sac1

Above are the errors i get now , my plugins continue to work only occasionally :frowning:

0 Likes

#8

Okay, so it appears this exception I quoted earlier is all there is.

What I can say for certain is that there is a bug in SublimeLinter. What I can not say is why this bug is triggered, however. It seems that the linter executable could not be found and SL was about to report that, but the bug prevents it from happening. I don’t know whether the executable could actually not be found or this is just the symptom caused by weird usage of the Linter framework.

Either way, there is nothing you can do at this moment.

What is the linter you are using exactly?

0 Likes

#9

completely removed the linter set of plugins , sublime back to normal now … TY !

0 Likes