Closed qbunia closed 7 months ago
Newest version broke the extension. Im getting error:
23:50:07.885 ERROR: Error processing queue: Illegal characters in path. at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath) at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost) at Typewriter.Generation.Template.WriteFile(String outputPath, String outputContent) at Typewriter.Generation.Template.SaveFile(File file, String output, Boolean& success) at Typewriter.Generation.Template.RenderFile(File file) at Typewriter.Generation.Controllers.GenerationController.<>c__DisplayClass5_1.<OnTemplateChanged>b__1() at Typewriter.Generation.Controllers.EventQueue.ProcessQueue()
to investigate I need path in which template exists
Its C:\Users\Qbusoft\Desktop\DoctorsOfficeGit\AngularTest\src\models
@AdaskoTheBeAsT did you manage to fix the issue?
please download latest version
On latest version it doesnt work. I tested it.
this is version which I have
when I generate some file out of tst file without BOM and when I check its encoding in notepad++ it clearly says it is UTF-8
same when I use default
The problem is that with newest version I cannot generate anything. I mentioned the bug below.
can you enable long paths on your machine?
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem] "LongPathsEnabled"=dword:00000001
Unfortunately its not possible.
please check this one https://github.com/AdaskoTheBeAsT/Typewriter/releases/tag/v2.25.0
Getting same error:
07:30:07.263 ERROR: Error processing queue: Illegal characters in path. at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath) at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost) at Typewriter.Generation.Template.WriteFile(String outputPath, String outputContent) at Typewriter.Generation.Template.SaveFile(File file, String output, Boolean& success) at Typewriter.Generation.Template.RenderFile(File file) at Typewriter.Generation.Controllers.GenerationController.<>c__DisplayClass5_1.<OnTemplateChanged>b__1() at Typewriter.Generation.Controllers.EventQueue.ProcessQueue()
in settings - do you use option .OutputDirectory() ? if yes is the path either written as
settings.OutputDirectory(@"C:\Users\Qbusoft\Desktop\DoctorsOfficeGit\AngularTest\src\models")
or
settings.OutputDirectory("C:\\Users\\Qbusoft\\Desktop\\DoctorsOfficeGit\\AngularTest\\src\\models")
I dont use OutputDirectory at all in settings. My settings:
Template(Settings settings) { settings.IncludeProject("Models"); settings.OutputExtension = ".d.ts"; settings.DisableStrictNullGeneration(); settings.SkipAddingGeneratedFilesToProject = true; }
@AdaskoTheBeAsT Did you get my last message?
as I checked your file is working on my machine - so it is strictly related either with machine and/or also project related stuff - I can't recreate issue on my machine
It turned out I had to actually set LongPathsEnabled to 0 to make it work.
When classes are generated they have windows-1250 encoding instead of original file encoding UTF8. How I can fix this issue?