maxbrunsfeld / atom-nrepl

An nrepl client for clojure development in atom
Other
31 stars 8 forks source link

Uncaught TypeError: Cannot read property 'getSelectedBufferRange' of undefined #6

Open xerp opened 9 years ago

xerp commented 9 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.184.0 System: Microsoft Windows 7 Professional Thrown From: nrepl package, v0.0.6

Stack Trace

Uncaught TypeError: Cannot read property 'getSelectedBufferRange' of undefined

At c:\Users\santiago.depedro\.atom\packages\nrepl\lib\code-manager.coffee:22

TypeError: Cannot read property 'getSelectedBufferRange' of undefined
  at currentExpressionRange (C:\Users\santiago.depedro\.atom\packages\nrepl\lib\code-manager.coffee:22:9)
  at CodeManager.module.exports.CodeManager.currentExpressionWithNamespace (C:\Users\santiago.depedro\.atom\packages\nrepl\lib\code-manager.coffee:10:13)
  at Controller.module.exports.Controller.evalCurrentExpression (C:\Users\santiago.depedro\.atom\packages\nrepl\lib\controller.coffee:22:31)
  at atom-workspace.<anonymous> (C:\Users\santiago.depedro\.atom\packages\nrepl\lib\controller.coffee:15:8)
  at atom-workspace.handler (C:\Users\santiago.depedro\Downloads\Atom\resources\app\src\space-pen-extensions.js:115:32)
  at atom-workspace.jQuery.event.dispatch (C:\Users\santiago.depedro\Downloads\Atom\resources\app\node_modules\space-pen\vendor\jquery.js:4681:9)
  at atom-workspace.elemData.handle (C:\Users\santiago.depedro\Downloads\Atom\resources\app\node_modules\space-pen\vendor\jquery.js:4359:46)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\santiago.depedro\Downloads\Atom\resources\app\src\command-registry.js:243:29)
  at C:\Users\santiago.depedro\Downloads\Atom\resources\app\src\command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\santiago.depedro\Downloads\Atom\resources\app\node_modules\atom-keymap\lib\keymap-manager.js:558:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\santiago.depedro\Downloads\Atom\resources\app\node_modules\atom-keymap\lib\keymap-manager.js:396:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (C:\Users\santiago.depedro\Downloads\Atom\resources\app\src\window-event-handler.js:182:20)

Commands

     -5:12.0 editor:newline (atom-text-editor.editor)
     -3:20.4 fuzzy-finder:toggle-file-finder (div.settings-view.pane-item)
  2x -3:17.7 core:move-down (atom-text-editor.editor.mini)
     -3:17.2 core:confirm (atom-text-editor.editor.mini)
     -3:15.2 core:backspace (atom-text-editor.editor)
     -3:14.3 autocomplete-plus:cancel (atom-text-editor.editor)
     -3:13.9 core:move-down (atom-text-editor.editor)
     -3:05.4 core:save (atom-text-editor.editor)
  2x -2:47.7 core:undo (atom-text-editor.editor)
     -2:42.9 core:backspace (atom-text-editor.editor)
     -2:42.3 core:save (atom-text-editor.editor)
     -2:42.0 editor:consolidate-selections (atom-text-editor.editor)
     -2:42.0 core:cancel (atom-text-editor.editor)
     -2:03.8 core:save (atom-text-editor.editor)
     -0:40.6 settings-view:open (ul.list-inline.tab-bar.inset-panel)
     -0:07.2 nrepl:eval (atom-workspace.workspace.scrollbars-visible-always.theme-seti-syntax.theme-monokai.theme-neutron-ui)

Config

{
  "core": {
    "disabledPackages": [
      "command-logger",
      "feedback",
      "release-notes",
      "autocomplete"
    ],
    "themes": [
      "neutron-ui",
      "monokai"
    ]
  }
}

Installed Packages

# User
atom-beautify, v0.21.3
autoclose-html, v0.15.0
autocomplete-paths, v1.0.2
autocomplete-plus, v2.3.0
autocomplete-snippets, v1.0.1
color-picker, v1.4.4
css-color-highlight, v0.3.0
css-snippets, v0.5.0
csslint, v1.0.3
docs-snippets, v0.8.0
highlight-line, v0.10.1
highlight-selected, v0.9.1
html-helper, v0.2.3
html-id-class-snippets, v1.4.1
language-clojure, v0.13.0
linter, v0.12.0
linter-csslint, v0.0.11
linter-phpcs, v0.0.12
minimap, v4.4.0
minimap-find-and-replace, v4.2.0
minimap-highlight-selected, v4.2.0
monokai, v0.12.0
neutron-ui, v0.3.0
nrepl, v0.0.6
open-in-browser, v0.4.2
open-last-project, v0.3.4
open-recent, v2.2.0
script, v2.18.0

# Dev
No dev packages