Joao-Peterson / super-figure

Super figure is a vscode extension that implements integration for Inkscape and Gimp as means to quickly launch and edit figures and see the results is your Latex or Markdown files
https://marketplace.visualstudio.com/items?itemName=peterson.super-figure
MIT License
13 stars 0 forks source link

Cannot mkdir in Windows #1

Closed max-prime-math closed 1 year ago

max-prime-math commented 1 year ago

I get the following error in Windows after selecting text fig/text, bringing up the command pallet, selecting Super Figure: Insert vector figure as latex snippet and choosing the template ~/.config/super-figure/templates/template.svg which does indeed exist.

Could not copy template file 'C:\Users\[myusername]/.config/super-figure/templates/template.svg'. Os Error: Error: ENOENT: no such file or directory, mkdir '\\?\C:\c:\[path-to-my-project]\fig'

The only extension settings that I have changed are the paths to Inkscape and Gimp, which are "C:\Program Files\Inkscape\bin\inkscape.exe" and "C:\Program Files\GIMP 2\bin\gimp-2.10.exe", respectively.

Joao-Peterson commented 1 year ago

Seems like the target image file is kinda messed up. Mind providing the log in the console > output > Super Figure?

max-prime-math commented 1 year ago
Editing vector figure: fig/test
File 'fig/test.svg' doesn't exists, using template '~/.config/super-figure/templates/template.svg'
Copying from: 'C:\Users\[myuserneame]/.config/super-figure/templates/template.svg' to: 'C:\c:\[path-to-my-project]\fig\test.svg'
Could not copy template file 'C:\Users\[myusername]/.config/super-figure/templates/template.svg'. Os Error: Error: ENOENT: no such file or directory, mkdir '\\?\C:\c:\[path-to-my-project]\fig'
max-prime-math commented 1 year ago

Yeah, it looks like there are two references to C drive. If I try to run this in a different drive, say G, then it'll give me a similar message: Copying from: 'C:\Users\[myuserneame]/.config/super-figure/templates/template.svg' to: 'C:\g:\[path-to-my-project]\fig\test.svg'

Joao-Peterson commented 1 year ago

I will have a look at it and test it on a Windows machine in a hour, maybe tomorrow

Joao-Peterson commented 1 year ago

Good to go, tested on linux and windows. If you found any other problem let me know. Cheers, happy holidays!

max-prime-math commented 1 year ago

Thanks for the quick fix! I'm really enjoying using this. RIP Castel!