Sublime Forum

Infinite Loop Issue

#1

New to Sublime, here. I was recently practicing writing functions with Sublime and accidentally sent myself into an infinite loop. I am struggling to get the editor to work because each time I reopen, Sublime opens to the file with the infinite loop, despite:

1. shutting down my Mac, restarting,
2. using keyboard shortcuts (control q, control c, opt-command-esc)
3. reopening Sublime and quickly aiming for the File dropdown box and selecting 'Close All Files'.

Any ideas? Thanks

0 Likes

Simple while True loop freezes sublime completely?
#2

to add a 4th, I uninstalled, then reinstalled Sublime, to no avail.

0 Likes

#3

Solved my own issue. If anyone else has had this issue here’s the solution if you’re on Mac:

Finder -> got to folder (drop down) -> enter “~/Library/” -> application support -> sublime text 3 -> packages -> user -> find the file -> open with text editor -> “”" delete the lines of code where issue began""" -> actions -> save

2 Likes

#4

I am facing this issue after running the below Python script

while True:
           print("Something")

I deleted the file I was working on, I tried uninstalling it, I deleted the AppData/Local/Sublime Text 3 Folder but the issue still persists, is there a workaround to resolve this issue?

I will appreciate your help.

Regards.

0 Likes

#5

The menu option Tools -> Cancel Build should be available for you when you run an infinity script.

Alternately, you can directly kill the process by your process manager like:

  1. https://processhacker.sourceforge.io/
  2. https://hisham.hm/htop/

Related threads:

  1. Infinite loop causes the whole system to crash, python
  2. Infinite loop inside Python script
0 Likes