🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
00:00 reportable6 left 00:02 reportable6 joined 00:15 tejr left 00:20 tejr joined 01:08 hulk joined 01:09 kylese left 01:11 dustinm` left 01:24 haxxelotto_ left, dustinm` joined 01:25 haxxelotto_ joined 01:49 haxxelotto_ left 01:57 eseyman left 02:15 hulk left, kylese joined 05:03 guifa left 05:13 guifa joined 05:21 rir_ left 05:23 rir joined 05:30 Sgeo left 05:55 manu_ joined 05:58 manu_ is now known as eseyman 06:00 reportable6 left, reportable6 joined 06:08 sena_kun joined 06:14 sena_kun left 06:45 abraxxa joined 06:54 hudo_ joined 06:55 hudo_ left 06:57 hudo left, hudo joined 06:58 hudo left 07:35 Ekho left 07:37 rir_ joined 07:38 rir left 07:43 Ekho joined 08:05 jpn joined 08:23 haxxelotto_ joined 09:37 abraxxa left 09:59 linkable6_ left 10:02 linkable6_ joined 10:08 linkable6_ left 10:09 linkable6_ joined 10:25 MasterDuke left 10:41 Maylay joined 11:52 jpn left 12:00 reportable6 left 12:01 reportable6 joined 12:54 jpn joined 14:29 Sgeo joined 14:38 jpn left 14:41 jpn joined 16:21 jpn left 17:15 haxxelotto_ left 17:44 thaewrap1 joined 17:46 thaewrapt left 17:53 jpn joined 17:58 jpn left 18:00 reportable6 left 18:02 reportable6 joined 18:05 sour joined 18:19 gfldex left
sour hey, is it generally a known thing that running rakudo on windows has some hiccups? 18:23
[Coke] I am aware of issues with long paths, but that's it 18:24
sour this one liner of "shell 'dir';" causes some errors and doesn't print the result of the command (run 'dir' works ok) 18:25
i'll fiddle a bit more with it 18:26
[Coke] you need to run that as 'cmd dir' or somesuch. 18:31
I don't have a windows box in front of me at the moment, apologies. 18:33
sour no worries, you mean something like: shell "cmd dir"; ? I'm following the samples at raku.guide
18:33 xinming left 18:39 xinming joined 18:51 gfldex joined
[Coke] firing up a copy of windows in azure. 19:12
19:18 jpn joined 19:23 jpn left
[Coke] I was wrong, this works: 19:28
raku -e "say shell('dir')"
so: what version of windows, raku, which shell are you using, what's your script, etc. 19:29
what errors are you seeing...
raku -e "shell 'dir'" # even better 19:32
sour it's a longer error trace i assume, the first thing being 'Use of uninitialized value @!args of type Any in string context. 19:35
Methods .^name, .raku, .gist, or .say can be used to stringify it to something meaningful.
  in sub warn at 'SETTING::'src/core.c/control.rakumod line 267'
[Coke] what code are you running?
sour my $*DISTRO is mswin32 (10.0.17763.529), windows 10
[Coke] does the one liner I showed work from the command/powershell prompt? 19:36
sour your one liner
no, same thing there
[Coke] what does raku --version say?
sour v2024.04
[Coke] OOC, what dir are you in? 19:37
sour some subdir on my users' desktop, I got it opened in VSCode 19:38
hmmm, lemme check 1 thing
[Coke] maybe try a different dir, just in case?
sour yeah, just tried, same error seems like 19:39
[Coke] what shell are you using? 19:40
'command prompt', 'powershell', are you already in raku's REPL?
sour same error happens with echo
this is from git bash
I tried it with command prompt, that seems to not yield an error..
[Coke] does 'dir' work in git bash?
without raku in the mix? 19:41
sour yeah it does
[Coke] ok. it might be going out of it's way to make that work.
sour yeah it has to be tied somehow with me running the one liner from git bash
[Coke] er, its
does ls instead of dir work with git bash and raku? 19:42
sour no, same error. echo also errors out 19:43
[Coke] echo ight have been a shell builtin but ls should work. weird. pretty sure that works on my work laptop. will check when I can.
sour thx for the help. the full trace i put here: pastebin.com/9zvnB3xk 19:44
[Coke] the key error there is line 8 19:46
it failed, there was no outut, and then shell tried to print that nothing.
20:19 jpn joined 20:24 jpn left 20:56 sour left
ugexe that output doesnt make sense 21:30
the command shown is raku -e "shell 'echo'"
why is there output mentioning dir?
line 2 shows one of the @!args is Any despite that we see it is passed 'echo' 21:31
github.com/rakudo/rakudo/blob/b6cc...#L172-L178 21:32
what does `raku -e 'say %*ENV<ComSpec>'` show? 21:34
21:56 jpn joined 22:02 jpn left 22:29 slicer joined 22:38 slicer left 22:41 teatime left