Stream: beginners

Topic: error: Failed to extract platform spec from app file: error.


view this post on Zulip Aryeh Hillman (Sep 28 2025 at 20:05):

After running zig build roc and runing ./zig-out/bin/roc, I get the following error:

error: Failed to extract platform spec from app file: error.FileNotFound

view this post on Zulip Aryeh Hillman (Sep 28 2025 at 20:05):

[aryehh@nixos:~/Development/roc]$ uname -a
Linux nixos 6.6.40 #1-NixOS SMP PREEMPT_DYNAMIC Mon Jul 15 07:24:53 UTC 2024 x86_64 GNU/Linux

view this post on Zulip Luke Boswell (Sep 28 2025 at 20:32):

Did you give the roc program a path to an app .roc file?

view this post on Zulip Brendan Hansknecht (Sep 28 2025 at 22:24):

Haha, we should make a better error here. The default is that running roc with no args executes an app.roc program in the current folder.

If it is not found, we should make that clear and probably print out the full roc --help message.

view this post on Zulip Luke Boswell (Sep 28 2025 at 22:53):

The roc "run" implementation is very much an early WIP rn.

We hacked something quick together to get something really simple working with the interpreter wired in.

view this post on Zulip Anton (Sep 29 2025 at 10:07):

Fixed in PR#8251


Last updated: Oct 18 2025 at 12:13 UTC