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

Update puppeteer-config.json for mermaid-cli headless warning #2731

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

noklam
Copy link
Contributor

@noklam noklam commented Jun 27, 2023

Description

I have this issue when I try to fix #2688 (comment) GitPod to run make build-docs

Warning, treated as error:
mermaid code 'flowchart TD\n A[Start] --> B{Do you prefer developing your projects in notebooks?}\n B -->|Yes| C[Use a Databricks workspace to develop a Kedro project]\n B -->|No| D{Are you a beginner with Kedro?}\n D -->|Yes| E[Use an IDE, dbx and Databricks Repos to develop a Kedro project]\n D -->|No| F{Do you have advanced project requirements
e.g. CI/CD, scheduling, production-ready, complex pipelines, etc.?}\n F -->|Yes| G{Is rapid development needed for your project needs?}\n F -->|No| H[Use an IDE, dbx and Databricks Repos to develop a Kedro project]\n G -->|Yes| I[Use an IDE, dbx and Databricks Repos to develop a Kedro project]\n G -->|No| J[Use a Databricks job to deploy a Kedro project]': Mermaid exited with error:
[stderr]
b'\x1b[1m\x1b[43m\x1b[30m\n Puppeteer old Headless deprecation warning:\x1b[0m\x1b[33m\n In the near feature headless: true will default to the new Headless mode\n for Chrome instead of the old Headless implementation. For more\n information, please see https://developer.chrome.com/articles/new-headless/.\n Consider opting in early by passing headless: "new" to puppeteer.launch()\n If you encounter any bugs, please report them to https://github.com/puppeteer/puppeteer/issues/new/choose.\x1b[0m\n\n\nError: Failed to launch the browser process!\n/home/gitpod/.cache/puppeteer/chrome/linux-1108766/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: https://pptr.dev/troubleshooting\n\n at Interface.onClose (file:///home/gitpod/.nvm/versions/node/v18.16.0/lib/node_modules/@mermaid-js/mermaid-cli/node_modules/@puppeteer/browsers/lib/esm/launch.js:253:24)\n at Interface.emit (node:events:525:35)\n at Interface.close (node:internal/readline/interface:533:10)\n at Socket.onend (node:internal/readline/interface:259:10)\n at Socket.emit (node:events:525:35)\n at endReadableNT (node:internal/streams/readable:1359:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n\n'
[stdout]
b''

mermaid-js/mermaid-cli#544 (comment)

Development notes

Checklist

  • Read the contributing guidelines
  • Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • Updated the documentation to reflect the code changes
  • Added a description of this change in the RELEASE.md file
  • Added tests to cover my changes

@noklam noklam marked this pull request as draft June 27, 2023 10:29
@noklam noklam marked this pull request as ready for review June 27, 2023 10:39
@noklam noklam requested review from deepyaman and removed request for yetudada June 27, 2023 10:41
@noklam noklam enabled auto-merge (squash) June 27, 2023 10:52
Copy link
Contributor

@stichbury stichbury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to approve, though I have to confess 🤷 when it comes to understanding what they're doing.

@noklam noklam merged commit 4536caf into main Jun 27, 2023
@noklam noklam deleted the noklam-patch-1 branch June 27, 2023 11:11
@noklam
Copy link
Contributor Author

noklam commented Jun 27, 2023

@stichbury I am as puzzled as you, just trying to slience the warning while looking up a lots of Github issues for solution.

jmalovera10 pushed a commit to jmalovera10/kedro that referenced this pull request Jun 30, 2023
…org#2731)

* Update puppeteer-config.json for mermaid-cli headless warning

* Update conf.py

Signed-off-by: Juan Lovera <[email protected]>
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

Successfully merging this pull request may close these issues.

3 participants