Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-749

Unexpected behavior with content assist when pasting code that begins with the name space Titanium

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Invalid
    • Affects Version/s: Titanium Studio 1.0.4, Titanium Studio 1.0.6
    • Fix Version/s: None
    • Component/s: Content Assist
    • Environment:

      TiStud 1.0.4.201108101535, TiStud 1.0.6.201110251616, os x 10.6.8, ubuntu 11.10

    • Story Points:
      0

      Description

      1. Copy the following code:

      Titanium.Geolocation.reverseGeocoder(53.0440, 5.3364, function(evt) { 
Ti.API.info("reverse geolocation result1 = " + JSON.stringify(evt)); 
});
      Titanium.Geolocation.reverseGeocoder(52.434985236831515, 6.829526424407959, function(evt) { 
Ti.API.info("reverse geolocation result2 = " + JSON.stringify(evt)); 
});
      

      2. Paste copied code into Studio editor
      Result: An extra line of code is added

      3. In the editor, move cursor around using arrow keys
      Result: Content assist "distorts" the copied code. See attached video.

      4. Highlight entire code using command+a
      Result: Only half of the copied code is highlighted. See attached video.

      Expected: You should be able to copy and paste code that begins with the name space Titanium

      Note: See attached video for full behavior. Also, bug does not occur if you copy and paste the following text:

      1.

      var button = Titanium.UI.createButton({ title: 'Hello' });
      button.addEventListener('click',function(e)
      { Titanium.API.info("You clicked the button"); });
      

      2.

      The Brown Fox Jumps Over The Lazy Dog
      The Brown Fox Jumps Over The Lazy Dog
      

        Attachments

          Activity

            People

            • Assignee:
              wluu Wilson Luu (Inactive)
              Reporter:
              wluu Wilson Luu (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: