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

"stack level too deep" error when installing 2.2.0+ #4818

Closed
dmorgan-fa opened this issue Jan 31, 2024 · 3 comments · Fixed by #4819
Closed

"stack level too deep" error when installing 2.2.0+ #4818

dmorgan-fa opened this issue Jan 31, 2024 · 3 comments · Fixed by #4819

Comments

@dmorgan-fa
Copy link

What

When first installing the gem on version 2.2.0+, the following stack level too deep error occurs:

$ gem install graphql -v2.2.0
Fetching graphql-2.2.0.gem
Successfully installed graphql-2.2.0
Parsing documentation for graphql-2.2.0
Installing ri documentation for graphql-2.2.0
/Users/<username>/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rdoc-6.6.2/lib/rdoc/any_method.rb:131:in `is_alias_for': stack level too deep (SystemStackError)
	from /Users/<username>/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rdoc-6.6.2/lib/rdoc/method_attr.rb:134:in `documented?'
	from /Users/<username>/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rdoc-6.6.2/lib/rdoc/method_attr.rb:135:in `documented?'
	from /Users/<username>/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rdoc-6.6.2/lib/rdoc/method_attr.rb:135:in `documented?'
	from /Users/<username>/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rdoc-6.6.2/lib/rdoc/method_attr.rb:135:in `documented?'
	from /Users/<username>/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rdoc-6.6.2/lib/rdoc/method_attr.rb:135:in `documented?'
	from /Users/<username>/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rdoc-6.6.2/lib/rdoc/method_attr.rb:135:in `documented?'
	from /Users/<username>/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rdoc-6.6.2/lib/rdoc/method_attr.rb:135:in `documented?'
	from /Users/<username>/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rdoc-6.6.2/lib/rdoc/method_attr.rb:135:in `documented?'
	 ... 10898 levels...
	from /Users/<username>/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/command_manager.rb:193:in `process_args'
	from /Users/<username>/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/command_manager.rb:151:in `run'
	from /Users/<username>/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/gem_runner.rb:56:in `run'
	from /Users/<username>/.asdf/installs/ruby/3.2.2/bin/gem:12:in `<main>'

This only happens the first time when installing the 2.2.0+ version, so run gem uninstall graphql first to purge the local install.
It does not happen for v2.1 (i.e. gem install graphql -v2.1.11 is fine)

Versions

  • graphql: 2.2.0+
  • M1 Mac, Sonoma 14.2.1
  • ruby: 3.2.2, 3.3.0
  • asdf to install ruby via rbenv/ruby-build (Also present when installed with ruby-install)

Steps to reproduce

  1. Remove any existing grapqhl gems: gem uninstall graphql & select all
  2. Install any 2.2.0 version: gem install graphql -v 2.2.0
@rmosolgo
Copy link
Owner

Hey, thanks for reporting this! I had seen it too, but since, as you noted, it worked if you ran it a second time, I ignored it 🙈 I was able to replicate the problem locally with rdoc **/*.rb, and confirm that #4819 will fix it.

@rmosolgo
Copy link
Owner

I also reported this bug to RDoc: ruby/rdoc#1088

@dmorgan-fa
Copy link
Author

Thanks for the speedy reply and fix @rmosolgo 🙏

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 a pull request may close this issue.

2 participants