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!

view this post on Zulip Austin Clements (Jul 23 2026 at 19:30):

One comment on the new bitwise shift name shl_wrap my initial assumption was that this is for the shifted-out bits to wrap around the front (aka rotate I guess). I see that the docs clarify it and I can’t say I have a better name in mind, but is there a reason for the modulo behavior on the shift amount rather than just clamping the max shift to the full integer width?

view this post on Zulip Anton (Jul 24 2026 at 13:37):

Niclas Ahden said:

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

That PR is merged now and a fresh nightly is out.


Last updated: Aug 12 2026 at 12:35 UTC