Sublime Forum

Adjusting plug-in unresponsive timeout?

#1

I have an old computer where SublimeLinter plug-in causes constant “This plug-in takes long time to response” messages. It’s more like computers fault (slow io).

Where one could adjust the timeout which triggers this dialog message?

0 Likes

#2

You can add this to your user preferences to get rid of the message all together: "detect_slow_plugins": false

0 Likes

#3

You coud probably rewrite the plugin to use sublime.set_timeout and generators and break down the main thread routine into little chunks, 2-3 ms each. The advantage is that you can check for any state change before turning the gears a notch and just halt or restart the job.

If your computer really is that slow it might be worth it ?

0 Likes

#4

[quote=“castles_made_of_sand”]
If your computer really is that slow it might be worth it ?[/quote]

Assumed time needed to rewrite a very complex plug-in to chunk / generator based: 3-5 days

Value of coding hour: 100 USD

Price of a new computer: 1600 USD.

No thank you :sunglasses:

Please note that SublimeLinter already used threading, so I am not sure what causes those pop-ups to appear.

0 Likes

#5

Actually this does not seem to have effect for some reason :frowning:

Put this into Preferences > Global Settings - User.

Using Build 2181.

0 Likes

#6

That may only be in the dev version. Sorry.

0 Likes

#7

Hmm in fact the reponsive dialog tells to adjust this setting, so it should be there I guess :frowning:

0 Likes

#8

[quote=“miohtama3”]
Value of coding hour: 100 USD

Price of a new computer: 1600 USD.

No thank you [/quote]

hahaha … when you put it like that …

0 Likes