goto
goto copied to clipboard
Uncaught Error: "toString()" failed
Heya! I just installed the goto package and updated atom to 1.18 as well!
- I changed the keystroke for jumping to declaration by editing the keymap.cson. I also copied-pasted the other two keystrokes, in order to disable the option in the goto package.
'cmd-r': 'goto:file-symbol'
'shift-cmd-R': 'goto:project-symbol'
'cmd-t': 'goto:declaration'```
2. I typed `cmd-t` and got this error message.
**Atom**: 1.18.0 x64
**Electron**: 1.3.15
**OS**: Mac OS X 10.12.5
**Thrown From**: [goto](https://github.com/v3ss0n/goto) package 1.8.3
### Stack Trace
Uncaught Error: "toString()" failed
At buffer.js:503
Error: "toString()" failed
at Buffer.toString (buffer.js:503:11)
at Object.fs.readFileSync (fs.js:552:33)
at Object.fs.readFileSync (ELECTRON_ASAR.js:501:29)
at SymbolIndex.module.exports.SymbolIndex.processFile (/packages/goto/lib/symbol-index.coffee:154:15)
at /packages/goto/lib/symbol-index.coffee:113:24
at traverse (/packages/goto/node_modules/fs-plus/lib/fs-plus.js:419:13)
at Object.traverseTreeSync (/packages/goto/node_modules/fs-plus/lib/fs-plus.js:424:14)
at SymbolIndex.module.exports.SymbolIndex.rebuild (/packages/goto/lib/symbol-index.coffee:111:10)
at SymbolIndex.module.exports.SymbolIndex.update (/packages/goto/lib/symbol-index.coffee:103:8)
at SymbolIndex.module.exports.SymbolIndex.gotoDeclaration (/packages/goto/lib/symbol-index.coffee:127:6)
at Object.gotoDeclaration (/packages/goto/lib/index.coffee:44:22)
at /packages/goto/lib/index.coffee:30:31)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:265:35)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:65
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:610:22)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:401:28)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:100:42)
at HTMLDocument.
### Commands
-0:30 core:close (input.hidden-input)
-0:27.2.0 application:open (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-0:22.3.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-0:12.8.0 goto:file-symbol (input.hidden-input)
-0:12.7.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-0:09.1.0 goto:declaration (input.hidden-input)
### Non-Core Packages
atom-elixir 0.2.3 file-icons 2.1.7 git-blame 1.1.1 goto 1.8.3 language-api-blueprint 1.0.2 language-elixir 0.19.0 language-elm 1.5.0 language-gherkin 1.0.4