Open Mathadon opened 6 years ago
I can confirm this, happens to me every time. https://github.com/UdK-VPT/BuildingSystems/pull/113/commits
In https://travis-ci.org/ibpsa/modelica-ibpsa/jobs/389811782 a similar issue seems to occur:
Buildingspy removes f_nonlinear
from the package.order file while it should in fact stay there. I'll fix this again by saving the package as a single file.
edit: to clarify, f_nonlinear
did not have a separate .mo file, it was included in the body of package.mo. But I think in that case it still needs to be included in the package.order.
Also in https://travis-ci.org/ibpsa/modelica-ibpsa/jobs/389811782 for https://github.com/ibpsa/modelica-ibpsa/pull/945 BuildingsPy seems to sort the files such that constants are below functions. Constants are stored in the package.mo file while the functions are stored in separate files. I resorted the variables in line with BuildingsPy since I prefer to have multiple files.
I'll save this as a file again to avoid this.
In https://travis-ci.org/ibpsa/modelica-ibpsa/jobs/390042950 BuildingsPy asks to move Internal
again. It thus seems that BuildingsPy orders the files differently depending on whether the files are saved as directories or as a package?
In https://github.com/ibpsa/modelica-ibpsa/pull/943 Travis returns the following error
so BuildingsPy claims that the package.order is incomplete. However, the
UsersGuide
package does not contain a class calledUsersGuide
.From the Modelica specification (https://www.modelica.org/documents/ModelicaSpec34.pdf):
the package.order should only contain subclasses of the package, not the package name itself.
I've had similar issues with IDEAS where buildingspy adds
UsersGuide
to the package.order when usingwrite_package_order(".")
. Dymola then actually complains that it cannot findUsersGuide.UsersGuide
. Therefore it seems like this is a bug in BuildingsPy?Fyi: this issue does not appear in
Buildings
since you save the UsersGuide as a .mo file instead of as a directory structure. I will fix the pull request for now by converting the directory structure in a .mo file.