You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reopening this issue.
Doing some tests locally it seems that we still get an incorrect structure when invoking modelica-json from outside the MBL directory.
[EDIT] This happens in a very specific case where MODELICAPATH contains the path to another installation of the library and does not contain the path to the installation that we want to parse, which is located under the current working directory.
In this case, the library path in MODELICAPATH will shadow any file found in both installations during the class name lookup.
However, this can be considered as an improper use of modelica-json, see README.md. We may therefore close this issue.
With
it seems that the structure of the directory where the JSON output is saved varies with the location where the app is run from.
Executing
rm -rf json && node ../modelica-json/app.js -f Buildings/Controls/OBC/ASHRAE/G36/AHUs/MultiZone/ -o json
from within
modelica-buildings
yields the following output directory.In contrast, executing
rm -rf json && node modelica-json/app.js -f modelica-buildings/Buildings/Controls/OBC/ASHRAE/G36/AHUs/MultiZone/ -o json
from the directory just above
modelica-buildings
yields the following output directory.This seems to be a regression as ctrl-flow invokes modelica-json (commit a46a361) from outside MBL and produces a correct output directory.
The bug seems to have been introduced with #202 — as revealed by tests before and after this commit.
@JayHuLBL @anandkp92 Can you reproduce it? Any idea what may cause this issue?
The text was updated successfully, but these errors were encountered: