elm / compiler

Compiler for Elm, a functional language for reliable webapps.
https://elm-lang.org/
BSD 3-Clause "New" or "Revised" License
7.51k stars 661 forks source link

deadlock with malformed elm.json #2334

Open bukzor opened 3 weeks ago

bukzor commented 3 weeks ago

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.

github-actions[bot] commented 3 weeks ago

Thanks for reporting this! To set expectations:

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

bukzor commented 3 weeks ago

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"
}