-
Notifications
You must be signed in to change notification settings - Fork 48
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 'style' of undefined #168
Comments
Hey @edarblanco some steps to reproduce would be cool. |
Oh, my apologies, but apparently I solved the problem precisely today, I deleted the configuration folder of the plugin and to reinstall it everything was perfect, I give the thread as closed, thanks |
I have just had the same issue with Atom v1.14.4 on macOS. To reproduce:
|
This mostly happens to me when I switch between branches. I'll leave files open (in background tabs) that do not exist on another branch, and if I switch back to one of those tabs (manually or just when closing other tabs and they are supposed to come to the foreground) I run into this issue. |
Yep I just got the same issue too [Enter steps to reproduce:]
Atom: 1.15.0 x64 Stack TraceUncaught TypeError: Cannot read property 'style' of undefined
Commands
Non-Core Packages
|
I repro'd this when I renamed a dir and touched files in atom with pathnames that did not exist (after the move). |
When the file does not exist
Which causes linter-js-standard/lib/init.js Line 108 in 60643d8
Which causes linter-js-standard/lib/init.js Line 111 in 60643d8
|
I get this error whenever I checkout a new branch with git. Atom suddenly randomly marks some tabs as unsaved and throws gazillions of these errors. I can't say it happens 100% of the time, but definitely most of the time. I'd be happy to do debugging on my end if needed. |
@ricardofbarros will you please re-open this issue. It is definitely an active bug and there is now explicit steps to reproduce it. |
Now this is my solution, save the atom package list, and remove or save in another location the atom packages configuration, and install with apm install the list of all the packages, for my work, but my problem was one package outdated |
My steps to reproduce:
|
@alancnet Yes, I've frequently gotten that error doing similar actions. But strangely I just tried it and couldn't manage to cause the error. Atom picked up the change immediately. Maybe we're dealing with a sketchy file watcher here? |
I can reproduce the error by deleting a file that Atom currently has open in an inactive tab, then switching to the tab. To eliminate as much unpredictability as possible, here is a command line that will generate the error 100% of the time. touch foo.js && touch bar.js && atom foo.js && sleep 10 && rm foo.js && atom bar.js Now just click back on the tab for foo.js and you'll see the error. At least I do, on Mac OS 10.12.4. |
Create a new file and switch from, then switch to, the new file. Since atom hasn't created the file in the filesystem yet (because it hasn't yet been saved), this error will be thrown |
Got the issue too.... |
I ended up switching to |
come on, when will this be fixed?? |
if i submit a pr would you accept it? |
I'll install from your fork if it doesn't get merged or fixed in some other way. |
This bug is very reproducible when trying to edit JSX files with a .js extension. It makes atom unusable in fact since it pops up every time you try to switch tabs. Uninstalled linter-js-standard and installed prettier |
likewise, switched to prettier |
I have this problem too. |
This will be fixed in an upcoming patch version. |
Released in v3.9.2 🎉 |
[Enter steps to reproduce:]
Atom: 1.14.4 x64
Electron: 1.4.15
OS: "Arch Linux"
Thrown From: linter-js-standard package 3.9.0
Stack Trace
Uncaught TypeError: Cannot read property 'style' of undefined
Commands
Non-Core Packages
The text was updated successfully, but these errors were encountered: