joethei / obsidian-plantuml

Generate PlantUML Diagrams inside Obsidian.md
MIT License
395 stars 23 forks source link

Plugin doesn't understand paths with spaces #31

Closed maxtar closed 2 years ago

maxtar commented 2 years ago

I've put plantuml.jar in attachment folder inside obsidian valet. And valet in OneDrive folder from our organization. And it name contains spaces. If I try to set path to this plantuml.jar I got an error:

plugin:obsidian-plantuml:5147 Uncaught (in promise) Error: Error: Unable to access jarfile C:\Users\user\OneDrive

    at ChildProcess.eval (plugin:obsidian-plantuml:5147:20)
    at ChildProcess.emit (node:events:402:35)
    at maybeClose (node:internal/child_process:1064:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:390:28)
    at Pipe.<anonymous> (node:net:687:12)

After OneDrive following path with spaces. I've tried to use absolute path and path like [[plantuml.jar]] - result is the same.