Crashes on opening Elm file in a library ("missing field 'source-directories'")
Janiczek opened this issue · comments
elm-pair 0.4.0
Throws this into logs:
[error] Failed to load elm_json: [src/elm/io/parse_elm_json.rs:15] error while parsing elm.json: Error("missing field `source-directories`", line: 23, column: 1)
for elm.json
file:
{
"type": "package",
"name": "Janiczek/elm-grammar",
"summary": "Context free grammar parsers",
"license": "BSD-3-Clause",
"version": "1.0.0",
"exposed-modules": [
"Grammar",
"Grammar.Strategy"
],
"elm-version": "0.19.0 <= v < 0.20.0",
"dependencies": {
"dmy/elm-pratt-parser": "2.0.0 <= v < 3.0.0",
"elm/core": "1.0.2 <= v < 2.0.0",
"elm/parser": "1.1.0 <= v < 2.0.0",
"elm/regex": "1.0.0 <= v < 2.0.0",
"elm-community/graph": "6.0.0 <= v < 7.0.0",
"elm-community/list-extra": "8.5.1 <= v < 9.0.0"
},
"test-dependencies": {
"elm-explorations/test": "1.2.2 <= v < 2.0.0"
}
}
Seems like only application elm.json
files are supported currently.
Thank you for the bug report! This is fixed in Release 5!