Skip to content

bundle gem does not fully run #8859

@aemadrid

Description

@aemadrid

Environment Information

❯ \jruby -v
jruby 9.4.9.0 (3.1.4) 2024-11-04 547c6b150e OpenJDK 64-Bit Server VM 17.0.14+7 on 17.0.14+7 +jit [arm64-darwin]

❯ uname -a
Darwin cortazar.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:04 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6020 arm64

This is a brand new asdf ruby install ruby jruby-9.4.9.0.

Expected Behavior

  • I expected to run bundle gem test_gem to run without errors.

Actual Behavior

❯ bundle gem test_gem
Creating gem 'test_gem'...
RuboCop enabled in config
Initializing git repo in /Users/unknown/code/ac/ff/exp/jmeter/test_gem
      create  test_gem/Gemfile
      create  test_gem/lib/test_gem.rb
      create  test_gem/lib/test_gem/version.rb
      create  test_gem/sig/test_gem.rbs
      create  test_gem/test_gem.gemspec
      create  test_gem/Rakefile
      create  test_gem/README.md
      create  test_gem/bin/console
      create  test_gem/bin/setup
      create  test_gem/.gitignore
      create  test_gem/.rspec
      create  test_gem/spec/spec_helper.rb
      create  test_gem/spec/test_gem_spec.rb
      create  test_gem/.github/workflows/main.yml
      create  test_gem/.rubocop.yml
--- ERROR REPORT TEMPLATE -------------------------------------------------------
TypeError: no implicit conversion of Pathname into String
  org/jruby/RubyIO.java:4497:in `popen'
          /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/lib/ruby/gems/shared/gems/bundler-2.6.9/lib/bundler/cli/gem.rb:241:in `run'
          /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/lib/ruby/gems/shared/gems/bundler-2.6.9/lib/bundler/cli.rb:553:in `gem'
          /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/lib/ruby/gems/shared/gems/bundler-2.6.9/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
          /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/lib/ruby/gems/shared/gems/bundler-2.6.9/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
          /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/lib/ruby/gems/shared/gems/bundler-2.6.9/lib/bundler/vendor/thor/lib/thor.rb:538:in `dispatch'
          /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/lib/ruby/gems/shared/gems/bundler-2.6.9/lib/bundler/cli.rb:35:in `dispatch'
          /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/lib/ruby/gems/shared/gems/bundler-2.6.9/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
          /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/lib/ruby/gems/shared/gems/bundler-2.6.9/lib/bundler/cli.rb:29:in `start'
          /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/lib/ruby/gems/shared/gems/bundler-2.6.9/exe/bundle:28:in `block in <main>'
          /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/lib/ruby/gems/shared/gems/bundler-2.6.9/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
          /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/lib/ruby/gems/shared/gems/bundler-2.6.9/exe/bundle:20:in `<main>'
          org/jruby/RubyKernel.java:1223:in `load'
          /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/bin/bundle:25:in `<main>'

Environment

Bundler       2.6.9
  Platforms   ruby, universal-java-17
Ruby          3.1.4p0 (2024-11-04 revision 547c6b150eb2c15799349ba727d036cbb62a4069) [universal-java-17]
  Full Path   /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/bin/jruby
  Config Dir  /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/etc
RubyGems      3.3.26
  Gem Home    /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/lib/ruby/gems/shared
  Gem Path    /Users/unknown/.gem/jruby/3.1.0:/Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/lib/ruby/gems/shared
  User Home   /Users/unknown
  User Path   /Users/unknown/.gem/jruby/3.1.0
  Bin Dir     /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/bin
Tools
  Git         2.46.2
  RVM         not installed
  rbenv       not installed
  chruby      not installed
Gem.ruby      /Users/unknown/.asdf/installs/ruby/jruby-9.4.9.0/bin/jruby
bundle #!     /usr/bin/env jruby

Bundler Build Metadata

Built At          1980-01-02
Git SHA           8a2a14d63da
Released Version  true

Bundler settings

gem.changelog
  Set for the current user (/Users/unknown/.bundle/config): false
gem.ci
  Set for the current user (/Users/unknown/.bundle/config): "github"
gem.coc
  Set for the current user (/Users/unknown/.bundle/config): false
gem.linter
  Set for the current user (/Users/unknown/.bundle/config): "rubocop"
gem.mit
  Set for the current user (/Users/unknown/.bundle/config): false
gem.test
  Set for the current user (/Users/unknown/.bundle/config): "rspec"

--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error:
https://github.com/rubygems/rubygems/search?q=no+implicit+conversion+of+Pathname+into+String&type=Issues

If there aren't any reports for this error yet, please fill in the new issue form located at https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md. Make sure to copy and paste the full output of this command under the "What happened instead?" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions