vscode-mermaid-editor icon indicating copy to clipboard operation
vscode-mermaid-editor copied to clipboard

Generating image fails with permissions error when using GitHub Repositories extension

Open leighmcculloch opened this issue 3 years ago • 1 comments

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:

  1. Install GitHub Repositories: https://marketplace.visualstudio.com/items?itemName=GitHub.remotehub
  2. Install Markdown Editor: https://marketplace.visualstudio.com/items?itemName=tomoyukim.vscode-mermaid-editor
  3. Create a diagram, save it as an .mmd file.
  4. 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

leighmcculloch avatar Sep 28 '21 04:09 leighmcculloch

It seems the target directory has read-only permission. Could you try to change the outputPath config with another directory that has write permission?

tomoyukim avatar Dec 24 '21 15:12 tomoyukim