joethei / obsidian-plantuml

Generate PlantUML Diagrams inside Obsidian.md
MIT License
368 stars 18 forks source link

Cannot work with Pandoc Plugin. TypeError: Cannot read property 'path' of null #23

Closed ChienChunCHENG closed 2 years ago

ChienChunCHENG commented 2 years ago

What happened?

Version 1.5.1 cannot use Pandoc Plugin (version 0.25) exporting files from HTML. Have tried plantuml and plantuml-svg. Perfect display in Obsidian, but cannot generate DOCX, PPT, HTML via Pandoc Plugin.

Obsidian version

13.31

Plugin version

1.51

What distribution are you seeing the problem on?

Desktop

Are you using a local .jar or a remote server

server

Relevant log output

main.ts:160 TypeError: Cannot read property 'path' of null
    at t.getDirectParent (app.js:1)
    at Replacer.getFullPath (eval at <anonymous> (app.js:1), <anonymous>:4876:42)
    at Replacer.getPath (eval at <anonymous> (app.js:1), <anonymous>:4880:17)
    at DebouncedProcessors.eval (eval at <anonymous> (app.js:1), <anonymous>:5233:81)
    at Generator.next (<anonymous>)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:70:61)
    at new Promise (<anonymous>)
    at __async (eval at <anonymous> (app.js:1), <anonymous>:54:10)
    at DebouncedProcessors.processor (eval at <anonymous> (app.js:1), <anonymous>:5220:54)
    at DebouncedProcessors.eval (eval at <anonymous> (app.js:1), <anonymous>:5212:18)
eval @ main.ts:160
rejected @ tslib.es6.js:74
Promise.then (async)
step @ tslib.es6.js:75
eval @ tslib.es6.js:76
__awaiter @ tslib.es6.js:72
startPandocExport @ main.ts:88
checkCallback @ main.ts:49
WR @ app.js:1
t.onChooseItem @ app.js:1
t.onChooseSuggestion @ app.js:1
t.selectSuggestion @ app.js:1
e.useSelectedItem @ app.js:1
(anonymous) @ app.js:1
e.handleKey @ app.js:1
e.onKeyEvent @ app.js:1