Sublime Forum

Sublime 3 Not Working

#1

I’m using Sublime 3 and all has been working fine until a few minutes ago. Now when I type html (tab) nothing happens. Also, when I try to save a file with the .html extension, I am getting a pop up that says Unable to save for example, I just named a file test.html and I received the following error message:

Unable to save /test.html

Error: Permission denied

Any ideas on what the problem could be? I have tried rebooting my Mac and reinstalling and the same thing is happening. Puts a damper on making progress in the class Im taking

0 Likes

#2

Not sure what changed, but I took a break and after another reboot all is working fine.

1 Like

#3

I’m glad your problem has been resolved! This may or may not help in the future, but it might explain what happened.

Snippets in ST are sensitive to the type of file that they’re in. So the HTML snippet you mentioned above will only trigger if you’re editing an HTML file. The type of a blank file seems to be “Plain Text” and gets set to HTML either when you save or if you change it explicitly (by clicking on the rightmost part of the status bar where it says Plain Text and picking HTML or whatever).

If you’re working on MacOS or Linux, the root directory (/) is not accessible to regular users, and trying to save a file there will result in a permission denied error. So if you’re on one of those two OS’s and you actually tried to save to “/test.html”, that’s why it didn’t work for you.

1 Like