Open AntoineGautier opened 1 week ago
I can confirm this issue from the command line:
$ echo $MODELICAPATH
/home/reituag/gitrepo/modelica-buildings:/opt/dymola-2024xRefresh1-x86_64/Modelica/Library/
$ rm -rf json
$ node ../modelica-json/app.js -f Buildings/Fluid/Actuators/BaseClasses/PartialDamperExponential.mo
...
$ tree json
json
└── Buildings
└── Fluid
├── Actuators
│ └── BaseClasses
│ ├── ActuatorSignal.json
│ └── PartialDamperExponential.json
├── BaseClasses
│ ├── ActuatorFilter.json
│ └── PartialResistance.json
└── Interfaces
├── PartialTwoPortInterface.json
└── PartialTwoPort.json
6 directories, 6 files
The classes from MSL (such as Modelica.Units.SI.*
) are not parsed.
This is with the master branch of modelica-json, commit f0b714b
@JayHuLBL Can you reproduce it on your system?
The function
searchPath
fromutil.js
fails to find the path to the Modelica files of various types from the MSL.These types have in common that they are part of packages using the Single File Mapping rules.