KunihikoKido / atom-elasticsearch-client

elasticsearch-client
https://atom.io/packages/elasticsearch-client
MIT License
31 stars 3 forks source link

Uncaught TypeError: Cannot read property 'split' of undefined #2

Closed KunihikoKido closed 9 years ago

KunihikoKido commented 9 years ago

[Enter steps to reproduce below:]

  1. run Elasticsearch Client: ...

Atom Version: 0.209.0 System: Mac OS X 10.10.3 Thrown From: elasticsearch-client package, v0.2.0

Stack Trace

Uncaught TypeError: Cannot read property 'split' of undefined

At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:128

TypeError: Cannot read property 'split' of undefined
  at Function.module.exports.Range.fromText (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/range.js:49:19)
  at TextBuffer.module.exports.TextBuffer.setTextInRange (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:533:24)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:518:26
  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:740:18)
  at TextBuffer.module.exports.TextBuffer.setTextInRange (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:516:21)
  at TextBuffer.module.exports.TextBuffer.setText (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:453:19)
  at TextEditor.module.exports.TextEditor.setText (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:707:26)
  at /Users/kunihiko/.atom/packages/elasticsearch-client/lib/elasticsearch-client-view.coffee:58:14
  at _fulfilled (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:794:54)
  at self.promiseDispatch.done (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:823:30)
  at Promise.promise.promiseDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:756:13)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:564:44
  at flush (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:110:17)
  at process._tickCallback (node.js:357:13)

Commands

     -1:46.4.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -1:44.1.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -1:44.1.0 settings-view:open (atom-text-editor.editor)
     -1:27.5.0 command-palette:toggle (atom-text-editor.editor.mini.is-focused)
 11x -1:24.3.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -1:22.7.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -1:22.7.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -1:16.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)
 14x -0:37.5.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -0:02.4.0 elasticsearch-client:search-request-body-search (div.settings-view.pane-item)

Config

{
  "core": {},
  "elasticsearch-client": {}
}

Installed Packages

# User
elasticsearch-client, v0.2.0

# Dev
No dev packages