Open AntoineGautier opened 2 months 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?
@anandkp92 Let me know if I can help on this one: it's a blocker for other developments.
Classes from MSL
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.
Classes instantiated using simple names
The class name lookup also fails for some classes from MBL which are instantiated with their simple name (not composed using dot notation).