arjanv wrote:
Is it that same template? It might be another process exclusively locked the file.
I find these lines in the stack trace in the exception viewer:
at ActiproSoftware.SyntaxEditor.Document.SaveFile(String path, Encoding encoding, LineEndStyle lineEndStyle)
at SD.LLBLGen.Pro.Tools.TemplateEditor.Controls.TextEditorMDIChild.SaveFile()
at SD.LLBLGen.Pro.Tools.TemplateEditor.Controls.TextEditorMDIChild.Save()
at SD.LLBLGen.Pro.Tools.TemplateEditor.MainForm.HandleSaveAll()
at SD.LLBLGen.Pro.Tools.TemplateEditor.MainForm.CompileLptTemplates()
Doesn't that indicate that the file is being tried to save?
Ah, ok, so it can't save because it's readonly while you edited it. I didn't know that the save was the problem, I tried to check whether the compilation of readonly templates was ok or not.
So if you edit a readonly file, then yes, it cant save it. It saves files before it compiles them, similar to vs.net, it's not in-memory feeding the editor contents to the compiler, the content is read from disk.
For now, make the template writable if you want to edit them. I'll add a check and a popup to see if the file is writable.
ps: you don't have to wrap a picture that many times to attach it (zip -> word doc -> image )