-
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
Wrong icons and cannot open file #778
Comments
Hey @kevinlieser, Could you give me a list of packages you have installed? Just copy the output of Are there any error diagnostics being logged to the devtools console when files refuse to open? This is usually indicative that an exception was thrown and uncaught while attempting to open a file tab. |
I have another prob with the dev console – when I open it it crashes Atom and I need to "reload atom" but after that the Icons worked again ;-) Have no Idea why opening the dev console after launching atom crashes. Here is the list of packages. [email protected] |
Wait, it crashes? What happens when you start Atom in dev mode? (command: This actually sounds like a problem with your Atom installation, which you should probably report upstream, not here. Note that a new Atom release was cut recently (v1.35.1), so I recommend you upgrade first. |
Upgraded to 1.35.1 now and opening the dev console do not crash – I will report if the icon bug also solved "itself". Thanks! |
No error messages then? Does everything work fine if you boot in regular (non-dev) mode? |
Yes, at this point. But the problem only occured if I minimized Atom for a period of time and opened it to work again – so just if it was open for a longer time. I will report if any problems occur. |
Okay, this is because Atom's failing to start, indicating a serious error that's far beyond the scope of this package. You need to report this upstream. This can affect |
But the error / crash only occur if I open the dev console – just to be clear :-) |
Either way, it's still bad. There's nothing in the Note that in the above screenshot, two of the package's icons are failing to load. This is either because
Or,
I can't think of what else it might possibly be. |
Okay it do not find But this problem also appears direct after launching atom and open the dev console directly (which do not crash). Okay, have to put an issue on atom issue tracker. |
Why does this URL end with a query string?
Just for the record, you can unpack it using |
I just started seeing this after the most recent update to file-icons (2.1.35). I'm running Atom 1.40.1 on Windows 10 and I'm seeing the same issues reported originally: file icons change sporadically when opening/closing certain directory sub-trees, file icons appear for directories, directory icons appear for files, etc. |
@kaiyoma Okay, that's bad. Is there anything unusual about the filesystem in which the affected files reside? E.g., is it a remote drive (like a network file-share)? Are you using WSL? Also, could you provide a list of packages you have installed? Run |
Nothing unusual about the filesystem: it's a local clone of a git repo on my hard drive (NTFS). Not using WSL; I use the bash shell that comes with git for Windows. The problem seems to affect only really specific files/directories in the tree. There's one file in particular that I can always go to which will trigger this problem.
|
Here's a small video showing the issue: https://imgur.com/a/8keVLuf When the video starts, you can see that |
@kaiyoma After clicking the "folder" which fails to open, do you see any error messages being displayed in the dev-console? |
No, I don't see any warnings or errors. Admittedly, the behavior seems to change slightly every time I open Atom. Now the files are opening, but the file icons randomly change between correct and incorrect. |
I just saw this behavior today while trying to open a file from the Find File (Ctrl + P) widget, not from double-clicking the entry in the sidebar. Again, the file was mis-identified as a directory and so the open process wasn't as smooth as it normally is. I've had to disable this plugin because it's just too buggy. It's too bad, because I really like the icons, but this bug is way too disruptive to my workflow. If this issue gets fixed, I'll start using this plugin again. |
@kaiyoma Try disabling the package's modeline, hashbang, and |
Forgive my ignorance, but how do I do that? Happy to help out here. |
Settings → Packages → Search for |
Great, thanks. Disabled those settings and will rock this for a while and report back. |
I haven't noticed this issue since changing these settings. 👍 |
Evidently I spoke just a bit too soon. I'm now seeing this problem again in a new project and I haven't changed any settings. Back to square one. 😢 |
Found another one today: https://imgur.com/yGhx8z9 Initially, a directory has the wrong icon. When I click on it, the icon changes to the JSON icon, presumably because both files in the directory are JSON files. Anything I can do to help out or gather more information? Problems like this are a bit infuriating, especially since there really isn't any other comparable icon package I can switch to. |
@nszaaa3 Are you running any background tasks, like formatting with Prettier or something? If so, this might be caused by the issue @utkarshgupta137 brought up in #693. I'll prepare a fix, but I've no way of predicting if it'll solve the issue or not. Fingers crossed. 🤞 |
Folks, I was able to reproduce this issue, finally (I think the fact I recently purchased a modern MacBook might've helped). Managed to pinpoint and fix the catalyst, and you should (hopefully) see this infernal issue fixed with the next release. |
I am on macOS running Atom 1.33.1.
When I close the Atom window and open it later for further work (on macOS it is not closed completely) sometimes (sporadically) the file icons are not correct (files have folder icon and some folder have a "document"(?) outline icon) and these files won't open (the files with the folder icon).
Then I need to restart Atom completely and the icons appear correct – but it's annoying – it happens 10 times a day for sure.
Attached two screen with wrong and correct folder icons.
It's just random which folders have this outljne icon – it's not the folders that are "open" even when it looks like this in the screen.
The text was updated successfully, but these errors were encountered: