Galooshi / atom-import-js

Atom plugin for ImportJS
MIT License
36 stars 3 forks source link

Doesn't seem to work on windows? #4

Open jackgeek opened 8 years ago

jackgeek commented 8 years ago

Steps to reproduce

  1. installed atom-import-js
  2. added keybinding for windows:
'atom-workspace':
  'ctrl-shift-i': 'import-js:import'
  1. Selected module name in .js file.
  2. Press ctrl-shift-i
  3. get error below:

Atom Version: 1.7.4 System: Microsoft Windows 8.1 Pro Thrown From: atom-import-js package, v0.2.2

Stack Trace

Uncaught Error: undefined

At C:\Users\jallan\.atom\packages\atom-import-js\node_modules\import-js\build\findMatchingFiles.js:45

Error: undefined
    at findMatchingFiles (C:\Users\jallan\.atom\packages\atom-import-js\node_modules\import-js\build\findMatchingFiles.js:45:11)
    at C:\Users\jallan\.atom\packages\atom-import-js\node_modules\import-js\build\findJsModulesFor.js:88:37
    at Array.forEach (native)
    at findImportsFromLocalFiles (C:\Users\jallan\.atom\packages\atom-import-js\node_modules\import-js\build\findJsModulesFor.js:87:29)
    at findJsModulesFor (C:\Users\jallan\.atom\packages\atom-import-js\node_modules\import-js\build\findJsModulesFor.js:130:87)
    at Importer.findOneJsModule (C:\Users\jallan\.atom\packages\atom-import-js\node_modules\import-js\build\Importer.js:278:54)
    at Importer._import (C:\Users\jallan\.atom\packages\atom-import-js\node_modules\import-js\build\Importer.js:92:27)
    at inCurrentWorkingDirectory (C:\Users\jallan\.atom\packages\atom-import-js\lib\import-js.js:122:70)
    at inCurrentWorkingDirectory (C:\Users\jallan\.atom\packages\atom-import-js\lib\import-js.js:20:18)
    at importWord (C:\Users\jallan\.atom\packages\atom-import-js\lib\import-js.js:122:18)
    at atom-workspace.subscriptions.add.atom.commands.add.import-js:import (C:\Users\jallan\.atom\packages\atom-import-js\lib\import-js.js:159:33)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\jallan\AppData\Local\atom\app-1.7.4\resources\app.asar\src\command-registry.js:260:29)
    at C:\Users\jallan\AppData\Local\atom\app-1.7.4\resources\app.asar\src\command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\jallan\AppData\Local\atom\app-1.7.4\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\jallan\AppData\Local\atom\app-1.7.4\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (C:\Users\jallan\AppData\Local\atom\app-1.7.4\resources\app.asar\src\window-event-handler.js:98:36)
    at HTMLDocument.<anonymous> (C:\Users\jallan\AppData\Local\atom\app-1.7.4\resources\app.asar\src\window-event-handler.js:3:61)

Commands

     -0:04.6.0 import-js:import (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "atom-ternjs"
    ],
    "ignoredNames": [
      "node_modules",
      "coverage",
      "doc"
    ],
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  }
}

Installed Packages

# User
atom-import-js, v0.2.2
atom-import-sort, v0.6.0
atom-wallaby, v1.0.7
autocomplete-modules, v1.4.1
emmet-simplified, v2.5.0
fold-functions, v0.4.3
linter, v1.11.3
linter-eslint, v7.2.2
open_in_cmd, v0.6.0
react, v0.14.1
simple-copy-path, v1.0.0

# Dev
No dev packages