pry/pry · error
`#{self.class}[:#{@name}][:value]` is deprecated. Use `#{sel
Error message
`#{self.class}[:#{@name}][:value]` is deprecated. Use `#{self.class}#prompt_procs` instead or an instance of `#{self.class}` directly What it means
Error "`#{self.class}[:#{@name}][:value]` is deprecated. Use `#{self.class}#prompt_procs` instead or an instance of `#{self.class}` directly" thrown in pry/pry.
Source
Thrown at lib/pry/prompt.rb:144
end
# @return [Proc] the proc which builds the prompt when in the middle of an
# expression such as open method, etc. (`*`)
def incomplete_proc
@prompt_procs.last
end
# @deprecated Use a `Pry::Prompt` instance directly
def [](key)
key = key.to_s
if %w[name description].include?(key)
Pry::Warning.warn(
"`Pry::Prompt[:#{@name}][:#{key}]` is deprecated. " \
"Use `#{self.class}##{key}` instead"
)
public_send(key)
elsif key.to_s == 'value'
Pry::Warning.warn(
"`#{self.class}[:#{@name}][:value]` is deprecated. Use " \
"`#{self.class}#prompt_procs` instead or an instance of " \
"`#{self.class}` directly"
)
@prompt_procs
end
end
add(
:default,
"The default Pry prompt. Includes information about the current expression \n" \
"number, evaluation context, and nesting level, plus a reminder that you're \n" \
'using Pry.'
) do |context, nesting, pry_instance, sep|
format(
"[%<in_count>s] %<name>s(%<context>s)%<nesting>s%<separator>s ",
in_count: pry_instance.input_ring.count,
name: pry_instance.config.prompt_name,View on GitHub (pinned to 1356402628)
When it happens
Trigger: Thrown at lib/pry/prompt.rb:144 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of pry/pry@1356402628 (2026-08-21).
Data as JSON: /api/errors/8a8a54a85ca8702f.
Report an issue: GitHub.