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: Martin Sjölund Owned by: Per Östlund
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 by Martin Sjölund, 10 years ago

Component: UnknownFrontend

comment:2 by Per Östlund, 4 years ago

Milestone: Futurenever
Resolution: wontfix
Status: newclosed

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 by Martin Sjölund, 4 years ago

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.