borkdominik / bigER

Entity Relationship Diagram modeling tool realized as a language server that is distributed as a VS Code extension.
https://marketplace.visualstudio.com/items?itemName=BIGModelingTools.erdiagram
MIT License
106 stars 13 forks source link

SQL generation fails because it is unable to create a directory #55

Open vickkhera opened 1 year ago

vickkhera commented 1 year ago

Description

Generating SQL from the diagram results in an error and no SQL file generated.

Current Behavior

The error dialog pops up in the lower right corner with the message

Error! Exception while executing generator: Could not create directory /generated

and no output is created.

Expected Behavior

The SQL file is generated.

Steps to Reproduce

Create the following ER diagram file:

erdiagram Model

notation=crowsfoot

entity A {
   id key
}
entity B {
   id key
}
relationship Rel {
   A[1] -> B[N]
}

Now right-click and use the Generate menu to create SQL. I tried both generic and PostgreSQL version.

Environment

Additional Information

No response