On 10/14/22 5:48 PM, Bruce Gray wrote:
On Oct 14, 2022, at 3:23 PM, Joseph Polanik <jpola...@charter.net> wrote:
The script Run/run_SequenceHelper.raku contains only the following lines
use lib '~/Documents/myRaku/gitHub/SequenceHelper/lib';
use SequenceHelper :ALL;
--snip--

A possible piece of the puzzle is that your `use` line is silently failing,
because the `~` tilde character is not special to Raku.
Instead of:
     use lib '~/Documents/myRaku/gitHub/SequenceHelper/lib';
, you need either of these:
     use lib "%*ENV<HOME>/Documents/myRaku/gitHub/SequenceHelper/lib";
     use lib  %*ENV<HOME> ~ '/Documents/myRaku/gitHub/SequenceHelper/lib';

Therefore, the module you have been testing might not be the one you thought 
you were testing.

To demonstrate, notice that in the error message below, the first search path contains 
the literal "Junk/~".
     cd ~/Junk
     raku -e 'use lib "~/FakeDir"; use FakeModule;'
         ===SORRY!=== Error while compiling -e
         Could not find FakeModule in:
             file#/Users/bruce_pro/Junk/~/FakeDir
         ...

Bruce and Vadim. I've removed the tilde as a precaution.

Thanks for the comment.

Joe


Reply via email to