rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

Not helpful error message when doing a typo in labeled arguments

Open DZakh opened this issue 1 year ago • 4 comments

https://rescript-lang.org/try?version=v11.1.0&code=DYUwLgBA5uBcEAoBQEIHsAOYCWaB2APAOQBuAhsAK4gB8ANChAH4BmFwARmQMYDW8pCtQC8AfgaomAExAkAYuy58B5KiDEMAlBGE0IgtTsRkATlAAMdZm2CcevDcxnzF9sdt0QApCbIB3BAAiPEpbQM0kJAApAGcAOmA0KGRUGDAU1AhAmKkWQIBaGgBJPDA4lhM0AFsAZTATbDwoQoB5LFw8OKqyDAQAfR09QLJc8IlM6RAWBVslB2zR8ckbOz5hBbzxzS0kIA

The issue was caused by the type defFallback->devFallback. It took me around 20 minutes to figure out what was wrong. I think the error might be better in uncurried mode.

DZakh avatar Apr 29 '24 19:04 DZakh

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Apr 25 '25 02:04 github-actions[bot]

Looks like this issue was fixed in v12.0.0-alpha.10: https://rescript-lang.org/try?version=v12.0.0-alpha.10&module=esmodule&code=DYUwLgBA5uBcEAoBQEIHsAOYCWaB2APAOQBuAhsAK4gB8ANChAH4BmFwARmQMYDW8pCtQC8AfgaomAExAkAYuy58B5KiDEMAlBGE0IgtTsRkATlAAMdZm2CcevDcxnzF9sdt0QApCbIB3BAAiPEpbQM0kJAApAGcAOmA0KGRUGDAU1AhAmKkWQIBaGgBJPDA4lhM0AFsAZTATbDwoQoB5LFw8OKqyDAQAfR09QLJc8IlM6RAWBVslB2zR8ckbOz5hBbzxzS0kIA

mediremi avatar Apr 25 '25 19:04 mediremi

Yep. It's thanks to the uncurried mode 🔥

DZakh avatar Apr 25 '25 19:04 DZakh

We'll be working on improving these error messages further soon.

zth avatar Apr 26 '25 13:04 zth