Sublime Forum

Unable to save -- I see no answers

#5

Yikes. I just had this problem on Mac OS 10.7.5 using the latest version of Sublime Text 2. Over half of my buffers were unable to save. Is there any fix in sight for this?

Fortunately, I found a workaround. I have to “Save As” for all of my buffers. It’s painful, but it works.

0 Likes

#6

Can I also report the same thing on Windows 7 (edit file, refresh in browser edit file, then Unable To Save) it’s such a shame because the thought of going back to my previous text editor makes me want to cry :cry:

If it’s any help this doesn’t seem to happen when editing ‘tempory’ files through ftp, only when working on local files in the browser.

Thanks

0 Likes

#7

Most likely the file is locked by another process, or if the file is open RO in another process space and it may be that Sublime is being more fussy than other programs when it detects this to be the case.

It would be nice to see this investigated, but in the meantime, the workaround seems to be to save files under another filename/directory.

It would also be helpful to find a repeatable workflow to reproduce this error (haven’t seen it myself). Hopefully Jon will chime in then.

S

0 Likes

#8

Any news regarding a fix being pushed out for this?

0 Likes

#9

I also cannot save on Ubuntu 12.10 – in particular the user settings file

–edit–
apparently this is because I used this tutorial to install sublime
technoreply.com/how-to-insta … -04-unity/

if you used that, please instead refer to askubuntu.com/questions/172698/h … ime-text-2

0 Likes

#10

Noticed that S2 couldn’t save when editing .html files on win7

I had S2, folder of files, and browser open.

fix: in file explorer folder window, hide the preview pane. This seems to unblock the process, and S2 can save just fine.

May also work in other (mac/*nix) OS.

0 Likes

#11

I have this problem as well. Process Explorer says that nothing else is touching the file. Save-As also failed. Saving it in any other editor works fine.

0 Likes

#12

Actually, it could be relevant that all the files I’m having this trouble with were under version control (although they are checked out when I try and save them). However, given that almost all the files I work with are under version control, if that causes ST to be unable to save them, it’s basically useless. Fortunately, I searched for anything about sublime text and TFS, and found this plugin (bitbucket.org/CDuke/sublime-tfs/src); once I installed the plugin, I was able to save files that were under TFS.

0 Likes

#13

nope, turns out the plugin didn’t help as much as I thought, I still get this error constantly.

0 Likes

#14

I am running on Ubuntu 11.10 and Sublime Text. Unable to save, any fixes?

0 Likes

#15

Same thing with me–though sometimes closing vs11 fixes the error (though at the time, it isn’t running in vs11). Love the tool but I can’t buy it if it makes me restart other applications randomly… :unamused:

0 Likes

#16

Same here.

Couldn’t save for st. So I had to ‘Save As…’ once again and woila, it worked like a charm. After I did ‘Save As’, the regular CTRL S started working again without any hiccups. I was like, WOAH dude, that st worked?! And my brain was like, ‘F**k yeah son, what did you expect, I’m smart.’

0 Likes

#17

Sometimes when downloading a file SFTP plugin seems to alter the file permission on the local copy.

Try right clicking on the file in your finder, click properties or informations and try to see if the permissions are set to “read only”, changing the permissions did the trick for me. :smiley:

0 Likes

#18

I think I know the issue. Go to the file that your trying to save by right clicking and going to Properties. Click the security tab then click edit. You’ll see however users there are (one of them will be Security and one of them will most likely be the Administrator). Click on the one that is actually you (for instance let’s just say your username name was Robin). You would then go to the second window located under the user names, and check the Allow box right next to the text that says Full Control. You should now be able to save the file no problem

Edit: This is for Windows 7 users. I don’t know about Mac or Linux. I would suspect both probably have some way to alter what some users can and cannot do to a certain file.

0 Likes

#19

I’m using Mac OS X 10.6.8 and I can confirm that Sublime v2.0.2 often can’t save ANY file so I have to restart the app (which is a pain in the a$$$$$). :angry:

Is there ANY workaround available? Man I hope this bug will be fixed ASAP because it’s really KILLING my workflow. I had to restart sublime more than 5 times during 30 minutes so I don’t know if I’m gonna use it again.

My plugins (maybe there is one which is the cause of this strange behaviour):

SublimeLint
SidebarEnhancements
Prefixr
BracketHighlighter
Emmet
Package Control
PHP Code Sniffer
Tag

Themes:

Flatland

Any help, please?

0 Likes

#20

Thank you, this helped a lot!

0 Likes

#21

[quote=“somewhatjaded”]Noticed that S2 couldn’t save when editing .html files on win7

I had S2, folder of files, and browser open.

fix: in file explorer folder window, hide the preview pane. This seems to unblock the process, and S2 can save just fine.

May also work in other (mac/*nix) OS.[/quote]

Doesn’t work on Mac OS X 10.6.8. I’m using ST2 2.0.2 and the bug is still there. I disabled the mini map and the *ucking bug is coming back again.

@Jon Skinner:
Please - if you have the time kill that nasty bug for us because it’s killing our workflow!!!

BTW: Some people claimed that when you click on ‘Save As’ it’d work. That’s complete bullshit. It doesn’t work. Not on a Mac (using ST2 2.0.2 (build 2221)). Period.

0 Likes

#22

Update:

I uninstalled SublimeLint (didn’t work with STv2.0.2 on Mac OS X 10.6.8) AND installed Python v8 manually.

Since a week I didn’t encounter the bug any more. :astonished:

Maybe it was the missing Python library causing that very strange bug - who knows! :question:

0 Likes

#23

I just had this problem on Windows 8.1
It was because the file I was trying to edit wasn’t mine
So I went to properties > security > advanced and change the owner to my own user
That did the trick

0 Likes

#24

I am also have problems saving files on a Mac.

My solution was to close the application down and restart the application. It has nothing to do with permissions

This Must be a bug. How do you reports bugs to the developers.

0 Likes