Stream: beginners

Topic: mac os 13 compatibility


view this post on Zulip Michael Glass (Dec 01 2022 at 10:51):

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?⏎

view this post on Zulip Notification Bot (Dec 01 2022 at 10:52):

A message was moved here from #beginners > brand new install repl fails by Michael Glass.

view this post on Zulip Folkert de Vries (Dec 01 2022 at 11:08):

well that error message is weird. @Richard Feldman any idea why it thinks this url is a file path?

view this post on Zulip Folkert de Vries (Dec 01 2022 at 11:08):

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

view this post on Zulip Folkert de Vries (Dec 01 2022 at 11:09):

it is probably the case that building from source would work, but using the pre-compiled binaries does not

view this post on Zulip Jan Jelínek (Dec 01 2022 at 11:42):

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.%

view this post on Zulip Michael Glass (Dec 01 2022 at 11:55):

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

view this post on Zulip David Dunn (Dec 01 2022 at 14:04):

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

view this post on Zulip Erik (Dec 01 2022 at 17:15):

Another data point, im on 12.6.1 using the nightly apple silicon and things are working so far!

view this post on Zulip Michael Glass (Dec 01 2022 at 18:01):

I ... wrote OS 12 but I meant OS 13 !! (updated the topic)

view this post on Zulip Erik (Dec 01 2022 at 18:15):

ahh gotcha!

view this post on Zulip Srinivas Rao-Mouw (Dec 01 2022 at 18:23):

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

view this post on Zulip Michael Glass (Dec 01 2022 at 20:36):

@Srinivas Rao-Mouw intel or arm?

view this post on Zulip Srinivas Rao-Mouw (Dec 01 2022 at 20:39):

arm

view this post on Zulip Brendan Hansknecht (Dec 01 2022 at 20:59):

dbg is very new. Can you share how you used dbg? Like the snippet of code around it.

view this post on Zulip Srinivas Rao-Mouw (Dec 01 2022 at 21:17):

sure! I get the same error on a trivial example:

res = "string"
    |> dbg
    |> String.concat " another string"

main =
    Stdout.line "\(res)"

view this post on Zulip Brendan Hansknecht (Dec 01 2022 at 21:53):

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"

view this post on Zulip Michael Glass (Dec 04 2022 at 10:20):

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

view this post on Zulip Anton (Dec 04 2022 at 10:32):

Cool, thanks for sharing that @Michael Glass :)

view this post on Zulip Michael Glass (Dec 04 2022 at 10:32):

@Anton thank you for ... everything :p

view this post on Zulip Anton (Dec 04 2022 at 10:33):

Haha :heart:


Last updated: Jul 06 2025 at 12:14 UTC