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

Studio: Typing "label1" at certain pace causes autofill with "Ti.API.log('info',})"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.2.1
    • Fix Version/s: 2014 Sprint 05, Release 3.3.0
    • Component/s: Content Assist
    • Environment:

      Mac OS 10.9.1
      Xcode 5.0.2
      CLI: 3.2.1
      Alloy: 1.3.1
      Titanium SDK version 3.2.1.GA
      Titanium Studio, build: 3.2.1.201402041146

    • Story Points:
      8
    • Sprint:
      2014 Sprint 05

      Description

      Description:

      At certain typing rates, typing "label1" results in the text being replaced with "Ti.API.log('info',})". Not only is this not ideal, the text throws an error in the editor which is "Syntax error: Unexpected token "}"

      Steps to reproduce:

      1) Open any js file in studio.
      2) Type "label1"

      Result:

      If your typing rate was conducive, the text will be replaced. If not, it will work as expected.

      Expected Result:

      "label1" Text remains as entered

      Notes:

      Typing fast or slow may not produce the issue. Michael mentioned that:
      This problem happens due to that there is only one proposal for the case of label1 when '1' is typed, and the proposal is a code snippet. To turn the behavior off, there is the option in Preferences > Studio > Content Assist > "Insert single proposals automatically."

        Attachments

          Activity

            People

            • Assignee:
              pinnamuri Praveen Innamuri (Inactive)
              Reporter:
              emerriman Eric Merriman
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: