Sublime Forum

Sublime started to hangs & freeze a lot

#1

i wasn’t sure what was exactly cuzing this but everytime it hang i saw an error trace leading to ‘sublime-linter’ package, so i disabled it along with anything that depend on it to work ex. https://packagecontrol.io/packages/JavaScript%20Completions

but right now everytime the app try to check for package upgrades ex.Trimmer the app freeze

and heres after restarting, and ST freezes again

0 Likes

#2

What are you using to syntax highlight the console? I would try disabling that. The console produces output in different situations, but if something about the syntax or applying it to the console needs to output to the console, it can lead to a deadlock.

0 Likes

#3

actually i found that the issue is mostly about upgrading the packages, so everytime ST check for update for the installed packages and find a one, it freeze , but try to uninstall that package and reinstall it with the new version directly , it freeze once installed but when ST is restarted its working as expected again.

the console HL don’t have any effect over the freeze.

0 Likes

#4

@wbond hi again, i’ve removed the console HL which down sized the times ST freezes however now ST freeze if i tried to disable/enable/remove/upgrade any package

is there anyway i can get the log of the freeze/hang reason ?

UPDATE 1 "for remove"

1- it gets added to “in_process_packages”
2- it gets added to “ignored_packages”
3- the package is not removed from “installed_packages”

and that causes a a loop , where it should be only

1- it gets added to “ignored_packages”
2- it gets removed from “installed_packages”

"for install"
if linter is enabled, ST will freeze

"for enable/disable"
for packages like

sublime linter
Emmet
Java​Script Completions

ST will freeze no matter what

UPDATE 2
1- at SublimeLinter/lint/util.py commenting out line #215 (sublime.set_timeout_async(generate_color_scheme_async, 0)) fix the linter issue

2- “for enable/disable” any package, always get the error “top level value must be an array”

0 Likes