-
Notifications
You must be signed in to change notification settings - Fork 30
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
Diagram output not as expected. #10
Comments
Having the same problem over here. did you have any luck finding a solution? |
Hi @tinomerl, Sorry, I don't have a solution. |
@lucastorri I tried to render the example with version 1.0.13 first and everything was fine.
Then I installed the latest version which is 1.0.19. It already gave me a warning when I installed it:
I also noticed that if you produce a dot file and render that through graphviz's So my theory is that the dependency to the js dot renderer is broken. A workaround for now could be to install version 1.0.13. I have added a test case (the expected svg is rendered with 1.0.13 - which probably needs updating once it works properly). |
Oh, just noticing that the test suite doesn't check the SVG output, which is also broken for the other examples. |
Downgrading from 1.0.19 to 1.0.13 doesn't solve the problem for me. Still only Table Names and References are rendered in the SVG. npm list -g | grep dbml-renderer Do I need to do additional removals or reinstallations? |
@fleipold Thanks for the update. I tried replicating it today by first creating a dot file with the command:
I used this example file. But the .dot output looks different from your example. The columns are clearly missing. When i try to create a svg file with:
I get the error "Error: users.dot: syntax error in line 1 near '>'". I also tried downgrading to 1.10.13 but got the same results as @lakay |
Thanks, @tinomerl . This is really weird. I think it might be a problem of the graphviz version. I discovered that my local version is very "stable":
It still manages to render that file. So I'll upgrade and investigate. My suspicion is that the generated .dot file is a bit too liberal in its interpretation of the spec. |
It looks like this could be causing the problem: aduh95/viz.js#21 |
@tinomerl You need to specify the format output as 'dot':
Then |
@lucastorri perhaps we should move away from viz.js. We could just |
I'm exhibiting this issue with the SVG renderer. I'm weirdly not exhibiting this issue when my DBML file is copied into a checkout of this repo (either at If it matters, my local dot version is:
I haven't yet tried the proposal of executing the dot binary myself. |
Update: executing the dot-binary myself works fine. Separately: when I try to in renderer.ts:
That doesn't explain why using |
my 5 cents. I've installed GraphViz, rerun the command, but result still was KO. |
In case if anyone is using the library with Github actions:
|
For a workaround I have done this in my package.json {
"devDependencies": {
"@aduh95/viz.js": "3.4.0",
"@dbml/cli": "^2.3.1",
"@softwaretechnik/dbml-renderer": "^1.0.19"
}
} |
The aduh95/viz.js#21 issue @fleipold pointed out, which was introduced in v3.5.0, is still present in the latest v3.6.0. We've fixed this in v1.0.20 of dbml-renderer by pinning to aduh95/viz.js v3.4.0 for now. |
Hi,
I tried to use dbml-renderer on a dbml file I had created, but the diagram only had the table names. So I tried to render the simple dbml example in the README file to make sure it was working. However, the example is not being rendered correctly either.
$ dbml-renderer -i test.dbml -o test.svg
That produces:
Nothing like the example at https://github.com/softwaretechnik-berlin/dbml-renderer/blob/master/examples/user-posts.dbml.svg
There were no error messages or warnings when executing the dbml-renderer command. Is there a way to turn on logging/debugging? The command doesn't seem to have a help page either.
Maybe there is a missing package?
System setup:
OS: GNU/Linux - Devuan
I installed recent versions of nodejs/npm via nvm.
dbml-renderer was installed by:
$ npm install -g @softwaretechnik/dbml-renderer
The installation went smoothly without errors/warnings.
Any guidance appreciated.
Cheers
The text was updated successfully, but these errors were encountered: