Opened 11 years ago

Closed 11 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)

infoXMLTest.mo (74 bytes ) - added by Adeel Asghar 11 years ago.
infoXMLTest.mos (212 bytes ) - added by Adeel Asghar 11 years ago.

Download all attachments as: .zip

Change History (4)

by Adeel Asghar, 11 years ago

Attachment: infoXMLTest.mo added

by Adeel Asghar, 11 years ago

Attachment: infoXMLTest.mos added

comment:1 by Martin Sjölund, 11 years ago

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!

comment:2 by Martin Sjölund, 11 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.