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

Windows: Using Windows capabilities with a namespace in a tiapp.xml displays an error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Invalid
    • Affects Version/s: Release 4.5.0
    • Fix Version/s: None
    • Component/s: Tiapp, Windows
    • Labels:
    • Environment:

      Windows 10 Pro
      Appc NPM: 4.2.4-2
      Appc Core: 5.2.1-20
      Titanium SDK: 5.3.0.v20160318230005
      Appc Studio: 4.5.0.201602170821

    • Story Points:
      5
    • Sprint:
      2016 Sprint 09 Studio

      Description

      Description

      When using the below in the tiapp.xml Studio will not accept it and throw the following error The prefix "m3" for element "m3:Capability" is not bound..

      <windows>
        <Capabilities>
          <m3:Capability Name="contacts" />
        </Capabilities>
      </windows>
      

      Workaround

      Based off TIMOB-20231 the SDK will automatically add these prefixes for you so the workaround is to remove the namespace.

      However as our documentation refers to type of usage we should accept it in Studio.

      Steps to reproduce

      1. Open a tiapp.xml from a project in Studio
      2. Click the tiapp.xml tab to open the editor
      3. Add the below

      <windows>
        <Capabilities>
          <m3:Capability Name="contacts" />
        </Capabilities>
      </windows>
      

      Actual result

      Studio will display an error and stop the user from building

      Expected result

      The input should be accepted

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kkolipaka Kondal Kolipaka (Inactive)
                Reporter:
                eharris Ewan Harris
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: