Recursive symlink in fonts folder causes precompilation to fail

Aperta
#169 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
julia
Ambito
cli, tooling

Direzione di ricerca

Look for the font loading code in the repository, likely in a file handling font discovery or precompilation. The issue is about handling recursive symlinks in the fonts directory. Start by reproducing the error with a recursive symlink in a test directory. Check how the code traverses directories and add a check to detect and skip recursive symlinks. Verify by running the precompilation tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

help wanted

My ~/.fonts folder contains a relative symlink called fonts, with target fonts. This causes the precompilation of MathTeXEngine to fail, with the following message buried in a torrent of error and warning output.

ERROR: LoadError: InitError: IOError: stat("/home/USERNAME/.fonts/fonts"): too many symbolic links encountered (ELOOP)

When the symlink is removed, compilation succeeds.

I'm not sure how MathTeXEngine should handle recursive symlinks like this, but the current behavior made it very hard to figure out what was going on. Fonts work fine everywhere else in my system, and I only use MathTeXEngine as a dependency of other packages, so it took me a lot of digging to even understand where the problem was coming from.

Platform

Julia: Tested in 1.13.0 and 1.10.0
OS: Ubuntu 24.04

Lingua principale
Julia
Stelle
106
Fork
25
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Kolaru/MathTeXEngine.jl

Tutte le issue di Kolaru/MathTeXEngine.jl

Issue simili

Altre issue su Julia

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.