Skip to content
This repository was archived by the owner on Sep 21, 2019. It is now read-only.
This repository was archived by the owner on Sep 21, 2019. It is now read-only.

Uncaught TypeError: Cannot read property 'getSymbolAtPoint' of undefined #301

@fdeitylink

Description

@fdeitylink

EDIT: I realized I was editing a Scala file not in src/main/scala and hadn't enabled non-standard directory layouts for Ensime, but uncaught exceptions should be avoided regardless.

Steps to Reproduce

  1. Put my cursor in the middle of println in a call to the method
  2. Pressed the F4 key
  3. Exception occurs

Atom: 1.19.0-beta2 x64
Electron: 1.6.9
OS: Microsoft Windows 10 Pro
Thrown From: Ensime package 0.41.0

Stack Trace

Uncaught TypeError: Cannot read property 'getSymbolAtPoint' of undefined

At C:\Users\brian\.atom\packages\Ensime\lib\features\go-to.coffee:4

TypeError: Cannot read property 'getSymbolAtPoint' of undefined
    at Object.goToTypeAtPoint (/packages/ensime/lib/features/go-to.coffee:4:9)
    at Object.goToDefinitionOfCursor (/packages/ensime/lib/ensime.coffee:320:12)
    at /packages/ensime/lib/ensime.coffee:55:96)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.19.0-beta2/resources/app/src/command-registry.js:265:35)
    at ~/AppData/Local/atom/app-1.19.0-beta2/resources/app/src/command-registry.js:3:65
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.19.0-beta2/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:610:22)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.19.0-beta2/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:401:28)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.19.0-beta2/resources/app/src/window-event-handler.js:100:42)
    at HTMLDocument.<anonymous> (~/AppData/Local/atom/app-1.19.0-beta2/resources/app/src/window-event-handler.js:3:65)

Commands

  2x -0:34.8.0 editor:move-to-beginning-of-word (input.hidden-input)
     -0:34 core:move-left (input.hidden-input)
     -0:33.6.0 intentions:highlight (input.hidden-input)
     -0:33.2.0 command-palette:toggle (input.hidden-input)
  8x -0:30.8.0 core:move-down (input.hidden-input)
  2x -0:28.6.0 core:move-up (input.hidden-input)
     -0:27.9.0 core:confirm (input.hidden-input)
     -0:27.9.0 ensime:typecheck-all (input.hidden-input)
     -0:26.6.0 intentions:highlight (input.hidden-input)
     -0:26.2.0 command-palette:toggle (input.hidden-input)
 15x -0:24.7.0 core:move-down (input.hidden-input)
     -0:11.9.0 editor:consolidate-selections (input.hidden-input)
     -0:11.9.0 core:cancel (input.hidden-input)
     -0:11.7.0 core:move-down (input.hidden-input)
  2x -0:11 core:move-left (input.hidden-input)
     -0:10.3.0 ensime:go-to-definition (input.hidden-input)

Non-Core Packages

atom-clock 0.1.12 
atom-terminal 0.8.0 
block-comment 0.4.3 
browser-plus 0.0.97 
busy-signal 1.4.3 
Ensime 0.41.0 
file-icons 2.1.8 
hyperclick 0.1.1 
intentions 1.1.2 
language-cpp14 0.6.2 
language-kotlin 0.5.0 
language-scala 1.1.8 
line-count 0.5.0 
linter 2.2.0 
linter-gcc 0.7.1 
linter-ui-default 1.6.2 
permanent-delete 0.1.5 
prompt-big-file 0.3.0 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions