Uploaded image for project: 'Documentation'
  1. Documentation
  2. TIDOC-860

Content Assist: Global: console, JSON, and some String methods do not appear in content assist

    Details

    • Severity:
      Minor
    • Story Points:
      8

      Description

      Content Assist does not contain entries for Global.console, Global.JSON, and some Global.String methods.

      API Documentation: http://docs.appcelerator.com/titanium/3.0/index.html#!/api/Global

      These entries appear to exist in api.jsca.

      3.0.0.v20121018140140.api.jsca excerpt:

       {
                  "name": "Global.console", 
                  "description": "<p>Console logging facilities.</p>", 
                  "userAgents": [
                      {
                          "platform": "android"
                      }, 
                      {
                          "platform": "iphone"
                      }, 
                      {
                          "platform": "ipad"
                      }, 
                      {
                          "platform": "mobileweb"
                      }
                  ], 
                  "examples": [], 
                  "remarks": [
                      "<p>The toplevel <code>console</code> support is intended to supplement Titanium.API\nand make it easier for developers to port existing javascript code\n(especially CommonJS modules) to Titanium.</p>\n<p>Note that <code>console</code> does not currently implement the complete\n<a href=\"http://getfirebug.com/wiki/index.php/Console_API\">firebug specification</a>.\nOur support is roughly equivalent to that offered by\n<a href=\"http://nodejs.org/api/stdio.html\">node.js's console</a>.</p>"
                  ], 
                  "properties": [], 
                  "functions": [
                      {
                          "name": "debug", 
                          "isInternal": false, 
                          "parameters": [
                              {
                                  "name": "message", 
                                  "usage": "required", 
                                  "type": "Object", 
                                  "description": "<p>The message(s) to log.</p>"
                              }
                          ], 
                          "userAgents": [
                              {
                                  "platform": "android"
                              }, 
                              {
                                  "platform": "iphone"
                              }, 
                              {
                                  "platform": "ipad"
                              }, 
                              {
                                  "platform": "mobileweb"
                              }
                          ], 
                          "since": [
                              {
                                  "name": "Titanium Mobile SDK - Android", 
                                  "version": "2.1.0"
                              }, 
                              {
                                  "name": "Titanium Mobile SDK - iPhone", 
                                  "version": "2.1.0"
                              }, 
                              {
                                  "name": "Titanium Mobile SDK - iPad", 
                                  "version": "2.1.0"
                              }, 
                              {
                                  "name": "Titanium Mobile SDK - Mobile Web", 
                                  "version": "2.1.0"
                              }
                          ], 
                          "isConstructor": false, 
                          "isClassProperty": false, 
                          "examples": [], 
                          "deprecated": false, 
                          "exceptions": [], 
                          "references": [], 
                          "isMethod": true, 
                          "isInstanceProperty": true, 
                          "description": "<p>Log a message at the <code>debug</code> level.</p>"
                      }, 
                      {
                          "name": "error", 
                          "isInternal": false, 
                          "parameters": [
                              {
                                  "name": "message", 
                                  "usage": "required", 
                                  "type": "Object", 
                                  "description": "<p>The message(s) to log.</p>"
                              }
                          ], 
                          "userAgents": [
                              {
                                  "platform": "android"
                              }, 
                              {
                                  "platform": "iphone"
                              }, 
                              {
                                  "platform": "ipad"
                              }, 
                              {
                                  "platform": "mobileweb"
                              }
                          ], 
                          "since": [
                              {
                                  "name": "Titanium Mobile SDK - Android", 
                                  "version": "2.1.0"
                              }, 
                              {
                                  "name": "Titanium Mobile SDK - iPhone", 
                                  "version": "2.1.0"
                              }, 
                              {
                                  "name": "Titanium Mobile SDK - iPad", 
                                  "version": "2.1.0"
                              }, 
                              {
                                  "name": "Titanium Mobile SDK - Mobile Web", 
                                  "version": "2.1.0"
                              }
                          ], 
                          "isConstructor": false, 
                          "isClassProperty": false, 
                          "examples": [], 
                          "deprecated": false, 
                          "exceptions": [], 
                          "references": [], 
                          "isMethod": true, 
                          "isInstanceProperty": true, 
                          "description": "<p>Log a message at the <code>error</code> level.</p>"
                      }, 
                      {
                          "name": "info", 
                          "isInternal": false, 
                          "parameters": [
                              {
                                  "name": "message", 
                                  "usage": "required", 
                                  "type": "Object", 
                                  "description": "<p>The message(s) to log.</p>"
                              }
                          ], 
                          "userAgents": [
                              {
                                  "platform": "android"
                              }, 
                              {
                                  "platform": "iphone"
                              }, 
                              {
                                  "platform": "ipad"
                              }, 
                              {
                                  "platform": "mobileweb"
                              }
                          ], 
                          "since": [
                              {
                                  "name": "Titanium Mobile SDK - Android", 
                                  "version": "2.1.0"
                              }, 
                              {
                                  "name": "Titanium Mobile SDK - iPhone", 
                                  "version": "2.1.0"
                              }, 
                              {
                                  "name": "Titanium Mobile SDK - iPad", 
                                  "version": "2.1.0"
                              }, 
                              {
                                  "name": "Titanium Mobile SDK - Mobile Web", 
                                  "version": "2.1.0"
                              }
                          ], 
                          "isConstructor": false, 
                          "isClassProperty": false, 
                          "examples": [], 
                          "deprecated": false, 
                          "exceptions": [], 
                          "references": [], 
                          "isMethod": true, 
                          "isInstanceProperty": true, 
                          "description": "<p>Log a message at the <code>info</code> level.</p>"
                      }, 
                      {
                          "name": "log", 
                          "isInternal": false, 
                          "parameters": [
                              {
                                  "name": "message", 
                                  "usage": "required", 
                                  "type": "Object", 
                                  "description": "<p>The message(s) to log.</p>"
                              }
                          ], 
                          "userAgents": [
                              {
                                  "platform": "android"
                              }, 
                              {
                                  "platform": "iphone"
                              }, 
                              {
                                  "platform": "ipad"
                              }, 
                              {
                                  "platform": "mobileweb"
                              }
                          ], 
                          "since": [
                              {
                                  "name": "Titanium Mobile SDK - Android", 
                                  "version": "2.1.0"
                              }, 
                              {
                                  "name": "Titanium Mobile SDK - iPhone", 
                                  "version": "2.1.0"
                              }, 
                              {
                                  "name": "Titanium Mobile SDK - iPad", 
                                  "version": "2.1.0"
                              }, 
                              {
                                  "name": "Titanium Mobile SDK - Mobile Web", 
                                  "version": "2.1.0"
                              }
                          ], 
                          "isConstructor": false, 
                          "isClassProperty": false, 
                          "examples": [], 
                          "deprecated": false, 
                          "exceptions": [], 
                          "references": [], 
                          "isMethod": true, 
                          "isInstanceProperty": true, 
                          "description": "<p>Log a message at the <code>info</code> level.</p>"
                      }, 
                      {
                          "name": "warn", 
                          "isInternal": false, 
                          "parameters": [
                              {
                                  "name": "message", 
                                  "usage": "required", 
                                  "type": "Object", 
                                  "description": "<p>The message(s) to log.</p>"
                              }
                          ], 
                          "userAgents": [
                              {
                                  "platform": "android"
                              }, 
                              {
                                  "platform": "iphone"
                              }, 
                              {
                                  "platform": "ipad"
                              }, 
                              {
                                  "platform": "mobileweb"
                              }
                          ], 
                          "since": [
                              {
                                  "name": "Titanium Mobile SDK - Android", 
                                  "version": "2.1.0"
                              }, 
                              {
                                  "name": "Titanium Mobile SDK - iPhone", 
                                  "version": "2.1.0"
                              }, 
                              {
                                  "name": "Titanium Mobile SDK - iPad", 
                                  "version": "2.1.0"
                              }, 
                              {
                                  "name": "Titanium Mobile SDK - Mobile Web", 
                                  "version": "2.1.0"
                              }
                          ], 
                          "isConstructor": false, 
                          "isClassProperty": false, 
                          "examples": [], 
                          "deprecated": false, 
                          "exceptions": [], 
                          "references": [], 
                          "isMethod": true, 
                          "isInstanceProperty": true, 
                          "description": "<p>Log a message at the <code>warn</code> level.</p>"
                      }
                  ], 
                  "deprecated": false, 
                  "since": [
                      {
                          "name": "Titanium Mobile SDK - Android", 
                          "version": "2.1.0"
                      }, 
                      {
                          "name": "Titanium Mobile SDK - iPhone", 
                          "version": "2.1.0"
                      }, 
                      {
                          "name": "Titanium Mobile SDK - iPad", 
                          "version": "2.1.0"
                      }, 
                      {
                          "name": "Titanium Mobile SDK - Mobile Web", 
                          "version": "2.1.0"
                      }
                  ], 
                  "isInternal": true, 
                  "events": []
              },
      

      Steps to Reproduce:

      1. Open app.js.
      2. Activate Content Assist.
      3. Type in 'console', 'JSON', or 'String.format'.

      Actual Result:

      Entries do not exist.

      Expected Result:

      Entries should exist. They do exist at runtime and the documentation. This could be an api.jsca formatting issue, or a Studio Content Assist issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bhatfield Benjamin Hatfield (Inactive)
                Reporter:
                dhyde Dustin Hyde
                Reviewer:
                Praveen Innamuri (Inactive)
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 hours
                  3h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours Time Not Required
                  2h

                    Backbone Issue Sync

                    • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                      Git Integration