Skip to content

Conversation

ukmshi
Copy link

@ukmshi ukmshi commented Sep 22, 2024

Thank you for creating the template for outputting Mermaid with RailsERD!

When I ran ERD on the latest master branch, I encountered the following error:

$ bundle exec erd --debug
Loading application in 'project_name'...
Generating entity-relationship diagram for 25 models...
Failed: NameError: uninitialized constant RailsERD::Diagram
    from /usr/local/bundle/bundler/gems/rails-erd-6f4f8b451e64/lib/rails_erd/cli.rb:209:in `generator'
    from /usr/local/bundle/bundler/gems/rails-erd-6f4f8b451e64/lib/rails_erd/cli.rb:215:in `create_diagram'
    from /usr/local/bundle/bundler/gems/rails-erd-6f4f8b451e64/lib/rails_erd/cli.rb:173:in `start'
    from /usr/local/bundle/bundler/gems/rails-erd-6f4f8b451e64/lib/rails_erd/cli.rb:162:in `start'
    from /usr/local/bundle/bundler/gems/rails-erd-6f4f8b451e64/bin/erd:4:in `<top (required)>'
    from /usr/local/bundle/bin/erd:23:in `load'
    from /usr/local/bundle/bin/erd:23:in `<top (required)>'
    from /usr/local/lib/ruby/2.7.0/bundler/cli/exec.rb:63:in `load'
    from /usr/local/lib/ruby/2.7.0/bundler/cli/exec.rb:63:in `kernel_load'
    from /usr/local/lib/ruby/2.7.0/bundler/cli/exec.rb:28:in `run'
    from /usr/local/lib/ruby/2.7.0/bundler/cli.rb:476:in `exec'
    from /usr/local/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
    from /usr/local/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
    from /usr/local/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
    from /usr/local/lib/ruby/2.7.0/bundler/cli.rb:30:in `dispatch'
    from /usr/local/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
    from /usr/local/lib/ruby/2.7.0/bundler/cli.rb:24:in `start'
    from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/libexec/bundle:46:in `block in <top (required)>'
    from /usr/local/lib/ruby/2.7.0/bundler/friendly_errors.rb:123:in `with_friendly_errors'
    from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/libexec/bundle:34:in `<top (required)>'
    from /usr/local/bin/bundle:23:in `load'
    from /usr/local/bin/bundle:23:in `<main>'

I have fixed the error, so please check it.

@scarroll32
Copy link
Contributor

@kerrizor could this PR be merged?

See also #417

scarroll32 added a commit to scarroll32/rails-erd that referenced this pull request Nov 3, 2024
@scarroll32
Copy link
Contributor

Hmmm ... it doesn't look like the CI executed on this for some reason 🤔

@scarroll32 scarroll32 mentioned this pull request Nov 3, 2024
IamNaN added a commit to IamNaN/rails-erd that referenced this pull request Apr 18, 2025
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

Successfully merging this pull request may close these issues.

2 participants