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

Unable to run on Windows 10 #21

Open
SeaDude opened this issue Apr 20, 2021 · 4 comments
Open

Unable to run on Windows 10 #21

SeaDude opened this issue Apr 20, 2021 · 4 comments

Comments

@SeaDude
Copy link

SeaDude commented Apr 20, 2021

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

@ray-g
Copy link
Contributor

ray-g commented Apr 25, 2021

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.

@SeaDude
Copy link
Author

SeaDude commented Apr 25, 2021

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

@lawless-m
Copy link

I get a different problem.

The example just gets me "ERD file parse error"

image

@winsonet
Copy link

winsonet commented Mar 2, 2023

I get a different problem.

The example just gets me "ERD file parse error"

image

I have the same issue!

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

No branches or pull requests

4 participants