{"record":{"id":"86dcee3c42e66617","repo":"ruby/rubygems","slug":"deprecated-message","errorCode":null,"errorMessage":"[DEPRECATED] #{message}","messagePattern":"\\[DEPRECATED\\] #(.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/bundler/shared_helpers.rb","lineNumber":133,"sourceCode":"      raise VirtualProtocolError.new\n    rescue Errno::ENOSPC\n      raise NoSpaceOnDeviceError.new(path, action)\n    rescue Errno::ENOTSUP\n      raise OperationNotSupportedError.new(path, action)\n    rescue Errno::EPERM\n      raise OperationNotPermittedError.new(path, action)\n    rescue Errno::EROFS\n      raise ReadOnlyFileSystemError.new(path, action)\n    rescue Errno::EEXIST, Errno::ENOENT\n      raise\n    rescue SystemCallError => e\n      raise GenericSystemCallError.new(e, \"There was an error #{[:create, :write].include?(action) ? \"creating\" : \"accessing\"} `#{path}`.\")\n    end\n\n    def feature_deprecated!(message)\n      return unless prints_major_deprecations?\n\n      Bundler.ui.warn(\"[DEPRECATED] #{message}\")\n    end\n\n    def feature_removed!(message)\n      require_relative \"errors\"\n      raise RemovedError, \"[REMOVED] #{message}\"\n    end\n\n    def print_major_deprecations!\n      multiple_gemfiles = search_up(\".\") do |dir|\n        gemfiles = gemfile_names.select {|gf| File.file? File.expand_path(gf, dir) }\n        next if gemfiles.empty?\n        break gemfiles.size != 1\n      end\n      return unless multiple_gemfiles\n      message = \"Multiple gemfiles (gems.rb and Gemfile) detected. \" \\\n                \"Make sure you remove Gemfile and Gemfile.lock since bundler is ignoring them in favor of gems.rb and gems.locked.\"\n      Bundler.ui.warn message\n    end","sourceCodeStart":115,"sourceCodeEnd":151,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/shared_helpers.rb#L115-L151","documentation":"Error \"[DEPRECATED] #{message}\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/shared_helpers.rb:133 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Stop using the deprecated feature named in the message and migrate to its documented replacement"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"86cbb817a38ce8477b181c17467a703ded3f2be8","analyzedAt":"2026-08-23T06:27:48.159Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}