For making a Maple package, an mla file, I were always using a same 4 lines code in a Maple worksheet and it was fine, but in Maple 2022 I receive an error message instead with the same 4 lines of code. Here is a simple example. Let's say I have a directory on my computer "C:\Home\Maple projects\Test_package", inside this directory I have one file "main.mpl" and a folder called "Functions" with a single file "Test.mm". The content of these two files are in below.
# This is just to test savelib at Maple 2022
testSavelib := module()
description "This is just a test.";
export ModuleCopy, ModuleApply, ModulePrint;
kernelopts( includepath = currentdir() ):
Test := proc( x :: integer )
description "prints a message saying what integer you have given to this function.";
printf("You have inserted the integer %d.\n", x);
Now I open a Maple worksheet and do the followings.
savelib('testSavelib'," C:\\Home\\Maple projects\\Test_package\\test.mla ");
On previous versions of Maple the result would be a test.mla file with the testSavelib package in it. But in Maple 2022 I receive an error message instead, and the test.mla is an empty mla.
Error, could not open ` C:\Home\Maple projects\CAD project\test.mla \testSavelib.m` for writing
Here is a screenshot.