Group Abstract Group Abstract

Message Boards Message Boards

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

Different behavior between .wl files and .m files in a package directory that contains Kernel/init.m

Posted 13 days ago

I am developing a small package. It has several "source" files. Hence I am using an init.m file that loads those files (contexts actually) with Get.

When the source files have the extension ..wl, Mathematica loads that source file directory bypassing the init.m file. This is NOT the expected behavior.

When the source files have the extension .m, with NO other changes, Mathematica loads the init.m file and then loads ALL the source files. This is the expected behavior.

This took many hours to debug. Useful ideas were using Print statements in the init.m file and in the source files AND using FindFile with a context name in my application notebook.

I have reported to Wolfram. My questions are (1) have others seen this behavior? (2) should I have expected it based on the documentation?

POSTED BY: Paul Nielan
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard