-
Notifications
You must be signed in to change notification settings - Fork 368
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
Error: in routesplines, cannot find NORMAL edge #70
Comments
+1 👍 |
same here |
Fixes appreciated |
This would be great to figure out. No solution seems to help. I've tried reinstalling graphviz --with-pangocairo, reinstalling everything but nothing helps. |
I had a look at the generated DOT. My graphviz version (2.36.0 (20140111.2315)) seg faults when there are multiple edges (=associations) between the same two nodes (=models). This may occur for example when a model tracks the modifying user with creator, updater and deleter associations. Because rails-erd does not include any labels on the edges, I did not see the point in having multiple edges and removed them with the following patch: require 'rails_erd/domain/relationship'
module RailsERD
class Domain
class Relationship
class << self
private
def association_identity(association)
Set[association_owner(association), association_target(association)]
end
end
end
end
end This made the seg faults disappear, diagrams are generated fine again. |
@codez please help: what file path of you patch must be to make things right? Where to place your patch? |
I usually put patches into config/initializers |
@codez thank you! I'm always forget this is rails... |
@KelseyDH Thanks! Could I trouble you to try the new 1.3 version of rails-erd and update this thread on whether or not its still an issue? |
@kerrizor, For rails-erd 2.3.0, with the exception of I'll note I had some problems today with graphviz, which led me to uninstalling and reinstalling graphviz with brew, so that I am now on graphviz-2.38.0.yosemite: When I run the rails-erd I get the following as the starting output (with the association problems possibly due to problems with the app), which I'll post so that my output is more helpful:
And then for various commands I get the following.... With @codez patch,
|
This patch worked for me today. Thank you. |
Thanks! I'd love to get this in as an actual code change rather than a patch - anyone like to take this us as a PR? |
Ran into this issue today. Patch fixed my issue. |
The patch fixed it for me too but now I get this error whenever I run my specs:
I've fixed it by scoping it to the development environment but it's pretty clunky: if Rails.env.development?
require 'rails_erd/domain/relationship'
module RailsERD
class Domain
class Relationship
class << self
private
def association_identity(association)
Set[association_owner(association), association_target(association)]
end
end
end
end
end
end If anyone has a better solution I'd love to hear it :) |
The patch let me generate a pdf file. Without it 'rake erd' woulf fail and 'dot' would crash on both Mac and Linux. |
Using version 1.5.0 (which includes the merged PR #190), I still had the problem. Adding the @codez patch resolved it. Interestingly, it also solved it for https://github.com/amatsuda/erd on the same code-base. Fairly hairy model: 230 entities, lots of has-many-through and a fair smattering of polymorphic associations. Rails 3.2 with a load of patches; graphviz version 2.36.0 (20140111.2315) |
@cobbr2 which version of graphviz are you on? |
2.36.0
Oh, and of course it fixed the other gem; hadn't realized until then that it used rails-erd, since I'd installed them separately. |
Just had to use this 2014 patch to get things to generate, ideally it would work with those multiple relationships... In my case it was complaining about graphviz 2.40.1 |
rails-erd 1.5.2 Still needed to apply this patch to make it work for |
@sstarr's fix worked for me - ruby 2.4.2 rails 5.1.4 ubuntu 18.04 |
Should be fixed by #296 and in the v.1.6.0 release |
Howdy!
I'm trying to generate a graph in Rails 4. I can generate erd.dot, but I cannot generate a PDF. This is the output I get from
rake erd
The CoreText performance warning is repeated many times, but I'm not concerned about it (or maybe I should be?).
This is what I get when I run it verbosely
dot -Tpdf -oERD.pdf -v erd.dot
:Any help is appreciated!
The text was updated successfully, but these errors were encountered: