Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-19903

Editor: Initial state indicator dot doesn't always reflect reality

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 4.5.0, Qt Creator 4.6.0-beta1
    • SCXML support
    • None

    Description

      Consider this (useless) state diagram:

      Although you can't tell from the picture, I created the states in this order:

      1. State_1
      2. final state
      3. State_2

      This results in the final state coming before State_2 in the generated SCXML. The SCXML editor doesn't set the compound state's initial attribute, nor does it create an <initial> element. In this case, according to the SCXML spec, State_1's initial state is the first state that appears in document order. This means the "final state" is the initial state.

      The SCXML editor doesn't appear to understand this, and instead purports State_2 as the initial substate. My guess is it just looks for the first <state> element.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jkobus Jarek Kobus
            cplaplante Chris Laplante
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes