#4646 closed enhancement (fixed)
redeclare non-replaceable: warning instead or error
Reported by: | Owned by: | somebody | |
---|---|---|---|
Priority: | high | Milestone: | 1.13.0 |
Component: | Frontend | Version: | v1.13.0-dev-nightly |
Keywords: | Cc: |
Description
When reusing a model or library written by someone else (e.g. the MSL) it can happen that one needs to redeclare something that was not declared replaceable. OMC is giving an error in this case. Could this error be made a warning instead? Maybe using a flag? Or maybe such a flag already exists?
Change History (3)
comment:1 by , 7 years ago
Component: | *unknown* → Frontend |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:2 by , 7 years ago
Milestone: | Future → 1.13.0 |
---|---|
Version: | → v1.13.0-dev-nightly |
comment:3 by , 7 years ago
Thanks for the quick implementation!
It works for me (same error as before is displayed to the user, but translation then just proceeds).
Note:
See TracTickets
for help on using tickets.
a0c7ddf introduces the flag --ignoreReplaceable that when used disables the check for whether an element is replaceable or not before redeclaring it. This also disables the associated error message since the current frontend has a tendency to spam warnings. I opened ticket #4648 for a more fine-grained solution using annotations that can be implemented in the new frontend.