Sublime Forum

ST4 not refreshing code

#1

After the update i’ve been through some problems using sublime. The first one was WinError2, which i’ve already fixed, but now there’s this thing where sublime doesn’t refresh the code after i write it unless i close the archive and save the changes.
For example:
if the original code is “print(1+1)” it returns “2”, as usual. However, if i change the code to “print(1+2)” it still prints “2” instead of “3”, and only returns “3” if i close the archive, save the changes and then reopen the archive.
I have no idea what to do, i’ve tried reinstalling but it didn’t fix and i can’t find anything about it online.

Also sorry for my bad english, it’s not my first language

0 Likes

#2

I don’t know what you mean by archive here, but are you running your program directly from within Sublime or are you doing it in an external terminal? I would expect that changes you made to a file in Sublime won’t be saved to disk and thus available to external programs unless you save first, for example.

0 Likes

#3

I’m running a program from within sublime.

0 Likes

#4

Make sure that Tools > Save all on Build has a checkmark next to it in the menu.

0 Likes

#5

That fixed it, thank you very much.

1 Like