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

Numerous calls to npm config get prefix while indexing js modules

    Details

    • Story Points:
      5

      Description

      I was running my dev environment and noticed that while indexing modules (see screenshot), my log was filled with calls to:

      !ENTRY com.aptana.core 1 0 2012-12-21 09:14:41.326
      !MESSAGE (Build 0.0.0.qualifier) [INFO] com.aptana.core/debug/shell Running process:
      Process: "/usr/local/bin/npm" "config" "get" "prefix"
      Working directory: null
      Environment:

      {APTANA_VERSION=3.1.0.qualifier, Apple_PubSub_Socket_Render=/tmp/launch-lARzbP/Render, Apple_Ubiquity_Message=/tmp/launch-YOCWjK/Apple_Ubiquity_Message, COMMAND_MODE=unix2003, HOME=/Users/nle, LANG=en_US.UTF-8, LOGNAME=nle, PATH=/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin, PWD=/Applications/eclipse_42/Eclipse.app/Contents/MacOS, SHELL=/bin/bash, SHLVL=1, SSH_AUTH_SOCK=/tmp/launch-puYPOq/Listeners, TMPDIR=/var/folders/zw/n1jmn7z52yb6x0rfd2cn5bgr0000gq/T/, USER=nle, __CF_USER_TEXT_ENCODING=0x1F7:0:0, com.apple.java.jvmMode=client, com.apple.java.jvmTask=JNI.java}

      This seems like something we can cache before the indexing job happens and re-use it. Making this call every ~300ms seems overkill

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              nle Nam Le (Inactive)
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: