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

Crashes with undefined method `children' for nil:NilClass when saving file #63

Open
badosu opened this issue Jan 11, 2024 · 0 comments
Open

Comments

@badosu
Copy link

badosu commented Jan 11, 2024

Describe the bug
Sometimes when saving a file solargraph shuts down, I have autoformat with rubocop and diagnostics enabled.

Find stacktraces and log context here

To Reproduce
Unclear, I haven't been able to extract a minimal repro from the commercial project I work on.

Expected behavior
To not crash

Debug log

I can't share most of the output but this feels relevant (and generic enough):

[INFO] StdlibMap failed to load library rails
[INFO] StdlibMap failed to load library active_model/railtie
[INFO] StdlibMap failed to load library active_job/railtie
[INFO] StdlibMap failed to load library active_record/railtie
[INFO] StdlibMap failed to load library active_storage/engine
[INFO] StdlibMap failed to load library action_controller/railtie
[INFO] StdlibMap failed to load library action_mailer/railtie
[INFO] StdlibMap failed to load library action_mailbox/engine
[INFO] StdlibMap failed to load library action_text/engine
[INFO] StdlibMap failed to load library action_view/railtie
[INFO] StdlibMap failed to load library action_cable/engine
[INFO] StdlibMap failed to load library active_support/core_ext/integer/time
[INFO] StdlibMap failed to load library bundler/require
[INFO] StdlibMap failed to load library sidekiq/middleware/current_attributes
[INFO] StdlibMap failed to load library bundler/setup
[INFO] StdlibMap failed to load library bootsnap/setup
[INFO] StdlibMap failed to load library lograge/sql/extension
[INFO] StdlibMap failed to load library devise/orm/active_record
[INFO] StdlibMap failed to load library dry-monads
[INFO] StdlibMap failed to load library dry/matcher/result_matcher
[INFO] StdlibMap failed to load library pagy/extras/countless
[INFO] StdlibMap failed to load library pagy/extras/overflow
[INFO] StdlibMap failed to load library pagy/extras/items
[INFO] StdlibMap failed to load library pagy/extras/metadata
[INFO] StdlibMap failed to load library rack-mini-profiler
[INFO] StdlibMap failed to load library sidekiq/web
[INFO] StdlibMap failed to load library sidekiq/testing
[INFO] StdlibMap failed to load library dry-initializer
[INFO] StdlibMap failed to load library active_support/core_ext/module/delegation
[INFO] StdlibMap failed to load library active_support/core_ext/object/blank
[INFO] Loading gems for bundler/require
[DEBUG] [Rails][Rails] found 33 pins in annotations
[INFO] Loading rails 7.0.8 from /home/badosu/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/doc/rails-7.0.8/.yardoc
[INFO] Loading bundler 2.4.10 from /home/badosu/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/doc/bundler-2.4.10/.yardoc
[INFO] Loading date 3.3.3 from /home/badosu/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/doc/date-3.3.3/.yardoc
[INFO] Loading net-protocol 0.2.1 from /home/badosu/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/doc/net-protocol-0.2.1/.yardoc
[INFO] Loading ruby2_keywords 0.0.5 from /home/badosu/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/doc/ruby2_keywords-0.0.5/.yardoc
Ruby version: 3.2.2
Solargraph version: 0.50.0
Solargraph Rails version: 1.1.0
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

1 participant