Session ID
Hi All Windows 10 and 11 Does Raku have a system call that will tell me my "session ID"? Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~
Re: -c question
On 2/6/24 09:03, Bruce Gray wrote: On Feb 6, 2024, at 10:52, ToddAndMargo via perl6-users wrote: On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users wrote: Hi All, Is there a way to syntax a module? Sort of like the "-c" option on main programs? Many thanks, -T On 2/6/24 01:34, Elizabeth Mattijsen wrote: $ raku -c foo.rakumod Syntax OK $ raku -c WinMessageBox.pm6 ===SORRY!=== Error while compiling /home/CDs/Windows/NtUtil/WinMessageBox.pm6 Could not find NativeConvert in: /home/tony/.raku /opt/rakudo-pkg/share/perl6/site /opt/rakudo-pkg/share/perl6/vendor /opt/rakudo-pkg/share/perl6/core CompUnit::Repository::AbsolutePath<4639587332824> CompUnit::Repository::NQP<4639586267208> CompUnit::Repository::Perl5<4639586267248> at /home/CDs/Windows/NtUtil/WinMessageBox.pm6:50 $ which NativeConvert.pm6 ./NativeConvert.pm6 and three other pm.6's WinMessageBox imports. I can only compile check my modules if I import them to a program and -c the program. For example, the following program uses the above module: $ raku -c CobianWrapper.pl6 Syntax OK I just want to do a syntax check on my modules at time without the program. :'( The wrapper program can be a `-e` one-liner, like: raku -c -e 'use NativeCall;' Syntax OK Does this work for you? raku -c -e 'use WinMessageBox;' Rats! $ raku -c -e 'use WinMessageBox;' ===SORRY!=== Error while compiling -e Could not find WinMessageBox in: /home/tony/.raku /opt/rakudo-pkg/share/perl6/site /opt/rakudo-pkg/share/perl6/vendor /opt/rakudo-pkg/share/perl6/core CompUnit::Repository::AbsolutePath<2965876076768> CompUnit::Repository::NQP<2965910068576> CompUnit::Repository::Perl5<2965910068616> at -e:1 $ raku -I./ -c WinMessageBox.pm6 Syntax OK -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~
pm6 naming convention
Hi All, I use AnyDesk for remoter customer support. Work rather well. The file transfer portion, which I adore, posts a Microsoft Office Publisher Icon (a big one) when it hits a .pm6 modules. Is there a different naming convention I can use for my modules that does not mimic some other program? Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~
Re: -c question
On 6 Feb 2024, at 17:52, ToddAndMargo via perl6-users wrote: On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users wrote: Hi All, Is there a way to syntax a module? Sort of like the "-c" option on main programs? Many thanks, -T On 2/6/24 01:34, Elizabeth Mattijsen wrote: $ raku -c foo.rakumod Syntax OK $ raku -c WinMessageBox.pm6 ===SORRY!=== Error while compiling /home/CDs/Windows/NtUtil/WinMessageBox.pm6 Could not find NativeConvert in: /home/tony/.raku /opt/rakudo-pkg/share/perl6/site /opt/rakudo-pkg/share/perl6/vendor /opt/rakudo-pkg/share/perl6/core CompUnit::Repository::AbsolutePath<4639587332824> CompUnit::Repository::NQP<4639586267208> CompUnit::Repository::Perl5<4639586267248> at /home/CDs/Windows/NtUtil/WinMessageBox.pm6:50 $ which NativeConvert.pm6 ./NativeConvert.pm6 and three other pm.6's WinMessageBox imports. I can only compile check my modules if I import them to a program and -c the program. For example, the following program uses the above module: $ raku -c CobianWrapper.pl6 Syntax OK I just want to do a syntax check on my modules at time without the program. :'( On 2/6/24 08:57, Elizabeth Mattijsen wrote: > Do you have some "use lib 'foo'" setting in your program? > > If so, use that on the command-line, e.g.: > > $ raku -Ifoo -c bar.rakumod > Indeed I do. Will the above command check those modules too, or just verify that they are there?
Re: -c question
> On Feb 6, 2024, at 10:52, ToddAndMargo via perl6-users > wrote: > >>> On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users >>> wrote: >>> >>> Hi All, >>> >>> Is there a way to syntax a module? Sort of like the "-c" >>> option on main programs? >>> >>> Many thanks, >>> -T > > On 2/6/24 01:34, Elizabeth Mattijsen wrote: > > $ raku -c foo.rakumod > > Syntax OK > > > > $ raku -c WinMessageBox.pm6 > ===SORRY!=== Error while compiling /home/CDs/Windows/NtUtil/WinMessageBox.pm6 > Could not find NativeConvert in: >/home/tony/.raku >/opt/rakudo-pkg/share/perl6/site >/opt/rakudo-pkg/share/perl6/vendor >/opt/rakudo-pkg/share/perl6/core >CompUnit::Repository::AbsolutePath<4639587332824> >CompUnit::Repository::NQP<4639586267208> >CompUnit::Repository::Perl5<4639586267248> > at /home/CDs/Windows/NtUtil/WinMessageBox.pm6:50 > > $ which NativeConvert.pm6 > ./NativeConvert.pm6 > and three other pm.6's WinMessageBox imports. > > I can only compile check my modules if I > import them to a program and -c the program. > > For example, the following program uses > the above module: >$ raku -c CobianWrapper.pl6 >Syntax OK > > I just want to do a syntax check on my modules > at time without the program. > > :'( The wrapper program can be a `-e` one-liner, like: raku -c -e 'use NativeCall;' Syntax OK Does this work for you? raku -c -e 'use WinMessageBox;' -- Hope this helps, Bruce Gray (Util of PerlMonks)
Re: -c question
Do you have some "use lib 'foo'" setting in your program? If so, use that on the command-line, e.g.: $ raku -Ifoo -c bar.rakumod > On 6 Feb 2024, at 17:52, ToddAndMargo via perl6-users > wrote: > >>> On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users >>> wrote: >>> >>> Hi All, >>> >>> Is there a way to syntax a module? Sort of like the "-c" >>> option on main programs? >>> >>> Many thanks, >>> -T > > On 2/6/24 01:34, Elizabeth Mattijsen wrote: > > $ raku -c foo.rakumod > > Syntax OK > > > > $ raku -c WinMessageBox.pm6 > ===SORRY!=== Error while compiling /home/CDs/Windows/NtUtil/WinMessageBox.pm6 > Could not find NativeConvert in: >/home/tony/.raku >/opt/rakudo-pkg/share/perl6/site >/opt/rakudo-pkg/share/perl6/vendor >/opt/rakudo-pkg/share/perl6/core >CompUnit::Repository::AbsolutePath<4639587332824> >CompUnit::Repository::NQP<4639586267208> >CompUnit::Repository::Perl5<4639586267248> > at /home/CDs/Windows/NtUtil/WinMessageBox.pm6:50 > > $ which NativeConvert.pm6 > ./NativeConvert.pm6 > and three other pm.6's WinMessageBox imports. > > I can only compile check my modules if I > import them to a program and -c the program. > > For example, the following program uses > the above module: >$ raku -c CobianWrapper.pl6 >Syntax OK > > I just want to do a syntax check on my modules > at time without the program. > > :'(
Re: -c question
On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users wrote: Hi All, Is there a way to syntax a module? Sort of like the "-c" option on main programs? Many thanks, -T On 2/6/24 01:34, Elizabeth Mattijsen wrote: > $ raku -c foo.rakumod > Syntax OK > $ raku -c WinMessageBox.pm6 ===SORRY!=== Error while compiling /home/CDs/Windows/NtUtil/WinMessageBox.pm6 Could not find NativeConvert in: /home/tony/.raku /opt/rakudo-pkg/share/perl6/site /opt/rakudo-pkg/share/perl6/vendor /opt/rakudo-pkg/share/perl6/core CompUnit::Repository::AbsolutePath<4639587332824> CompUnit::Repository::NQP<4639586267208> CompUnit::Repository::Perl5<4639586267248> at /home/CDs/Windows/NtUtil/WinMessageBox.pm6:50 $ which NativeConvert.pm6 ./NativeConvert.pm6 and three other pm.6's WinMessageBox imports. I can only compile check my modules if I import them to a program and -c the program. For example, the following program uses the above module: $ raku -c CobianWrapper.pl6 Syntax OK I just want to do a syntax check on my modules at time without the program. :'(
Re: -c question
$ raku -c foo.rakumod Syntax OK > On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users > wrote: > > Hi All, > > Is there a way to syntax a module? Sort of like the "-c" > option on main programs? > > Many thanks, > -T > > > > -- > ~~ > Computers are like air conditioners. > They malfunction when you open windows > ~~