Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The plugin not working in Docker container #22

Open
dpblh opened this issue Mar 10, 2021 · 1 comment
Open

The plugin not working in Docker container #22

dpblh opened this issue Mar 10, 2021 · 1 comment

Comments

@dpblh
Copy link

dpblh commented Mar 10, 2021

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants