Details

    • Type: Story
    • Status: Closed
    • Priority: Low
    • Resolution: Duplicate
    • Affects Version/s: Titanium Studio 3.1.0, Titanium Studio 3.1.1
    • Fix Version/s: None
    • Component/s: Desktop
    • Labels:
    • Environment:

      Mac OS X

    • Story Points:
      2

      Description

      When a .tss file contains certain grammars, Titanium Studio cannot parse for display in the Outline View, and the entire Outline View goes blank. Examples:

      Example 1)

      "#topShadow[platform=android]":{ 
      	left: 0,
      	right: 0,
      	top: 0,
      	height: 4,
      	backgroundColor: "yellow",
      	backgroundGradient: {
      		type: 'linear',
      		startPoint: {x:0,y:0},
      		endPoint:{x:0,y:"100%"},
      		colors: [{color: "#919191", offset:0},{color: "#919191", offset:0.125},{color:"#f2f2f2",offset:1}]
      	}
      },

      The colors line contains an array of objects. This is a legitimate style in a tss file, but its presence causes the whole outline view to go blank.

      Example 2)

      "#OrderListSection[platform=ios]":{
      	text:"List Settings",
      	top:10,
      },

      The top:10, has an extra comma in it. This isn't necessarily a correct grammar, but a .tss will compile with it in place. However, it breaks the Outline View for the entire page.

      I use the Outline View quite heavily when working with tss files, it's hard to go without a working tss. Example 2 has an acceptable workaround, but Example 1 does not.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mxia Michael Xia
                Reporter:
                twilkinson Thomas Wilkinson
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: