-
Notifications
You must be signed in to change notification settings - Fork 251
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
Atom 1.24.0 odd behavior #704
Comments
Did you just upgrade to Atom 1.24.0? I just did and now all my Elisp file icons are showing up as Lisp file icons. |
Yep, 1.24.0 |
It seems Atom 1.24.0 broke File Icons. |
Nothing changed recently in this package, no. It seems there's been a regression in Atom's code. 😕 Sigh... I'll investigate once I'm back at a computer. |
Some more investigation: Disabling and re-enabling the package show the correct icons. As soon as the file is opened the icon changes back to the wrong one. |
I am experiencing similar issues with .js files on updating to atom 1.24.0. Icons show correctly until I open the file, then both *.js and *.spec.js files change to a blue jsx icon. Upon uninstalling and reinstalling, the icons maintain the erroneous changes described above. previously selected files maintain a jsx icon, and unselected files have appropriate icons. |
Same issue. When I open .js files the icon changes from orange JS icon to blue JSX icon. When I disable and reenable file-icon the icon remains the same. Using Atom v1.24.0 |
Right, this is happening because Previously, So, yeah... definitely a regression in Atom's code, but I'm not sure how to fix this without breaking existing functionality. 😞 |
As a temporary workaround, you can disable the grammar strategy in the The package relied on @JosephTLyons You might wish to install this. 😉 |
@Alhadis woah, I've been looking for a package that does this specifically for awhile now! Going to give it a shot. Thanks! May I make a suggestion? I completely missed this package when searching for "Emacs" or "Elisp," it never showed up in searches. Not sure what your search keywords are, but I'm certain many others have missed it as well. |
Atom v1.24.0 Definitely seems like an Atom bug -- my Atom is auto detecting all my JavaScript files as "JavaScript with JSX" and the file icons change to blue jsx even though there's no jsx. |
Alright guys, this has been fixed upstream in
That's... really weird, because both For those curious about what was going onThe package's config file defines a That's what's been happening in Atom 1.24: an API method which previously returned nothing for a file without an overridden grammar was incorrectly reporting an override. So the package was behaving as though you had assigned the JS grammar manually to each file (and if you were to do so, you'd see the same effect). |
Weird. I didn't do anything (as in I didn't implement the workaround you mentioned) and my file icons are now correct. I did nothing since it was broken by Atom 1.24.0 and all-of-the-sudden, they came back and are working as expected. |
@JosephTLyons Are you referring to your Elisp files now showing the usual Emacs icon? If so, that'll be because you installed the That was how I knew you didn't have my Elisp package installed 😉 (and partly also why I recommended it). |
@Alhadis , jeez. You are correct. I disabled |
Less Java, more Lisp. 😆 |
Guys, once I finish repairing the package's test-suite, I'm gonna roll a patch release that disables the grammar-strategy automatically for Atom 1.24.0 users (and only that version). I've closed the fourth duplicate report just now, and I shudder to think how many people are getting confused by this who aren't checking GitHub to see what's going on. Which means that after you download/install the next |
@Alhadis , sounds excellent! Thank you for going the extra mile to automate that process for others. Any sort of ballpark ETA for this? BTW, I read your style guidelines, just for fun, and enjoyed the humor sprinkled throughout. |
Well the package specs are about 80-90% repaired. Probably in the next couple of days, I assume. :)
Haha, thank you. 😉 It was lighthearted because I wrote it while high on energy drinks. Make no mistake though, the underlying message is dead serious. |
Everybody here should also gloss through them and admire my If anybody has noticed the way I line-wrap every fucking Git commit message I write too, this should come as no surprise. I've spent too many years writing neatly-formatted commits, now it's second-nature to me. I can't tell if I should be proud or embarrassed. |
@Alhadis , absolutely. No I could 100% tell from your tone that you meant business about your particular style, but I also enjoyed how it was written. |
Also, I'm a bit blown away by the perfectly consistent use of 80 columns with no padding. I'm not even sure how that could work for every sentence without doing some sort of additional tweaks on words and such, but somehow, you have seem to have pulled it off. Looks very clean. |
Maybe I'm not doing something correctly, so disregard this if I missed an instruction somewhere... Not sure if this matters or not at this point, but I disabled "Change on Grammar Override" and it only changed the icons for the files that were currently open. Opening a new file (with an incorrect file icon displaying) after the "Change on Grammar Override" setting is disabled does nothing for me. Reloading Atom or just closing and opening it also didn't do anything. I know you've written code to handle this bug for the next version of |
Did you remember to clear your cached paths? If not, that'll be handled automatically too. I've bumped the internal version counter in the |
Ahhh yes, clearing the cache via |
I downloaded the newest update and reenabled the grammar option and all seems to be working correctly. Files are displaying correctly no matter which way I set the setting. Very nice work and appreciate the fast fix. |
As I was opening files the icons changed back to the default JS icon. They were showing the js test icon. Is that something that's changed recently? Maybe latest atom broke something.
The text was updated successfully, but these errors were encountered: