Stream: beginners

Topic: Basic-cli on new compiler


view this post on Zulip Kilian Vounckx (Jul 22 2026 at 19:08):

I'm not sure if this is already answered somewhere, but I'm trying to use basic-cli with the new zig compiler. I'm using the latest main branch for both roc and basic-cli. I get this error in basic-cli however:

┌────────────────┐
│ DOES NOT EXIST ├─ U32.shift_left_by does not exist. ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
└┬───────────────┘                                                                                                                                                        │
 │                                                                                                                                                                        │
 │  top = U32.shift_left_by(U8.to_u32(U8.bitwise_and(byte1, 0x1F)), 6)                                                                                                    │
 │        ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾                                                                                                                                               │
 └────────────────────────────────────────────────────────────────────── /Users/kilian/Documents/Personal/projects/roc/habba/vendored/basic-cli/platform/OsStr.roc:132:10 ┘

    U32 is in scope, but it has no associated shift_left_by.

(And a bunch of other very similar ones)

view this post on Zulip Kilian Vounckx (Jul 22 2026 at 19:08):

Is this a known issue? Should I just be waiting for a while, while basic-cli gets updated properly for the new compiler?

view this post on Zulip Niclas Ahden (Jul 22 2026 at 19:31):

Yes, I've PR:d a fix and it'll probably work with tomorrow's nightly :octopus:

If you're an addict like me, here's a temporary fix: https://github.com/niclas-ahden/basic-cli/releases/tag/0.22.1

view this post on Zulip Kilian Vounckx (Jul 22 2026 at 19:33):

Cool! Trying it now

view this post on Zulip Richard Feldman (Jul 22 2026 at 21:19):

sorry, I just did a pass updating some Num builtins and this was affected!


Last updated: Jul 23 2026 at 13:15 UTC