Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

TypeError: Cannot call method 'isEmpty' of undefined #3180

Closed
samuela opened this issue Aug 4, 2014 · 4 comments
Closed

TypeError: Cannot call method 'isEmpty' of undefined #3180

samuela opened this issue Aug 4, 2014 · 4 comments

Comments

@samuela
Copy link

samuela commented Aug 4, 2014

After pressing Ctrl-+ I got the following error:

TypeError: Cannot call method 'isEmpty' of undefined
at BracketMatcherView.module.exports.BracketMatcherView.updateMatch (/usr/local/google/home/skainswo/Atom/resources/app/node_modules/bracket-matcher/lib/bracket-matcher-view.js:160:39)
at /usr/local/google/home/skainswo/Atom/resources/app/node_modules/bracket-matcher/lib/bracket-matcher-view.js:63:24
at /usr/local/google/home/skainswo/Atom/resources/app/src/config.js:220:20
at /usr/local/google/home/skainswo/Atom/resources/app/node_modules/emissary/lib/emitter.js:133:30
at Array.forEach (native)
at Config.module.exports.Emitter.emit (/usr/local/google/home/skainswo/Atom/resources/app/node_modules/emissary/lib/emitter.js:132:47)
at Config.module.exports.Config.loadUserConfig (/usr/local/google/home/skainswo/Atom/resources/app/src/config.js:80:21)
at PathWatcher. (/usr/local/google/home/skainswo/Atom/resources/app/src/config.js:93:26)
at HandleWatcher. (/usr/local/google/home/skainswo/Atom/resources/app/node_modules/pathwatcher/lib/main.js:132:26)
at HandleWatcher.EventEmitter.emit (events.js:112:17)
at HandleWatcher.onEvent (/usr/local/google/home/skainswo/Atom/resources/app/node_modules/pathwatcher/lib/main.js:60:23)
at /usr/local/google/home/skainswo/Atom/resources/app/node_modules/pathwatcher/lib/main.js:20:41
/usr/local/google/home/skainswo/Atom/resources/app/src/config.js:85
module.exports.Config.loadUserConfig

@samuela
Copy link
Author

samuela commented Aug 4, 2014

Actually, that error is also preceeded by two others:

Uncaught TypeError: Cannot call method 'isEmpty' of undefined /usr/local/google/home/skainswo/Atom/resources/app/node_modules/bracket-matcher/lib/bracket-matcher…:160
module.exports.BracketMatcherView.updateMatch /usr/local/google/home/skainswo/Atom/resources/app/node_modules/bracket-matcher/lib/bracket-matcher…:160
(anonymous function) /usr/local/google/home/skainswo/Atom/resources/app/node_modules/bracket-matcher/lib/bracket-matcher…:63
(anonymous function) /usr/local/google/home/skainswo/Atom/resources/app/src/config.js:220
(anonymous function) /usr/local/google/home/skainswo/Atom/resources/app/node_modules/emissary/lib/emitter.js:133
module.exports.Emitter.emit /usr/local/google/home/skainswo/Atom/resources/app/node_modules/emissary/lib/emitter.js:132
module.exports.Config.update /usr/local/google/home/skainswo/Atom/resources/app/src/config.js:243
module.exports.Config.set /usr/local/google/home/skainswo/Atom/resources/app/src/config.js:155
module.exports.Workspace.increaseFontSize /usr/local/google/home/skainswo/Atom/resources/app/src/workspace.js:348
_results.push._this.(anonymous function) /usr/local/google/home/skainswo/Atom/resources/app/node_modules/delegato/lib/delegator.js:67
(anonymous function) /usr/local/google/home/skainswo/Atom/resources/app/src/workspace-view.js:234
jQuery.event.dispatch /usr/local/google/home/skainswo/Atom/resources/app/node_modules/space-pen/vendor/jquery.js:4676
elemData.handle /usr/local/google/home/skainswo/Atom/resources/app/node_modules/space-pen/vendor/jquery.js:4360
module.exports.KeymapManager.dispatchCommandEvent /usr/local/google/home/skainswo/Atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:400
module.exports.KeymapManager.handleKeyboardEvent /usr/local/google/home/skainswo/Atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:181
(anonymous function) /usr/local/google/home/skainswo/Atom/resources/app/src/window-event-handler.js:90
jQuery.event.dispatch /usr/local/google/home/skainswo/Atom/resources/app/node_modules/space-pen/vendor/jquery.js:4676
elemData.handle /usr/local/google/home/skainswo/Atom/resources/app/node_modules/space-pen/vendor/jquery.js:4360

Failed to load user config '/usr/local/google/home/skainswo/.atom/config.cson' Cannot call method 'isEmpty' of undefined /usr/local/google/home/skainswo/Atom/resources/app/src/config.js:84
module.exports.Config.loadUserConfig /usr/local/google/home/skainswo/Atom/resources/app/src/config.js:84
(anonymous function) /usr/local/google/home/skainswo/Atom/resources/app/src/config.js:93
(anonymous function) /usr/local/google/home/skainswo/Atom/resources/app/node_modules/pathwatcher/lib/main.js:132
EventEmitter.emit events.js:112
HandleWatcher.onEvent /usr/local/google/home/skainswo/Atom/resources/app/node_modules/pathwatcher/lib/main.js:60
(anonymous function) /usr/local/google/home/skainswo/Atom/resources/app/node_modules/pathwatcher/lib/main.js:20

@lee-dohm
Copy link
Contributor

lee-dohm commented Aug 5, 2014

Have you followed the suggestions in the Debugging document? Also, could you give the following information?

  • Which version of Atom are you using?
  • What OS and version are you running?
  • Do you have the React editor enabled?
  • Can you reproduce the issue after completely exiting Atom and restarting using atom --safe?

It looks like it is a problem in the bracket-matcher package.

@benogle
Copy link
Contributor

benogle commented Aug 5, 2014

Moved to atom/bracket-matcher#58

@benogle benogle closed this as completed Aug 5, 2014
@lock
Copy link

lock bot commented Jan 25, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Jan 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants