{"record":{"id":"928865ebc62c6adb","repo":"standardrb/standard","slug":"plugin-plugin-about-name-plugin-inspect-f","errorCode":null,"errorMessage":"Plugin `#{plugin.about&.name || plugin.inspect}' failed to load with error: #{rules.value.respond_to?(:message) ? rules.value.message : rules.value}","messagePattern":"Plugin `#(.+?)' failed to load with error: #(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/standard/plugin/merges_plugins_into_rubocop_config.rb","lineNumber":65,"sourceCode":"              all_cop_keys_configured_by_plugins\n            )\n            delete_already_configured_keys!(combined_config.keys, next_config, dont_delete_keys: [\"AllCops\"])\n\n            RuboCop::ConfigLoader.merge_with_default(next_config, path, unset_nil: false)\n          end\n        end\n      end\n\n      def config_for_plugin(plugin, runner_context)\n        rules = plugin.rules(runner_context)\n\n        if rules.type == :path\n          [RuboCop::ConfigLoader.load_file(rules.value), rules.value]\n        elsif rules.type == :object\n          path = plugin.method(:rules).source_location[0]\n          [RuboCop::Config.create(rules.value, path, check: true), path]\n        elsif rules.type == :error\n          raise \"Plugin `#{plugin.about&.name || plugin.inspect}' failed to load with error: #{rules.value.respond_to?(:message) ? rules.value.message : rules.value}\"\n        end\n      end\n\n      # This is how we ensure \"first-in wins\": plugins can override AllCops settings that are\n      # set by RuboCop's default configuration, but once a plugin sets an AllCop setting, they\n      # have exclusive first-in-wins rights to that setting.\n      #\n      # The one exception to this are array fields, because we don't want to\n      # overwrite the AllCops defaults but rather munge the arrays (`existing |\n      # new`) to allow plugins to add to the array, for example Include and\n      # Exclude paths and patterns.\n      def merge_all_cop_settings(existing_all_cops, new_all_cops, already_configured_keys)\n        return [existing_all_cops, already_configured_keys] unless new_all_cops.is_a?(Hash)\n\n        combined_all_cops = existing_all_cops.dup\n        combined_configured_keys = already_configured_keys.dup\n\n        new_all_cops.each do |key, value|","sourceCodeStart":47,"sourceCodeEnd":83,"githubUrl":"https://github.com/standardrb/standard/blob/c93189e2b31bb84cf5b365ccc244196f487f226f/lib/standard/plugin/merges_plugins_into_rubocop_config.rb#L47-L83","documentation":"Error \"Plugin `#{plugin.about&.name || plugin.inspect}' failed to load with error: #{rules.value.respond_to?(:message) ? rules.value.message : rules.value}\" thrown in standardrb/standard.","triggerScenarios":"Thrown at lib/standard/plugin/merges_plugins_into_rubocop_config.rb:65 when the library encounters an invalid state.","commonSituations":"Defense: raised when a lint_roller plugin's `rules` call returns an :error result, meaning the plugin itself failed while producing its rule set. Update the plugin gem to a version compatible with your rubocop and lint_roller versions, then reproduce with `standardrb` outside the editor to see the plugin's underlying error message; if the plugin constructs rules conditionally, check that the files or config it depends on exist in your project.","solutions":["Read the underlying error message appended after 'failed to load with error:' and fix the plugin's rules handling; it usually re-raises the plugin's own exception.","Upgrade or pin the plugin to a version compatible with the installed StandardRB and RuboCop versions.","Run StandardRB with only that one plugin enabled to isolate the failure, then fix or report the error in the plugin's repository.","Ensure the plugin's rules method returns a valid LintRoller::Rules object (path or object type) instead of raising."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c93189e2b31bb84cf5b365ccc244196f487f226f","analyzedAt":"2026-08-23T15:18:21.970Z","schemaVersion":2},"datasetVersion":"2026-08-23T16:17:53.355Z"}