Opened 12 years ago
Closed 12 years ago
#2559 closed defect (invalid)
Info XML does not set info tag
| Reported by: | Adeel Asghar | Owned by: | Martin Sjölund |
|---|---|---|---|
| Priority: | high | Milestone: | 1.9.1 |
| Component: | Code Generation | Version: | trunk |
| Keywords: | Cc: |
Description
The info tag is invalid for newly added variables. Run the attached script.
<variable name="x" comment="" variability = "continuous" isDiscrete = "false">
<Real useStart="false" start="0.0" fixed="false" useNominal="false" nominal="1.0" />
<source>
<info file="" lineStart="0" lineEnd="0" colStart="0" colEnd="0"/>
<part-of>within Real;</part-of>
<type>X</type>
<type>Real</type>
</source>
</variable>
Attachments (2)
Change History (4)
by , 12 years ago
| Attachment: | infoXMLTest.mo added |
|---|
by , 12 years ago
| Attachment: | infoXMLTest.mos added |
|---|
comment:1 by , 12 years ago
comment:2 by , 12 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

You forgot one step in your script...
<variable name="x" comment="" variability="continuous" isDiscrete="false"> <Real useStart="false" start="0.0" fixed="false" useNominal="false" nominal="1.0"/> <source> <info file="/home/martin/tmp/infoXMLTest.mo" lineStart="3" lineEnd="3" colStart="3" colEnd="9"/> <part-of>within Real;</part-of> <type>X</type> <type>Real</type> </source> </variable>You need to load the file after saving it!