(different lognames but the same person, now out from my office)
I proceed exactly as I understand you do.
More precisely :
1/ I open an interactive Maple session (Maple 2015, Windows 7)
2/ I open the file MyModule.mw in worksheet W1
and the file Test.mw in a separate worksheet W2
W1 is aimed to develop the package MyModule
The code in W2 contains the call to the procedure MyProc included in MyModule
3/ W2 begins this way :
MyLib := …. # the directory which contains MyModule.mla
libname := MyLib, libname; # should I have write lib name := libname, MyLib, ?
4/ W1 begins with a « restart » command and is organized this way :
* the codes corresponding to the N procedures MyModule contains (each of them in a separate block)
* a new block where the module MyModule is defined
* a last block where the archive MyModule.mla is created in the directory Mylib (the same name used in W2)
5/ Once MyModule.mla has been generated I return to W2.
5.0/ I execute W1 up to the command MyProc(…), where MyProc is one of the N procedures MyModule contains.
I’m not happy with the result it returns, so:
5.1/ I go back to W1
5.2/ I modify MyProc
5.3/ I execute (!!!) the whole W1 worksheet
If MyLib already contains MyModule.mla, which is generally the case, this archive is destroyed
before a new might be created
I verified in a third worksheet that MyModule.mla contains the modified procedure MyProc
5.4/ I go back to W2.
I insert a new block just after the one which contains the call to MyProc.
This block contains
package(); # to insure that MyModule has been « unwithed » … which is the case (***, see below)
The command showstat(MyProc) keeps displaying the unmodified MyProc loaded by the first with(MyModule)
(point 3/ above).
It all goes as if unwith(MyModule) + with(MyModule) was ineffective.
*** More surprisingly, if I execute the command MyProc(…) after unwith(MyModule) , I do not obtain the output
MyProc(…) which would signify that MyProc is unknown, but the same result I obtained at point 5.0 !?!?
PS : it is of course not a blocking situation for I can always execute the W2 worksheet from its first « restart » command to the MyProc(…).
It’ is more something which is troubling me...