Stream: beginners

Topic: ✔ Issue compiling code when separating arguments with comma


view this post on Zulip Ryan Bates (Dec 09 2023 at 15:28):

Sometimes I'll accidentally throw a comma in between arguments.

result = List.dropFirst [1, 2, 3], 1

Calling roc dev on this results in We ran into an issue while compiling your code. error which can make it very difficult to find that extra comma.

Is it possible to get a pretty error message for this from the compiler? I can write up an issue on GitHub if it's possible.

view this post on Zulip Richard Feldman (Dec 09 2023 at 15:36):

please do! We should definitely handle that more gracefully

view this post on Zulip Ryan Bates (Dec 09 2023 at 15:38):

Thanks, posted here: https://github.com/roc-lang/roc/issues/6233

view this post on Zulip Notification Bot (Dec 09 2023 at 15:38):

Ryan Bates has marked this topic as resolved.


Last updated: Jul 06 2025 at 12:14 UTC