Stream: beginners

Topic: error message count off


view this post on Zulip Nick Hallstrom (Feb 14 2023 at 20:19):

I just got this confusing error message:

── TOO FEW ARGS ─────────────────────────────────────── examples/calibrate.roc ─

The test function expects 1 argument, but it got only 1:

36│      _ <- test
              ^^^^

Roc does not allow functions to be partially applied. Use a closure to
make partial application explicit.

Seems like a bug. test is just test : Task {} []

view this post on Zulip Richard Feldman (Feb 14 2023 at 23:16):

yep, that's not a helpful error message! (I'm guessing what you want here is _ <- test |> Task.await to make it compile)

view this post on Zulip Richard Feldman (Feb 14 2023 at 23:16):

would you mind opening an issue for the unhelpful error message?

view this post on Zulip Nick Hallstrom (Feb 14 2023 at 23:52):

https://github.com/roc-lang/roc/issues/5032


Last updated: Jul 06 2025 at 12:14 UTC