Opened 11 years ago

Closed 11 years ago

#2559 closed defect (invalid)

Info XML does not set info tag

Reported by: adeas31 Owned by: sjoelund.se
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 adeas31 11 years ago.
infoXMLTest.mos (212 bytes) - added by adeas31 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by adeas31

Changed 11 years ago by adeas31

comment:1 Changed 11 years ago by sjoelund.se

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 Changed 11 years ago by sjoelund.se

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.