vscode-mermaid-editor
vscode-mermaid-editor copied to clipboard
Generating image fails with permissions error when using GitHub Repositories extension
Describe the bug When opening a repository using GitHub Repositories plugin, where the code is not checked out to a repo, attempting to generate an image from a diagram results in this error:
Unable to write file '/leighmcculloch/diagrams/merging-shared-iteration-number-simple.svg' (Unknown (FileSystemError): Error: EROFS: read-only file system, mkdir '/leighmcculloch')
To Reproduce Steps to reproduce the behavior:
- Install GitHub Repositories: https://marketplace.visualstudio.com/items?itemName=GitHub.remotehub
- Install Markdown Editor: https://marketplace.visualstudio.com/items?itemName=tomoyukim.vscode-mermaid-editor
- Create a diagram, save it as an .mmd file.
- Run the command
Mermaid:Generate image
Expected behavior Image would be generated in some form.
Screenshots N/A
Desktop (please complete the following information):
- OS: macOS 11.6
- VSCode version: v1.60.2
- Extension version: v0.11.4
Additional context N/A
It seems the target directory has read-only permission. Could you try to change the outputPath
config with another directory that has write permission?