This is a first. I was editing away in Sublime Text today and suddenly I couldn’t save my code to the mapped S: drive I was using in SharePoint 2013. S: is for SharePoint. Get it?
The error message on the PC side wasn’t all that helpful, as one might expect. (Sorry for the crappy captured image.)
The files I’m editing are stored in:
http://[Server Name]/sites/[Site Collection Name]/_catalogs/masterpage/_[Client Name]
I’ve found that putting all of my project artifacts in that one location works well because I can easily copy and paste from one environment to another, as needed. I have a folder per artifact type, such as
Master Pages, html, js, css, Display Templates, Page Layouts
etc. I know someone is going to tell me what a horrible idea that is, but it’s not horrible if it works. And it works.
I’m editing within a virtual machine in VMWare Workstation running Windows 8.1 because I can’t connect to the client’s VPN with Windows 10. I originally was using a HyperV VM, but when I installed the production release of Windows 10, that went defunct on me, too. (Yeah, all that’s a mouthful.) Given all that, a restart of the VM seemed like a good idea.
The next thing I thought of was that the disks might be full on the SQL server. I’ve seen that wreak all sorts of havoc in the past. But my admin buddy told me everything was humming along and healthy.
My next move was to download SharePoint Designer onto the VM and try editing the files there.
Aha! When I tried to save my edits, I got this message, which I had never seen before:
Because my files are in the _catalogs/masterpage folder, we inherit versioning and Check In/Check Out. That’s a good thing because I can always restore an older version if something dreadful happens.
Clearly this has been a project with a lot of Ctrl-S action. It turns out that I had 510 minor versions on one file, and that’s the limit. Nada mas.
As soon as I published a major version (in this case, the magical 1.0), I was back up and running.
Yeah, I probably should clean out all those old versions at some point, but disk is cheap.
BTW, this is a really cool project where I’m using KnockoutJS, KO,mapping, fontawesome, jQuery, jQueryUI, jQuery.cookie, fullcalendar, MomentJS, and more. It gets us a pretty and highly useful veneer over basic SharePoint functionality to match the business needs as exactly as possible.