Atom: Icons Not Showing on Mac

Created on 9 Aug 2016  路  20Comments  路  Source: file-icons/atom

I鈥檓 currently syncing my .atom folder between a Mac and a Windows PC using Dropbox. The icons display as expected on the Windows PC, but on the Mac almost all the icons display as empty boxes. I鈥檝e tried reinstalling the package and restarting Atom, but the issue persists. I鈥檝e included some screenshots to illustrate the problem.

atom-file-icons-defect-1
atom-file-icons-defect-2

inconclusive unconfirmed-bug

Most helpful comment

Okay, I tried brute force and found out what causes icons to disappear for me.

(De)activating "js-refactor" I can reproduce the issue.
There is already an issue over at hax/js-refactor#16

All 20 comments

Are there any network/load errors when you open the developer tools?

I can tell at a glance the icon font isn't loading correctly.

Actually... _none_ of the icon fonts are loading except Octicons. :| What exactly are you syncing? The _entire_ .atom user directory?

If so, it might be because your compile-cache is being shared with foreign path separators (I'm guessing).

I have the same issue. It started a week or so ago. Usually setting another theme or disabling and then enabling file-icons solves this for the current session.

What version of Mac are you running, guys?

I'm running Mavericks and haven't experienced any such issues...

screen shot 2016-08-09 at 11 05 07

I am running El Capitan. But this issue did not appear with an update if that helps. It also seems that after a very long time (several minutes) the icons appear on their own.

FWIW Timecop says file-icons took 18ms to load and added an overall 53ms to the startup time. However that does not explain the long time it takes for the icons to appear.

The hell. Can you PasteBin me the output of apm list...?

There you go: (apm list output)[http://pastebin.com/ysnYeTDf)

... erm, I did say PasteBin, but massive lists are cool too, I guess.

I'll have a look into this, cheers.

oops, sorry my bad I stopped kind of missed the bin in pastebin.

@nerdgore When this happens, what CSS properties are being applied to the icons? Are there any from this package? If you kick the dev tools open, you should see something like this when you inspect an icon in the tree-view:

Figure 1

Also, which themes do you have enabled when this happens? (Just trying to get as much info together as possible here)

Just checked the network tab in Chrome and found this little nugget.
atom-file-icons-defect-3

I鈥檓 currently running OS X 10.11.6, and I鈥檓 syncing the entire .atom folder via Dropbox. Also I haven鈥檛 noticed the problem go away even if I toggle themes or leave Atom open for an extended period.

What the... can you try this?

  1. Open styles/fonts.less in the downloaded package's directory
  2. Replace format("woff") with format(woff2)
  3. Quit and restart Atom

Does that make a difference?

Okay, I tried brute force and found out what causes icons to disappear for me.

(De)activating "js-refactor" I can reproduce the issue.
There is already an issue over at hax/js-refactor#16

Perfect, now we're getting somewhere.

Installing that package now, I'll see if I can reproduce this.

EDIT: Nope, still nothing. :S

In my case having js-refactor enabled is cancelling all requests to *.woff files. So it seems to be an issue with loading rather than styling. And that issue seems to be with another package.

screen shot 2016-08-10 at 17 42 22

Not just woff files, it's cancelling requests to a lot of stuff. :| It's also blocked octicons.woff (which is supplied by Atom as a core resource) and also the metric collection requests Atom makes when collecting analytics.

This seems to be a pretty nasty issue with the js-refactor package, or something. You'd best file an issue there.

@diminutivesloop Does the network tab give you any insights if you click or hover on the font's entry? Nothing about _why_ the resource wasn't loaded?

If that tells you nothing, what about the Resources tab?
Figure 1

Looks like the issue is fixed for me after updating to Atom 1.9.8.

Hrm, strange... :S

Well, if it pops up again, feel free to open another issue.

Was this page helpful?
0 / 5 - 0 ratings