Do nightlies not work on Mac OS 13 (I saw that OS 13 wasn't yet supported but was hopeful that meant just for building roc, not for running it)? Repl works fine but roc dev
against the example hello world app gives me this error:
── FILE NOT FOUND ──────────────────────────────────────────────── UNKNOWN.roc ─
I am looking for this file, but it's not there:
https://github.com/roc-lang/basic-cli/releases/download/0.1.1/zAoiC9xtQPHywYk350_b7ust04BmWLW00sjb9ZPtSQk.tar.br
Is the file supposed to be there? Maybe there is a typo in the file
name?⏎
A message was moved here from #beginners > brand new install repl fails by Michael Glass.
well that error message is weird. @Richard Feldman any idea why it thinks this url is a file path?
my guess it that it tries to find the roc platform for your OS, but it gets confused because it does not match any of the pre-built ones
it is probably the case that building from source would work, but using the pre-compiled binaries does not
I have same issue. I tried download that file and change path to place on my hdd but go another error, so it looks like it expects url or so.
I wanted to try Advent of Code in Roc this year, but looks like another time :shrug:
roc dev
── MISSING HEADER ─ .../aoc/zAoiC9xtQPHywYk350_b7ust04BmWLW00sjb9ZPtSQk.tar.br ─
I am expecting a header, but got stuck here:
1│ ���//��7�&�
^
I am expecting a module keyword next, one of interface, app or
platform.%
Folkert de Vries said:
my guess it that it tries to find the roc platform for your OS, but it gets confused because it does not match any of the pre-built ones
yeah makes sense. Right now roc can't be built on mac os 12 though. FWIW Mac os binaries should work cross-platform. E.g. a single build from Mac OS 10.15 on intel and Mac OS 11 for arm should be forward-compatible
That's weird, on MacOS 13 the helloWorld example and the rocLoves* examples for C, Rust and Swift work for me, but Zig & wasm don't (there's a known issue with Zig 0.9.1 and MacOS 13). My roc version
is roc nightly pre-release, built from commit 1e47de3 on Wed Nov 30 09:24:53 UTC 2022
Another data point, im on 12.6.1 using the nightly apple silicon and things are working so far!
I ... wrote OS 12 but I meant OS 13 !! (updated the topic)
ahh gotcha!
it's working out of the box for me on OS 13 FWIW. the repl works fine, and I'm able to create a main.roc and use run/dev/test.
I think dbg is broken for me? Or I messed up something in the setup, I get this error when I try.
thread '<unnamed>' panicked at 'not yet implemented: Start(@21147) State {
bytes: [utf8] "dbg\n\nmain =\n Stdout.line\n \"\"\"\n Elf with most calories has \\(part1)\n Top three elves with most calories have \\(part2)\n \"\"\""
(offset): @21147,
}', crates/compiler/parse/src/expr.rs:1598:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Any { .. }', crates/compiler/load_internal/src/file.rs:1997:6
@Srinivas Rao-Mouw intel or arm?
arm
dbg is very new. Can you share how you used dbg? Like the snippet of code around it.
sure! I get the same error on a trivial example:
res = "string"
|> dbg
|> String.concat " another string"
main =
Stdout.line "\(res)"
Ah, dbg is currently more limited with than that. Think of it as a print statement that doesn't return anything.
You should be able to do something like:
main =
dbg "Testing"
Stdout.line "Main print"
fwiw I worked around the limitation by using docker. If anyone wants to pull my docker file it's here: https://github.com/michaelglass/advent-roc
Cool, thanks for sharing that @Michael Glass :)
@Anton thank you for ... everything :p
Haha :heart:
Last updated: Jul 06 2025 at 12:14 UTC