Opened 10 years ago

Closed 4 years ago

Last modified 4 years ago

#3010 closed defect (wontfix)

Dependency analysis removes import without warning

Reported by: sjoelund.se Owned by: perost
Priority: high Milestone: never
Component: Frontend Version: trunk
Keywords: Cc:

Description

Dependency analysis removes import without warning, for example for the following:

model N
end N;

model M
  import N;
  import N;
  N n;
end M;

Change History (3)

comment:1 Changed 10 years ago by sjoelund.se

  • Component changed from Unknown to Frontend

comment:2 Changed 4 years ago by perost

  • Milestone changed from Future to never
  • Resolution set to wontfix
  • Status changed from new to closed

That's by design, the dependency analysis fully qualified imported names and removes the imports to work around issues in the old frontend. It doesn't do that when -d=newInst is used (which only affects saveTotalModel since the dependency analysis is not used by the new frontend).

comment:3 Changed 4 years ago by sjoelund.se

I think the issue for the OF is that there are duplicates of N, and they were silently removed which hides the error.

Note: See TracTickets for help on using tickets.