{"record":{"id":"0496041b0159706d","repo":"d12frosted/homebrew-emacs-plus","slug":"invalid-inject-path-in-path-expected-true-or","errorCode":null,"errorMessage":"Invalid 'inject_path' in #{path}\nExpected: true or false\nGot: #{value.inspect} (#{value.class})","messagePattern":"Invalid 'inject_path' in #(.+?)\nExpected: true or false\nGot: #(.+?) \\(#(.+?)\\)","errorType":"validation","errorClass":"ConfigurationError","httpStatus":null,"severity":"error","filePath":"Library/BuildConfig.rb","lineNumber":264,"sourceCode":"          \"Got: #{icon.inspect} (#{icon.class})\"\n      end\n    end\n\n    # Validate that all keys of a version map are major versions or \"default\"\n    def validate_version_map_keys!(map, key, path)\n      bad = map.keys.reject { |k| k.to_s == \"default\" || k.to_s.match?(VERSION_KEY) }\n      return if bad.empty?\n\n      raise ConfigurationError,\n        \"Invalid '#{key}' version map in #{path}\\n\" \\\n        \"Version keys must be major Emacs versions (e.g. \\\"30\\\") or 'default'.\\n\" \\\n        \"Got key(s): #{bad.map(&:inspect).join(', ')}\"\n    end\n\n    def validate_inject_path!(value, path)\n      return if [true, false].include?(value)\n\n      raise ConfigurationError,\n        \"Invalid 'inject_path' in #{path}\\n\" \\\n        \"Expected: true or false\\n\" \\\n        \"Got: #{value.inspect} (#{value.class})\"\n    end\n\n    def validate_patches!(patches, path)\n      unless patches.is_a?(Array)\n        raise ConfigurationError,\n          \"Invalid 'patches' in #{path}\\n\" \\\n          \"Expected: array of patch names\\n\" \\\n          \"Got: #{patches.inspect} (#{patches.class})\\n\\n\" \\\n          \"Example:\\n\" \\\n          \"  patches:\\n\" \\\n          \"    - frame-transparency\\n\" \\\n          \"    - aggressive-read-buffering\"\n      end\n\n      patches.each do |entry|","sourceCodeStart":246,"sourceCodeEnd":282,"githubUrl":"https://github.com/d12frosted/homebrew-emacs-plus/blob/01c47fe98f35ff28a37a89e1f7aafadff621f9e0/Library/BuildConfig.rb#L246-L282","documentation":"Error \"Invalid 'inject_path' in #{path}\nExpected: true or false\nGot: #{value.inspect} (#{value.class})\" thrown in d12frosted/homebrew-emacs-plus.","triggerScenarios":"Thrown at Library/BuildConfig.rb:264 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set 'inject_path' to the boolean true or false in the build config file.","In YAML write 'inject_path: true' unquoted; a quoted string like \"true\" is not a boolean.","Remove the 'inject_path' key entirely to use the default value."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01c47fe98f35ff28a37a89e1f7aafadff621f9e0","analyzedAt":"2026-08-23T16:25:45.065Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}