timofurrer / pandoc-plantuml-filter

Pandoc filter for PlantUML code blocks
https://pypi.org/project/pandoc-plantuml-filter
MIT License
105 stars 27 forks source link

Noisy Output: Could not create directory "plantuml-images" #29

Open lixueyi83 opened 4 months ago

lixueyi83 commented 4 months ago

I am continue getting this noisy message, Could not create directory "plantuml-images", when the plantuml-images folder was already created previously.

This is the command I convert markdown to pdf

    pandoc --filter=pandoc-plantuml test.md -o test.pdf

image

There are a couple of plantuml in the test.md file, run the above command twice. It seems for the first plantuml diagram, pandoc will create the folder since it's not there... But when pandoc tries to convert the 2nd plantuml diagram, it still trying th create the folder and then it starts complaining.

fliiiix commented 4 months ago

yeah that is this issue https://github.com/timofurrer/pandoc-plantuml-filter/issues/25

i know i just didn't had the time and motivation to fix it 😅

Felixoid commented 4 months ago

But it's the https://github.com/jgm/pandocfilters/blob/5c6c1954401099f64e36e0fa52e29b27a52f581b/pandocfilters.py#L52 issue.

And it should be addressed in the pandocfilters https://github.com/jgm/pandocfilters/pull/109

Felixoid commented 4 months ago

Well, actually, in the case of @lixueyi83 it's an outdated pandocfilters https://github.com/jgm/pandocfilters/commit/4da2c73331c94d1227ea5104b0bdcad4c1e1ffda

But still, the current code is supposed to spam the error somehow ¯\_(ツ)_/¯