lukehoban / atom-ide-flow

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

Uncaught TypeError: Cannot read property 'toString' of null #13

Closed dzNavitski closed 9 years ago

dzNavitski commented 9 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.179.0 System: Unknown Windows Version Thrown From: ide-flow package, v0.1.0

Stack Trace

Uncaught TypeError: Cannot read property 'toString' of null

At /c:/Users/Dzmitry/.atom/packages/ide-flow/lib/util-flow-command.coffee:13

TypeError: Cannot read property 'toString' of null
  at getFlowCommand (C:\Users\Dzmitry\.atom\packages\ide-flow\lib\util-flow-command.coffee:8:55)
  at run (C:\Users\Dzmitry\.atom\packages\ide-flow\lib\util-flow-command.coffee:19:14)
  at Object.module.exports.typeAtPos (C:\Users\Dzmitry\.atom\packages\ide-flow\lib\util-flow-command.coffee:73:5)
  at PluginManager.typeAtPos (C:\Users\Dzmitry\.atom\packages\ide-flow\lib\plugin-manager.coffee:72:21)
  at EditorControl.showExpressionType (C:\Users\Dzmitry\.atom\packages\ide-flow\lib\editor-control.coffee:88:14)
  at C:\Users\Dzmitry\.atom\packages\ide-flow\lib\editor-control.coffee:34:10

Commands

Config

{
  "core": {
    "excludeVcsIgnoredPaths": false,
    "disabledPackages": [
      "language-c",
      "language-gfm",
      "language-java",
      "language-objective-c"
    ],
    "themes": [
      "spacegray-dark-ui",
      "base16-tomorrow-dark-theme"
    ]
  },
  "ide-flow": {}
}

Installed Packages

# User
atom-jshint, v1.5.0
Atom-Syntax-highlighting-for-Sass, v0.5.0
autocomplete-paths, v1.0.2
autocomplete-plus, v2.1.6
bezier-curve-editor, v0.6.5
color-picker, v1.4.4
compass, v0.7.5
css-snippets, v0.5.0
emmet, v2.3.3
file-icons, v1.4.10
file-type-icons, v0.5.4
filetype-color, v0.1.3
htmlhint, v1.0.1
ide-flow, v0.1.0
javascript-snippets, v1.0.0
jsformat, v0.7.18
lambda-snippets, v0.2.1
language-css-plus, v0.3.0
language-javascript-better, v0.7.2
language-javascript-semantic, v0.1.0
language-javascript-subtlegradient, v0.1.0
language-SCSS, v0.2.0
linter, v0.11.1
linter-scss-lint, v0.0.11
minimap, v4.1.4
sassbeautify, v0.2.0
ScssBundle, v0.4.0
spacegray-dark-ui, v0.6.0

# Dev
No dev packages
lukehoban commented 9 years ago

Fixed with c4b4ead.