Skip to content
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

Not a Directory #8

Open
jjspace opened this issue Feb 6, 2020 · 5 comments
Open

Not a Directory #8

jjspace opened this issue Feb 6, 2020 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@jjspace
Copy link

jjspace commented Feb 6, 2020

Font Helper seems to be working correctly and serves the correct files to Figma once I set up the font paths correctly. However when viewing the logs it's full of hundreds of lines of this WARN statement:

1141 [2020-02-06 13:51:22.157342 -05:00] WARN [/home/ruut/.cargo/registry/src/github.com-1ecc6299db9ec823/finder-0.1.5/src/lib.rs:169] Not a directory (os error 20)
  1. it seem to be built with src references to ruut's home directory which obviously doesn't exist on my computer
  2. the error isn't telling me what's "not a directory" so I have no idea how to address the problem. the only directories defined in my /etc/figma-linux/fonthelper config are valid directories with fonts in them.

I'm running on Fedora 29. Let me know any other info I can provide

@ChugunovRoman
Copy link
Collaborator

Thx for log, I'll fix this later

@ChugunovRoman ChugunovRoman self-assigned this Feb 10, 2020
@ChugunovRoman ChugunovRoman added the bug Something isn't working label May 19, 2020
@sixclones
Copy link

Hello,

Some of my fonts doesn't load (everything is well installed, your font-helper service, the fonts etc.). When I check for potentials errors or warnings the only thing that I got is this warn :

[2020-06-26 16:36:57.175850 +02:00] WARN [/home/ruut/.cargo/registry/src/github.com-1ecc6299db9ec823/finder-0.1.5/src/lib.rs:169] Not a directory (os error 20)

Plus some fonts well loaded.

[2020-06-26 16:37:52.353697 +02:00] INFO [src/server.rs:34] Request received. GET /figma/font-file?file=%2Fhome%2Froch%2F.local%2Fshare%2Ffonts%2FBeVietnam-BoldItalic.ttf

@Quest1mc
Copy link

As you can see below I have added the correct folders and the restarted the service ...all seems to be working fine. I go into figma but can find my fonts anywhere. Would you mind pointing me in the right direction with a possible screenshot ?

Screenshot from 2020-11-30 14-42-49

@ChugunovRoman
Copy link
Collaborator

As you can see below I have added the correct folders and the restarted the service ...all seems to be working fine. I go into figma but can find my fonts anywhere. Would you mind pointing me in the right direction with a possible screenshot ?

Screenshot from 2020-11-30 14-42-49

Try replace ~ on full path to home directory

@guiu-rocafort
Copy link

I am having the same issue, and i believe it has nothing to do with the configuration file directories...
My current configuration looks like this:

{
  "port": "18412",
  "directories": [
    "/usr/share/fonts"
  ]
}

The service is correcty initiated,

● fonthelper.service - Font Helper for Figma
     Loaded: loaded (/lib/systemd/system/fonthelper.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2022-06-17 09:38:01 CEST; 15min ago
   Main PID: 22930 (fonthelper)
      Tasks: 9 (limit: 18834)
     Memory: 1.5M
     CGroup: /system.slice/fonthelper.service
             └─22930 /opt/FontHelper/fonthelper

Finally, here are the logs:

[2022-06-17 09:39:27.107214 +02:00] WARN [/home/ruut/.cargo/registry/src/github.com-1ecc6299db9ec823/finder-0.1.5/src/lib.rs:169] Not a directory (os error 20)

If i can provide any additional information to pinpoint the error, let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants