Hi again, I see some issues and conversations about dbg
, but I'm just trying a simple roc dev
or roc dev main.roc
with the following, and get no output:
app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br" }
main =
dbg "hello"
Task.ok {}
If dbg is currently not working, what's a good way to do print debugging? From my extremely novice understanding, it seems functions would have to be converted to Tasks to enable Stdout, right?
Hmmm... I think I may have broken this with a pr the other day
If you can go back to this commit or earlier, it should work: 50ec8ef1d1aa9abb2fda6948fb13abb431940ddf
https://github.com/roc-lang/roc/commit/50ec8ef1d1aa9abb2fda6948fb13abb431940ddf
Nice, I'm using Nix (also novice-level) so in theory this should be straightforward, right? I'll give it a go
Excellent, dbg
works again, thank you! For reference, I changed this line in my flake.nix
:
roc.url = "github:roc-lang/roc?ref=50ec8ef1d1aa9abb2fda6948fb13abb431940ddf";
Mo has marked this topic as resolved.
I'll have a proper fix up soon
Trying to do a larger cleanup of some of our handling here.
Properly fixed on main starting at https://github.com/roc-lang/roc/commit/146710a129ec4f5403522dba2b334a19521d885d
That was fast! Latest commit works for me :)
Roc: the Fast, Friendly, Functional language ... and dev team :joy:
Last updated: Jul 06 2025 at 12:14 UTC