ruby/rubygems · error · RuntimeError

Cannot ask yes? with a silent shell

Error message

Cannot ask yes? with a silent shell

What it means

Error "Cannot ask yes? with a silent shell" thrown in ruby/rubygems.

Source

Thrown at lib/bundler/ui/silent.rb:67

        false
      end

      def warn?
        false
      end

      def output_stream=(_symbol)
      end

      def output_stream
        nil
      end

      def ask(message)
      end

      def yes?(msg)
        raise "Cannot ask yes? with a silent shell"
      end

      def no?(msg)
        raise "Cannot ask no? with a silent shell"
      end

      def level=(name)
      end

      def level(name = nil)
      end

      def trace(message, newline = nil, force = false)
      end

      def silence
        yield
      end

View on GitHub (pinned to 86cbb817a3)

Solutions

  1. Do not prompt when using a silent shell; pass explicit answers/flags instead of relying on yes?

When it happens

Trigger: Thrown at lib/bundler/ui/silent.rb:67 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ruby/rubygems@86cbb817a3 (2026-08-23). Data as JSON: /api/errors/21b113603bb7f6f9. Report an issue: GitHub.