Skip to content

Report a clear error when lamdera/codecs is missing from elm.json#90

Open
MavenRain wants to merge 2 commits intolamdera:lamdera-nextfrom
MavenRain:fix/map-bang-missing-codecs
Open

Report a clear error when lamdera/codecs is missing from elm.json#90
MavenRain wants to merge 2 commits intolamdera:lamdera-nextfrom
MavenRain:fix/map-bang-missing-codecs

Conversation

@MavenRain
Copy link
Copy Markdown

The early dependency check only verified lamdera/core was present, so projects missing lamdera/codecs (e.g. elm-pages) hit an opaque Map.! crash during JS codegen. Now Checks.hs also validates that lamdera/codecs is reachable, and the graph lookup in JavaScript.hs uses Map.findWithDefault to produce a descriptive message naming the
exact missing global. Fixes #59.

  The early dependency check only verified lamdera/core was present,
  so projects missing lamdera/codecs (e.g. elm-pages) hit an opaque
  Map.! crash during JS codegen.  Now Checks.hs also validates that
  lamdera/codecs is reachable, and the graph lookup in JavaScript.hs
  uses Map.findWithDefault to produce a descriptive message naming the
  exact missing global.  Fixes lamdera#59.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Map.! error when elm.json doesn't contain lamdera/codecs

2 participants