compiler icon indicating copy to clipboard operation
compiler copied to clipboard

deadlock with malformed elm.json

Open bukzor opened this issue 1 year ago • 2 comments

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

bukzor avatar Aug 23 '24 19:08 bukzor

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.

github-actions[bot] avatar Aug 23 '24 19:08 github-actions[bot]

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

bukzor avatar Aug 23 '24 19:08 bukzor