enturn / brackets-quick-search

Notepad++ style smart highlighting extension for Brackets editor.
36 stars 11 forks source link

Exception in 'cursorActivity' listener on Editor TypeError: undefined is not a function #24

Open miqmago opened 9 years ago

miqmago commented 9 years ago

System: Mac OS X. It kills also search functions (Cmd-F, etc.) Here you are the console logs:

Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper.
    at new jQuery.fn.init (/brackets.js:474:36)
    at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405)
    at _handlerOn (file:///Users/admin/Library/Application%20Support/Brackets/extensions/user/enturn.quick-search/main.js:195:9)
    at file:///Users/admin/Library/Application%20Support/Brackets/extensions/user/enturn.quick-search/main.js:223:21
    at Object.trigger (/utils/EventDispatcher.js:222:40)
    at _notifyActiveEditorChanged (/editor/EditorManager.js:165:17)
    at _handleCurrentFileChange (/editor/EditorManager.js:182:9)
    at Object.trigger (/utils/EventDispatcher.js:222:40)
    at eval (/view/MainViewManager.js:1107:29)
/utils/EventDispatcher.js:224 Exception in 'cursorActivity' listener on Editor TypeError: undefined is not a function TypeError: undefined is not a function
    at _handler (file:///Users/admin/Library/Application%20Support/Brackets/extensions/user/enturn.quick-search/main.js:97:23)
    at Editor.trigger (/utils/EventDispatcher.js:222:40)
    at Array.eval (/editor/Editor.js:947:18)
    at fireCallbacksForOps (/thirdparty/CodeMirror/lib/codemirror.js:2982:65)
    at endOperation (/thirdparty/CodeMirror/lib/codemirror.js:2992:11)
    at eval [as setSelections] (/thirdparty/CodeMirror/lib/codemirror.js:3157:17)
    at eval [as setSelections] (/thirdparty/CodeMirror/lib/codemirror.js:7595:40)
    at Editor.setSelections (/editor/Editor.js:1372:26)
    at Editor.restoreViewState (/editor/Editor.js:1994:18)
    at _restoreEditorViewState (/editor/EditorManager.js:146:20)
miqmago commented 9 years ago

With a breakpoint in line 97:

> _find
> Object {UglifyJS: Object}
    UglifyJS: Object
    __proto__: Object

If brackets-minifier extension is disabled, then it seems to work fine, otherwise it starts to show errors in log console each time a word is selected.