-
Notifications
You must be signed in to change notification settings - Fork 363
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
rake erd stops working after upgrading to Yosemite #87
Comments
After running: rvm reinstall all the error has chnged to: |
after restarting the computer it went back to the original error. |
running |
Can you provide sample code for this error? Otherwise it's hard to debug. |
it might be related to issue: when i try a workaround I get this error: $ erd --inheritance --direct --attributes=foreign_keys,content --filetype=dot |
@bigos did you attend to the error message? |
this is with bundle exec prepended: $ bundle exec erd --inheritance --direct --attributes=foreign_keys,content --filetype=dot I have the same problem on Linux Mint 17 machine. so it might not be Yosemite specific. |
this one was ran on Linux: rake erd --trace |
I found it. It's a term-ansicolor related issue. Removing term-ansicolor gem and requirements of it in the code lets me to generete erd pdf files on Yosemite. Now the question is how we can colorize our logs and keep the rake-erd? |
there's lots of gems for ansi colors, like rainbow. or just write your own |
Switching a gem is not an option for my team. I'll just uncomment |
Seems https://github.com/flori/term-ansicolor/blob/master/lib/term/ansicolor/attribute/text.rb#L5 is interacting strangely |
anybody got bitten by this problem yet?
$ brew install graphviz
==> Installing graphviz dependency: libpng
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.6.13.yosemite.bottle.tar.gz
################################################################## 100.0%
==> Pouring libpng-1.6.13.yosemite.bottle.tar.gz
🍺 /usr/local/Cellar/libpng/1.6.13: 17 files, 1.2M
==> Installing graphviz
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/graphviz-2.38.0.yosemite.bottle.1.tar.gz
################################################################## 100.0%
==> Pouring graphviz-2.38.0.yosemite.bottle.1.tar.gz
🍺 /usr/local/Cellar/graphviz/2.38.0: 469 files, 68M
$ rake erd
Loading application environment...
Loading code in search of Active Record models...
Generating Entity-Relationship Diagram for 51 models...
rake aborted!
NoMethodError: undefined method `clear?' for #RailsERD::Domain::Attribute:0x007fa81f2cd610
The text was updated successfully, but these errors were encountered: