Skip to content

sourcekitten_sourcefiles in yaml causes a crash #1137

Closed
@adam-fowler

Description

@adam-fowler

If you have

sourcekitten_sourcefile: my.json

At the top of your .jazzy.yaml jazzy will crash with the following

Using config file /Users/adamfowler/Documents/dev/macOS/lib/swift-aws/aws-sdk-swift/.jazzy.yaml
Traceback (most recent call last):
	10: from /usr/local/bin/jazzy:23:in `<main>'
	 9: from /usr/local/bin/jazzy:23:in `load'
	 8: from /Library/Ruby/Gems/2.6.0/gems/jazzy-0.12.0/bin/jazzy:15:in `<top (required)>'
	 7: from /Library/Ruby/Gems/2.6.0/gems/jazzy-0.12.0/lib/jazzy/config.rb:426:in `parse!'
	 6: from /Library/Ruby/Gems/2.6.0/gems/jazzy-0.12.0/lib/jazzy/config.rb:484:in `parse_config_file'
	 5: from /Library/Ruby/Gems/2.6.0/gems/jazzy-0.12.0/lib/jazzy/config.rb:484:in `each'
	 4: from /Library/Ruby/Gems/2.6.0/gems/jazzy-0.12.0/lib/jazzy/config.rb:496:in `block in parse_config_file'
	 3: from /Library/Ruby/Gems/2.6.0/gems/jazzy-0.12.0/lib/jazzy/config.rb:44:in `set_if_unconfigured'
	 2: from /Library/Ruby/Gems/2.6.0/gems/jazzy-0.12.0/lib/jazzy/config.rb:35:in `set'
	 1: from /Library/Ruby/Gems/2.6.0/gems/jazzy-0.12.0/lib/jazzy/config.rb:35:in `instance_exec'
/Library/Ruby/Gems/2.6.0/gems/jazzy-0.12.0/lib/jazzy/config.rb:179:in `block in <class:Config>': undefined method `map' for "ACM.json":String (NoMethodError)

I'm assuming this is related to 30957db#diff-598546a0c342527401dade0e669b6772

This used to work

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions