d12frosted/homebrew-emacs-plus · error · ConfigurationError
Invalid 'inject_path' in #{path} Expected: true or false Got
Error message
Invalid 'inject_path' in #{path}
Expected: true or false
Got: #{value.inspect} (#{value.class}) What it means
Error "Invalid 'inject_path' in #{path} Expected: true or false Got: #{value.inspect} (#{value.class})" thrown in d12frosted/homebrew-emacs-plus.
Source
Thrown at Library/BuildConfig.rb:264
"Got: #{icon.inspect} (#{icon.class})"
end
end
# Validate that all keys of a version map are major versions or "default"
def validate_version_map_keys!(map, key, path)
bad = map.keys.reject { |k| k.to_s == "default" || k.to_s.match?(VERSION_KEY) }
return if bad.empty?
raise ConfigurationError,
"Invalid '#{key}' version map in #{path}\n" \
"Version keys must be major Emacs versions (e.g. \"30\") or 'default'.\n" \
"Got key(s): #{bad.map(&:inspect).join(', ')}"
end
def validate_inject_path!(value, path)
return if [true, false].include?(value)
raise ConfigurationError,
"Invalid 'inject_path' in #{path}\n" \
"Expected: true or false\n" \
"Got: #{value.inspect} (#{value.class})"
end
def validate_patches!(patches, path)
unless patches.is_a?(Array)
raise ConfigurationError,
"Invalid 'patches' in #{path}\n" \
"Expected: array of patch names\n" \
"Got: #{patches.inspect} (#{patches.class})\n\n" \
"Example:\n" \
" patches:\n" \
" - frame-transparency\n" \
" - aggressive-read-buffering"
end
patches.each do |entry|View on GitHub (pinned to 01c47fe98f)
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.
When it happens
Trigger: Thrown at Library/BuildConfig.rb:264 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of d12frosted/homebrew-emacs-plus@01c47fe98f (2026-08-23).
Data as JSON: /api/errors/0496041b0159706d.
Report an issue: GitHub.