baerrach / gatsby-remark-plantuml

Gatsby Remark parser for PlantUML code blocks
Other
3 stars 4 forks source link

The plugin not working in Docker container #22

Open dpblh opened 3 years ago

dpblh commented 3 years ago

Hello everyone! I can't run build of my project in the docker container. I am seeing a floating bug during the build. Some diagrams are rendered and some fall with an error. This happens completely randomly.

error log

error [object Object] Cannot read property 'replace' of undefined

  TypeError: Cannot read property 'replace' of undefined

  - index.js:159 runplantuml
    [app]/[gatsby-remark-plantuml]/index.js:159:33

  - task_queues:94 processTicksAndRejections
    node:internal/process/task_queues:94:5

  - index.js:201 generateUmlAndUpdateNode
    [app]/[gatsby-remark-plantuml]/index.js:201:28

I used

docker base image

  1. alpine3.10
  2. alpine3.13
  3. debian:buster
  4. ubuntu:18.4

java

  1. openjdk8
  2. openjdk11
  3. openjdk14

node.js

  1. node:12
  2. node:15

What am I doing wrong?

baerrach commented 3 years ago

Hi @dpblh

See https://github.com/baerrach/gatsby-remark-plantuml/blob/master/CONTRIBUTING.md for more details, a summary follows:

Once you have cloned this repository, running npm t will run all the tests. They should all pass.

You can then run npm v to generate visualisations of the tests which get stored in ./svg/<test-name>.html. If you open each one of those in a browser they should look correct.

This project is really a pet project I hacked together to get plantuml working with gatsby+remark.

I don't spend any time maintaining it.

If you find a problem and can fix it, then I'll accept pull requests.