{"record":{"id":"bed03af2667cf71e","repo":"pry/pry","slug":"pry-is-deprecated-use-pry-instance-instead","errorCode":null,"errorMessage":"_pry_ is deprecated, use pry_instance instead","messagePattern":"_pry_ is deprecated, use pry_instance instead","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/pry/command.rb","lineNumber":293,"sourceCode":"    #   run \".ls\"\n    # @example\n    #   run \"amend-line\",  \"5\", 'puts \"hello world\"'\n    def run(command_string, *args)\n      command_string = pry_instance.config.command_prefix.to_s + command_string\n      complete_string = \"#{command_string} #{args.join(' ')}\".rstrip\n      command_set.process_line(complete_string, context)\n    end\n\n    def commands\n      command_set.to_hash\n    end\n\n    def void\n      VOID_VALUE\n    end\n\n    def _pry_\n      Pry::Warning.warn('_pry_ is deprecated, use pry_instance instead')\n      pry_instance\n    end\n\n    # @return [Object] The value of `self` inside the `target` binding.\n    def target_self\n      target.eval('self')\n    end\n\n    # @return [Hash] Pry commands can store arbitrary state\n    #   here. This state persists between subsequent command invocations.\n    #   All state saved here is unique to the command, it does not\n    #   need to be namespaced.\n    # @example\n    #   state.my_state = \"my state\"  # this will not conflict with any\n    #                                # `state.my_state` used in another command.\n    def state\n      self.class.state\n    end","sourceCodeStart":275,"sourceCodeEnd":311,"githubUrl":"https://github.com/pry/pry/blob/135640262879544c6bfecbf3e78511289bfe956c/lib/pry/command.rb#L275-L311","documentation":"Error \"_pry_ is deprecated, use pry_instance instead\" thrown in pry/pry.","triggerScenarios":"Thrown at lib/pry/command.rb:293 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"135640262879544c6bfecbf3e78511289bfe956c","analyzedAt":"2026-08-21T19:07:03.985Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}