Message Boards Message Boards

1
|
875 Views
|
0 Replies
|
1 Total Likes
View groups...
Share
Share this post:

How to fix an error when using << in a paclet kernel file

I often ask for help on Wolfram Community, but this time I have some help to give that I hope will be helpful for others having the same problem.
I build a paclet and I get an error with Get.

ref/message/General/noopen Cannot open PeterBurbery`LittleChildPaclet`Coins`.

and many other errors.

I fix the error with

PacletDirectoryLoad["C:\\Users\\Peter\\OneDrive - Marshall University\
\\GitHub\\wolfram-challenges-paclet\\little-child-paclet"]

This shows how the error is resolved.

The error appears again when I run PacletDirectoryUnload.

I found another way to load a paclet. This sometimes works when other methods fail.

Get /@ FileNames["*.wl", 
   "C:\\Users\\Peter\\OneDrive - Marshall \
University\\GitHub\\basic-hypergeometric-functions-paclet\\basic-\
hypergeometric-functions\\Kernel"];

I had to run this twice to get it to work.

Here is something that works better.

Do[Quiet[
  Get /@ FileNames["*.wl", 
     "C:\\Users\\Peter\\OneDrive - Marshall \
University\\GitHub\\basic-hypergeometric-functions-paclet\\basic-\
hypergeometric-functions\\Kernel"];, Get::noopen], 4]
POSTED BY: Peter Burbery
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract