Skip to content

Instantly share code, notes, and snippets.

@rainerborene
Created January 14, 2026 19:58
Show Gist options
  • Select an option

  • Save rainerborene/e2820b9fcaa28c8fbbec55c3c4ed7915 to your computer and use it in GitHub Desktop.

Select an option

Save rainerborene/e2820b9fcaa28c8fbbec55c3c4ed7915 to your computer and use it in GitHub Desktop.
Parsing documentation for abbrev-0.1.2
Parsing documentation for action_policy-0.7.6
Parsing documentation for action_policy-0.7.5
Parsing documentation for action_text-trix-2.1.16
Parsing documentation for action_text-trix-2.1.15
Parsing documentation for actioncable-8.1.2
Parsing documentation for actioncable-8.1.1
Parsing documentation for actionmailbox-8.1.2
Parsing documentation for actionmailbox-8.1.1
Parsing documentation for actionmailer-8.1.2
Parsing documentation for actionmailer-8.1.1
Parsing documentation for actionpack-8.1.2
Parsing documentation for actionpack-8.1.1
Before reporting this, could you check that the file you're documenting
has proper syntax:
/home/user/.asdf/installs/ruby/4.0.0/bin/ruby -c lib/action_dispatch/routing/mapper.rb
RDoc is not a full Ruby parser and will fail when fed invalid ruby programs.
The internal error was:
(TypeError) can't create instance of singleton class
ERROR: While executing gem ... (TypeError)
can't create instance of singleton class
symbol_tk = Token.new(tk.line_no, tk.char_no, :on_symbol)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/gems/4.0.0/gems/rdoc-7.1.0/lib/rdoc/parser/ripper_state_lex.rb:78:in 'RDoc::Parser::RipperStateLex#get_symbol_tk'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/gems/4.0.0/gems/rdoc-7.1.0/lib/rdoc/parser/ripper_state_lex.rb:36:in 'RDoc::Parser::RipperStateLex#get_squashed_tk'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/gems/4.0.0/gems/rdoc-7.1.0/lib/rdoc/parser/ripper_state_lex.rb:290:in 'RDoc::Parser::RipperStateLex.parse'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/gems/4.0.0/gems/rdoc-7.1.0/lib/rdoc/parser/ruby.rb:181:in 'RDoc::Parser::Ruby#initialize'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/gems/4.0.0/gems/rdoc-7.1.0/lib/rdoc/parser.rb:194:in 'RDoc::Parser.for'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/gems/4.0.0/gems/rdoc-7.1.0/lib/rdoc/rdoc.rb:350:in 'RDoc::RDoc#parse_file'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/gems/4.0.0/gems/rdoc-7.1.0/lib/rdoc/rdoc.rb:406:in 'block in RDoc::RDoc#parse_files'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/gems/4.0.0/gems/rdoc-7.1.0/lib/rdoc/rdoc.rb:404:in 'Array#map'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/gems/4.0.0/gems/rdoc-7.1.0/lib/rdoc/rdoc.rb:404:in 'RDoc::RDoc#parse_files'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/gems/4.0.0/gems/rdoc-7.1.0/lib/rdoc/rubygems_hook.rb:199:in 'block in RDoc::RubyGemsHook#generate'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/gems/4.0.0/gems/rdoc-7.1.0/lib/rdoc/rubygems_hook.rb:191:in 'Dir.chdir'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/gems/4.0.0/gems/rdoc-7.1.0/lib/rdoc/rubygems_hook.rb:191:in 'RDoc::RubyGemsHook#generate'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/4.0.0/rubygems/commands/rdoc_command.rb:87:in 'block in Gem::Commands::RdocCommand#execute'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/4.0.0/rubygems/commands/rdoc_command.rb:77:in 'Array#each'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/4.0.0/rubygems/commands/rdoc_command.rb:77:in 'Gem::Commands::RdocCommand#execute'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/4.0.0/rubygems/command.rb:326:in 'Gem::Command#invoke_with_build_args'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/4.0.0/rubygems/command_manager.rb:252:in 'Gem::CommandManager#invoke_command'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/4.0.0/rubygems/command_manager.rb:193:in 'Gem::CommandManager#process_args'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/4.0.0/rubygems/command_manager.rb:151:in 'Gem::CommandManager#run'
/home/user/.asdf/installs/ruby/4.0.0/lib/ruby/4.0.0/rubygems/gem_runner.rb:56:in 'Gem::GemRunner#run'
/home/user/.asdf/installs/ruby/4.0.0/bin/gem:12:in '<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment