lukehoban / atom-ide-flow

Atom IDE support for Flow
MIT License
87 stars 17 forks source link

Uncaught TypeError: Bad argument #7

Closed tonypine closed 9 years ago

tonypine commented 9 years ago

Uncaught TypeError: Bad argument

Atom Version: 0.161.0 System: Mac OS X 10.10.1 Thrown From: ide-flow package, v0.1.0

Steps To Reproduce

  1. ...
  2. ...

    Stack Trace

At /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:126

TypeError: Bad argument
  at TypeError (native)
  at ChildProcess.spawn (child_process.js:1134:26)
  at Object.exports.spawn (child_process.js:993:9)
  at new BufferedProcess (/Applications/Atom.app/Contents/Resources/app/src/buffered-process.js:47:37)
  at run (/Users/webdev/.atom/packages/ide-flow/lib/util-flow-command.coffee:18:25)
  at Object.module.exports.startServer (/Users/webdev/.atom/packages/ide-flow/lib/util-flow-command.coffee:55:15)
  at Object.module.exports.check (/Users/webdev/.atom/packages/ide-flow/lib/util-flow-command.coffee:64:45)
  at PluginManager.check (/Users/webdev/.atom/packages/ide-flow/lib/plugin-manager.coffee:52:21)
  at atom-workspace.<anonymous> (/Users/webdev/.atom/packages/ide-flow/lib/ide-flow.coffee:12:22)
  at atom-workspace.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:112:34)
  at atom-workspace.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
  at atom-workspace.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
  at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61)
  at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:156:19)
  at WorkspaceView.jQuery.fn.trigger (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:64:23)
  at new EditorControl (/Users/webdev/.atom/packages/ide-flow/lib/editor-control.coffee:47:24)
  at /Users/webdev/.atom/packages/ide-flow/lib/plugin-manager.coffee:11:39
  at atom-workspace.attachedCallback (/Applications/Atom.app/Contents/Resources/app/src/workspace-view.js:94:18)
  at atom-workspace.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:110:34)
  at atom-workspace.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
  at atom-workspace.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
  at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61)
  at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:156:19)
  at TextEditorView.jQuery.fn.trigger (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:64:23)
  at TextEditorView.module.exports.TextEditorView.afterAttach (/Applications/Atom.app/Contents/Resources/app/src/text-editor-view.js:180:19)
  at callAttachHooks (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/lib/space-pen.js:342:67)
  at atom-pane.PaneElement.activeItemChanged (/Applications/Atom.app/Contents/Resources/app/src/pane-element.js:111:9)
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at Pane.module.exports.Pane.setActiveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:250:22)
  at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:314:21)
  at /Applications/Atom.app/Contents/Resources/app/src/workspace.js:494:16
  at _fulfilled (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:787:54)
  at self.promiseDispatch.done (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:816:30)
  at Promise.promise.promiseDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:749:13)
  at /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:557:44
  at flush (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:108:17)
  at process._tickCallback (node.js:378:11)

/cc @atom/core

Nicolab commented 9 years ago

Same issue with Atom v0.165 on Ubuntu 14.10.

Edit: it's related to the flow path. After added the correct command path there is no error but it does not work

domrein commented 9 years ago

I spent a little time looking into this today. There seems to be a few issues.

The first is that getFlowCommand in util-flow-command.coffee is not returning the path of flow. The BufferedProcess is then instantiated with an invalid command, which throws the above error. I'm not sure why the path isn't being returned correctly.

Second, If .flowconfig cannot be found, the Flow server returns a message saying the config cannot be found, but the package does not notify the user or create a default .flowconfig.

Third, It looks like the css rules in ide-flow.less are not being applied. I verified that once you specify the path to the flow binary in your config and create a .flowconfig, the file is being analyzed by Flow correctly and the error classes are being added via the decorators. However, the styles do not seem to be applied. It looks like the styles are not available within the editor view?

Hopefully that helps someone looking into this. I'll do more if I have more time later.

yuchi commented 9 years ago

ping @lukehoban :)

bennerhq commented 9 years ago

same issue here ;) .. thanks!

rpominov commented 9 years ago

Still getting this:

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.200.0 System: Mac OS X 10.10.3 Thrown From: ide-flow package, v0.6.0

Stack Trace

Uncaught TypeError: Bad argument

At /Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:260

TypeError: Bad argument
  at TypeError (native)
  at ChildProcess.spawn (child_process.js:1119:26)
  at Object.exports.spawn (child_process.js:977:9)
  at BufferedProcess.module.exports.BufferedProcess.spawn (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:188:44)
  at new BufferedProcess (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:52:14)
  at run (/Users/anon/.atom/packages/ide-flow/lib/util-flow-command.coffee:21:27)
  at Object.module.exports.typeAtPos (/Users/anon/.atom/packages/ide-flow/lib/util-flow-command.coffee:77:5)
  at PluginManager.typeAtPos (/Users/anon/.atom/packages/ide-flow/lib/plugin-manager.coffee:63:21)
  at EditorControl.showExpressionType (/Users/anon/.atom/packages/ide-flow/lib/editor-control.coffee:91:14)
  at /Users/anon/.atom/packages/ide-flow/lib/editor-control.coffee:37:10

Commands

     -3:03.4.0 ide-flow:check (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-light-syntax.theme-atom-light-ui)

Config

{
  "core": {
    "themes": [
      "atom-light-ui",
      "one-light-syntax"
    ],
    "disabledPackages": [
      "dev-live-reload",
      "language-objective-c",
      "language-go",
      "language-c",
      "language-java",
      "language-mustache",
      "language-perl",
      "language-php",
      "language-sql",
      "metrics"
    ]
  },
  "ide-flow": {}
}

Installed Packages

# User
autocomplete-plus, v2.17.1
ide-flow, v0.6.0

# Dev
No dev packages
rpominov commented 9 years ago

It goes away after specifying Flow Path in the settings.

alvaromb commented 9 years ago

Still happens when installing flow from Homebrew.

FabianMeul commented 9 years ago

Having this issue as well. Installed flow from Homebrew.

dignifiedquire commented 8 years ago

Still having this issue

Xesued commented 8 years ago

Installed flow from NPM, having this issue.

miqmago commented 8 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.7.3 System: Mac OS X 10.10.5 Thrown From: ide-flow package, v0.8.0

Stack Trace

Uncaught TypeError: Bad argument

At /Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:262

TypeError: Bad argument
  at TypeError (native)
  at ChildProcess.spawn (internal/child_process.js:274:26)
  at Object.exports.spawn (child_process.js:374:9)
  at BufferedProcess.module.exports.BufferedProcess.spawn (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:190:44)
  at new BufferedProcess (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:52:14)
  at run (/Users/mmgadmin/.atom/packages/ide-flow/lib/util-flow-command.coffee:22:27)
  at Object.module.exports.check (/Users/mmgadmin/.atom/packages/ide-flow/lib/util-flow-command.coffee:70:15)
  at PluginManager.check (/Users/mmgadmin/.atom/packages/ide-flow/lib/plugin-manager.coffee:41:21)
  at atom-workspace.<anonymous> (/Users/mmgadmin/.atom/packages/ide-flow/lib/ide-flow.coffee:12:24)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
  at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
  at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
  at new EditorControl (/Users/mmgadmin/.atom/packages/ide-flow/lib/editor-control.coffee:50:19)
  at /Users/mmgadmin/.atom/packages/ide-flow/lib/plugin-manager.coffee:12:39
  at /Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:312:16
  at /Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:377:18
  at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
  at PaneContainer.module.exports.PaneContainer.addedPaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:388:27)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:372:28
  at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
  at Pane.module.exports.Pane.addItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:485:20)
  at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:428:14)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:533:18
  at process._tickCallback (node.js:392:9)

Commands

     -0:51.3.0 core:move-left (atom-text-editor.editor.is-focused)
     -0:51 core:move-right (atom-text-editor.editor.is-focused)
  2x -0:49.5.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:48 snippets:next-tab-stop (atom-text-editor.editor.is-focused)
     -0:48 snippets:expand (atom-text-editor.editor.is-focused)
     -0:47.9.0 editor:indent (atom-text-editor.editor.is-focused)
     -0:47.5.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:45.2.0 core:move-left (atom-text-editor.editor.is-focused)
     -0:44.7.0 core:move-right (atom-text-editor.editor.is-focused)
     -0:43.9.0 core:move-down (atom-text-editor.editor.is-focused)
     -0:43.5.0 core:move-right (atom-text-editor.editor.is-focused)
  3x -0:43 core:move-left (atom-text-editor.editor.is-focused)
  2x -0:42.2.0 core:move-down (atom-text-editor.editor.is-focused)
  2x -0:40.9.0 core:move-up (atom-text-editor.editor.is-focused)
     -0:32.4.0 core:save (atom-text-editor.editor.is-focused)
  2x -0:26.2.0 ide-flow:check (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)

Config

{
  "core": {
    "customFileTypes": {
      "source.ini": [
        ".buckconfig",
        ".flowconfig"
      ],
      "source.json": [
        ".arcconfig",
        "BUCK.autodeps"
      ],
      "source.python": [
        "BUCK"
      ]
    },
    "disabledPackages": [
      "tree-view"
    ]
  }
}

Installed Packages

# User
atom-beautify, v0.29.7
atom-react-native-autocomplete, v0.0.24
atom-react-native-css, v1.1.0
ide-flow, v0.8.0
language-javascript-jsx, v0.3.7
nuclide, v0.134.0
react, v0.15.0

# Dev
No dev packages
azz0r commented 8 years ago

+1 for having this issue.

TypeError: Bad argument
    at TypeError (native)
    at ChildProcess.spawn (internal/child_process.js:274:26)
    at Object.exports.spawn (child_process.js:351:9)
    at BufferedProcess.module.exports.BufferedProcess.spawn (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:188:44)
    at new BufferedProcess (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:52:14)
    at run (/Users/azz0r/.atom/packages/ide-flow/lib/util-flow-command.coffee:22:27)
    at Object.module.exports.startServer (/Users/azz0r/.atom/packages/ide-flow/lib/util-flow-command.coffee:60:15)
    at Object.module.exports.check (/Users/azz0r/.atom/packages/ide-flow/lib/util-flow-command.coffee:69:45)
    at PluginManager.check (/Users/azz0r/.atom/packages/ide-flow/lib/plugin-manager.coffee:41:21)
    at atom-workspace.<anonymous> (/Users/azz0r/.atom/packages/ide-flow/lib/ide-flow.coffee:12:24)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
    at new EditorControl (/Users/azz0r/.atom/packages/ide-flow/lib/editor-control.coffee:50:19)
    at /Users/azz0r/.atom/packages/ide-flow/lib/plugin-manager.coffee:12:39
    at /Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:307:16
    at /Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:372:18
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at PaneContainer.module.exports.PaneContainer.addedPaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:388:27)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:372:28
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at Pane.module.exports.Pane.addItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:391:20)
    at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:333:14)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:528:18
    at run (/Users/azz0r/.atom/packages/recent-projects/node_modules/babel-polyfill/node_modules/core-js/modules/es6.promise.js:89:22)
    at /Users/azz0r/.atom/packages/recent-projects/node_modules/babel-polyfill/node_modules/core-js/modules/es6.promise.js:102:28
    at flush (/Users/azz0r/.atom/packages/recent-projects/node_modules/babel-polyfill/node_modules/core-js/modules/_microtask.js:14:5)
    at doNTCallback0 (node.js:419:9)
    at process._tickCallback (node.js:348:13)
speedcell4 commented 8 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.9.6 System: Mac OS X 10.11.2 Thrown From: ide-flow package, v0.8.0

Stack Trace

Uncaught TypeError: Bad argument

At /Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:262

TypeError: Bad argument
    at TypeError (native)
    at ChildProcess.spawn (internal/child_process.js:278:26)
    at Object.exports.spawn (child_process.js:379:9)
    at BufferedProcess.module.exports.BufferedProcess.spawn (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:190:44)
    at new BufferedProcess (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:52:14)
    at run (/Users/lambdell/.atom/packages/ide-flow/lib/util-flow-command.coffee:22:27)
    at Object.module.exports.startServer (/Users/lambdell/.atom/packages/ide-flow/lib/util-flow-command.coffee:60:15)
    at Object.module.exports.check (/Users/lambdell/.atom/packages/ide-flow/lib/util-flow-command.coffee:69:45)
    at PluginManager.check (/Users/lambdell/.atom/packages/ide-flow/lib/plugin-manager.coffee:41:21)
    at atom-workspace.<anonymous> (/Users/lambdell/.atom/packages/ide-flow/lib/ide-flow.coffee:12:24)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
    at /Users/lambdell/.atom/packages/ide-flow/lib/editor-control.coffee:31:23
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1135:27)
    at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1105:19)
    at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:743:26)
    at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:734:18)
    at Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:3:61)
    at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:717:19)
    at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:690:35)
    at atom-workspace.commandRegistry.add.core:save (/Applications/Atom.app/Contents/Resources/app.asar/src/register-default-commands.js:220:32)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -5:34.2.0 snippets:next-tab-stop (atom-text-editor.editor.is-focused)
     -5:34.2.0 snippets:expand (atom-text-editor.editor.is-focused)
     -5:34.2.0 editor:indent (atom-text-editor.editor.is-focused)
  2x -5:33.3.0 core:backspace (atom-text-editor.editor.is-focused)
     -4:35.8.0 core:select-all (atom-text-editor.editor.mini.is-focused)
     -4:34.3.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -4:33.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -2:38.6.0 application:new-file (atom-text-editor.editor.is-focused)
     -2:37.9.0 core:save (atom-text-editor.editor.is-focused)
  3x -2:29.7.0 core:backspace (atom-text-editor.editor.is-focused)
     -2:27 emmet:toggle-comment (atom-text-editor.editor.is-focused)
     -2:27 editor:toggle-line-comments (atom-text-editor.editor.is-focused)
  4x -2:26.6.0 ide-flow:check (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-atom-dark-syntax.theme-atom-dark-ui.ide-haskell)
  2x -2:26.3.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:00.1.0 core:save (atom-text-editor.editor.is-focused)
     -0:00.0 ide-flow:check (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-atom-dark-syntax.theme-atom-dark-ui.ide-haskell)

Config

{
  "core": {
    "disabledPackages": [
      "ide-haskell-hasktags"
    ],
    "packagesWithKeymapsDisabled": [
      "ide-haskell"
    ],
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  }
}

Installed Packages

# User
autocomplete-clang, v0.9.4 (active)
autocomplete-cmake, v0.3.1 (active)
autocomplete-haskell, v0.6.5 (active)
build-cmake, v0.6.3 (active)
clang-format, v1.25.0 (active)
emmet, v2.4.3 (active)
haskell-ghc-mod, v1.16.0 (active)
ide-flow, v0.8.0 (active)
ide-haskell, v1.6.6 (active)
ide-haskell-hasktags, v0.0.4 (inactive)
ide-haskell-repl, v0.0.23 (active)
language-cmake, v0.2.0 (active)
language-haskell, v1.7.18 (active)
language-rust, v0.4.6 (active)
language-vue, v0.15.0 (active)
racer, v0.20.0 (active)
rustfmt, v0.1.3 (active)
script, v3.8.3 (active)
atom-dark-syntax, v0.27.0 (active)
atom-dark-ui, v0.51.0 (active)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.43.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.3.2 (inactive)
one-light-ui, v1.3.2 (inactive)
one-dark-syntax, v1.2.0 (inactive)
one-light-syntax, v1.2.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.2 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.0 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.0 (active)
bookmarks, v0.41.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (active)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.38.3 (active)
fuzzy-finder, v1.3.0 (active)
git-diff, v1.1.0 (active)
find-and-replace, v0.198.0 (inactive)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (active)
image-view, v0.58.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v0.53.1 (active)
notifications, v0.64.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.238.0 (active)
snippets, v1.0.2 (active)
spell-check, v0.67.1 (active)
status-bar, v1.4.1 (active)
styleguide, v0.46.0 (active)
symbols-view, v0.113.0 (inactive)
tabs, v0.98.0 (active)
timecop, v0.33.1 (active)
tree-view, v0.208.0 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.34.0 (active)
whitespace, v0.32.2 (active)
wrap-guide, v0.38.1 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.0 (active)
language-csharp, v0.12.1 (active)
language-css, v0.36.2 (active)
language-gfm, v0.86.0 (active)
language-git, v0.13.0 (active)
language-go, v0.42.0 (active)
language-html, v0.44.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.22.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.0 (active)
language-less, v0.29.3 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.0 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.68.5 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.52.0 (active)
language-shellscript, v0.22.3 (active)
language-source, v0.9.0 (active)
language-sql, v0.21.1 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.8 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages
odemolliens commented 7 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.11.2 Electron Version: 0.37.8 System: Mac OS X 10.11.6 Thrown From: ide-flow package, v0.8.0

Stack Trace

Uncaught TypeError: Bad argument

At /Users/distiller/atom/out/app/src/buffered-process.coffee:262

TypeError: Bad argument
    at TypeError (native)
    at ChildProcess.spawn (internal/child_process.js:278:26)
    at Object.exports.spawn (child_process.js:379:9)
    at BufferedProcess.module.exports.BufferedProcess.spawn (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:190:44)
    at new BufferedProcess (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:52:14)
    at run (/Users/demollol/.atom/packages/ide-flow/lib/util-flow-command.coffee:22:27)
    at Object.module.exports.startServer (/Users/demollol/.atom/packages/ide-flow/lib/util-flow-command.coffee:60:15)
    at Object.module.exports.check (/Users/demollol/.atom/packages/ide-flow/lib/util-flow-command.coffee:69:45)
    at PluginManager.check (/Users/demollol/.atom/packages/ide-flow/lib/plugin-manager.coffee:41:21)
    at atom-workspace.<anonymous> (/Users/demollol/.atom/packages/ide-flow/lib/ide-flow.coffee:12:24)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
    at new EditorControl (/Users/demollol/.atom/packages/ide-flow/lib/editor-control.coffee:50:19)
    at /Users/demollol/.atom/packages/ide-flow/lib/plugin-manager.coffee:12:39
    at /Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:335:16
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:129:28)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:269:34
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:129:28)
    at PaneContainer.module.exports.PaneContainer.addedPaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:388:27)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:372:28
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:129:28)
    at Pane.module.exports.Pane.addItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:491:20)
    at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:434:14)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:546:18
    at process._tickCallback (internal/process/next_tick.js:103:7)

Commands

     -0:44 core:copy (atom-notification.info.icon.icon-info.native-key-bindings.has-close.has-description.has-buttons)
     -0:00.2.0 ide-flow:check (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)

Config

{
  "core": {
    "customFileTypes": {
      "source.ini": [
        ".buckconfig",
        ".hgrc",
        ".flowconfig"
      ],
      "source.json": [
        ".arcconfig",
        "BUCK.autodeps"
      ],
      "source.python": [
        "BUCK"
      ]
    },
    "disabledPackages": [
      "tree-view"
    ],
    "telemetryConsent": "limited"
  }
}

Installed Packages

# User
atom-react-native-css, v1.1.3 (active)
atom-react-preview, v2.0.0 (active)
ide-flow, v0.8.0 (active)
nuclide, v0.177.0 (active)
react, v0.16.1 (active)
react-native-snippets, v0.3.0 (active)
react-snippets, v0.5.0 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.44.0 (inactive)
base16-tomorrow-dark-theme, v1.2.0 (inactive)
base16-tomorrow-light-theme, v1.2.0 (inactive)
one-dark-ui, v1.6.0 (active)
one-light-ui, v1.6.0 (inactive)
one-dark-syntax, v1.3.0 (active)
one-light-syntax, v1.3.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.7.0 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.2 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.1 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.42.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.40.0 (active)
find-and-replace, v0.201.1 (inactive)
fuzzy-finder, v1.4.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.2 (active)
image-view, v0.59.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v1.0.0 (active)
notifications, v0.65.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.242.2-hotfix1 (active)
snippets, v1.0.2 (active)
spell-check, v0.68.2 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.0 (active)
symbols-view, v0.113.1 (inactive)
tabs, v0.101.0 (active)
timecop, v0.33.2 (active)
tree-view, v0.209.3 (inactive)
update-package-dependencies, v0.10.0 (active)
welcome, v0.35.1 (active)
whitespace, v0.33.0 (active)
wrap-guide, v0.38.2 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.2 (active)
language-csharp, v0.12.1 (active)
language-css, v0.37.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.42.1 (active)
language-html, v0.45.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.23.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.2 (active)
language-less, v0.29.5 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.2 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.69.0 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.56.0 (active)
language-shellscript, v0.22.4 (active)
language-source, v0.9.0 (active)
language-sql, v0.23.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.9 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages