elm/compiler

deadlock with malformed elm.json

bukzor opened this issue · 2 comments

bukzor commented

SSCCE

$ echo '{}' > elm.json
$ elm make
Dependencies ready!
-- MISSING FIELD ------------------------------------------------------ elm.json

I ran into a problem with your elm.json file. I ran into some trouble here:

^C^C
exit code: 130
duration: 39.235 seconds

This command never completes and has to be forced to quit.

  • Elm: 0.19.1
  • Browser: n/a
  • Operating System: MacOS: Darwin 23.4.0 arm64

Thanks for reporting this! To set expectations:

  • Issues are reviewed in batches, so it can take some time to get a response.
  • Ask questions in a community forum. You will get an answer quicker that way!
  • If you experience something similar, open a new issue. We like duplicates.

Finally, please be patient with the core team. They are trying their best with limited resources.

bukzor commented

I had the same issue (elm tries to error but never does) with these elm.json:

{
  "elm-version": "0.19.1",
  "source-directories": [
    "."
  ],
  "dependencies": [],
  "type": "application"
}
{
  "elm-version": "0.19.1",
  "source-directories": [
    "."
  ],
  "dependencies": null,
  "type": "application"
}
{
  "elm-version": "0.19.1",
  "source-directories": [
    "."
  ],
  "dependencies": {},
  "type": "application"
}
{
  "elm-version": "0.19.1",
  "source-directories": [
    "."
  ],
  "dependencies": {
    "direct": false
  },
  "type": "application"
}
{
  "elm-version": "0.19.1",
  "source-directories": [
    "."
  ],
  "dependencies": {
    "direct": {},
    "indirect": {}
  },
  "test-dependencies": {},
  "type": "application"
}
{
  "elm-version": "0.19.1",
  "source-directories": [
    "."
  ],
  "dependencies": {
    "direct": {
      "elm/core": true
    },
    "indirect": {}
  },
  "test-dependencies": {
    "direct": {},
    "indirect": {}
  },
  "type": "application"
}