kaishuu0123 / erd-go

Translates a plain text description of a relational database schema to a graphical entity-relationship diagram.(convert to dot file)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to run on Windows 10

SeaDude opened this issue · comments

Hi and thank you for the cool tool!

I have erd-go working on my Ubuntu machine but can't seem to get it to run on Windows 10.

Can you spot what I'm missing?

Steps:

  1. Download dot binary from your repo
  2. Download graphviz binary from your repo
  3. Place them in C:/Users/myUser/tools/ directory
  4. Update settings.json in VS Code like:
"erd-preview.erdPath": "C:\\Users\\user7\\tools\\windows_amd64_erd-go.exe",
"erd-preview.dotPath": "C:\\Users\\user7\\tools\\graphviz-dot-win-x64.exe"
  1. Copy the sample .er file from your repo and paste it into a new file
colors {
    person: "#fcecec",
    loc: "#ececfc",
}

[User.Person] {bgcolor: "person" label: "comment"}
*name
height
weight
+birth_location_id

[Location] {bgcolor: "loc"}
*id
city
state
country

User.Person 1--* Location
  1. F1 then ERD: Preview current window
  2. No preview shown
    image

Thank you

I think the problem is due to the Font name coded here: https://github.com/kaishuu0123/erd-go/blob/master/templates/dot_tables.tmpl#L12 .
Windows seems to have a different name than Linux/Mac.
But I forgot what is the font name in Windows since I'm currently only use Linux.

If you come across it, please post here. Still no preview on my end.

I get a different problem.

The example just gets me "ERD file parse error"

image

commented

I get a different problem.

The example just gets me "ERD file parse error"

image

I have the same issue!