-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: Cannot read property 'dispose' of undefined #67
Comments
Because Set.prototype.forEach() can returns undefined, see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/forEach, and this issue: Pulsar-Edit-Highlights/selected#67.
Same here.
|
Ok, so the problem is much complex than I thought, looks like the fix doesn't really work for the first editor opened in a pane (the tab is visible, but the editor content doesn't show up). For the time being, I recommend turning the @richrace Maybe it's time to think of a service for |
That's what I've done |
Hmm, I don't get this in Mac with Atom 0.198.0. Everything seems to be working fine. @abe33 I agree. I'll see what I can do this week. |
Looks like the issue is also triggered when the minimap plugin is disabled: Here's the stack:
For me these lines should be written like this instead: if editor = @getActiveEditor()
@selectionSubscription.add editor.onDidAddSelection =>
@handleSelection()
@selectionSubscription.add editor.onDidChangeSelectionRange =>
@handleSelection() Because in the current version, when the text editor doesn't exist, |
I omitted to give the Atom version: 0.199.0-f1f8c3d (freshly built from master this morning). |
yes , happen to me on 0.199.0-f1f8c3d too , i skipped 197 and 198. |
I am getting this as well OS: Ubuntu 14.04 |
No bug with: Bug reproducibly appears with:
My OS: openSUSE Linux 13.2 (Kernel 3.16.7) |
I'm having trouble too with Atom 0.198.0/highlight-selected 0.9.2 on Arch Linux when I open Atom and click a tab. I've removed highlight-selected and disabled minimap-highlight-selected plugins to work with Atom. |
I've just rolled back package versions and it works fine:
|
Going back to highlight-selected@0.9.1 helped for me too. Must be something changed between 0.9.1 and 0.9.2! |
Yes going back to 0.9.1 fixed it! thank you @YuriSolovyov for discovering that! |
I'm getting this error in Atom |
Also getting this on Atom 0.199, Ubuntu 14.10. |
Get this problem too on Atom 0.199, Windows. |
Got: the file can't open, just the tab shows up. And disable I have tested both Windows 7 and Mac OSX. |
current work around is to downgrade to highlight-select to version 0.9.1 using apm as discovered by
Yuri , can you edit that work around for newcomers in your op ? |
@v3ss0n sure, thanks for the tip |
Works just fine, thanks. |
TEMPORARY WORKAROUND:
$ apm install highlight-selected@0.9.1
Atom Version: 0.199.0-fabfd2a
System: linux 3.13.0-52-generic
Thrown From: highlight-selected package, v0.9.2
Stack Trace
Uncaught TypeError: Cannot read property 'dispose' of undefined
Commands
Config
Installed Packages
The text was updated successfully, but these errors were encountered: