Closed stijnherreman closed 5 years ago
My bad, fileContent
isn't text as expected by generate(...)
. An error message would be helpful though, I had to debug the script and step through the generate(...)
code.
I'll see if I can replicate the behaviour, but if it's hanging on generate as you say. Then it is more likely plantuml itself that is the culprit, making hard to report errors. I could be wrong though. Maybe you saw where it got stuck while you were stepping through the generate code?
I've been unable to reproduce this issue myself, and as mentioned in the previous post it is most likely due to Plantuml getting stuck when processing the file.
Consider the following script:
It will not return (making me stop the script with Ctrl-C) when the
const uml = plantuml.generate(fileContent);
line is there. It works fine otherwise. Any idea what' wrong?