ghc.nix icon indicating copy to clipboard operation
ghc.nix copied to clipboard

Default `withDocs=true` sets `FONTCONFIG_FILE`, makes `code .` not find my font

Open sgraf812 opened this issue 4 years ago • 3 comments

If I open VS Code in a ghc.nix shell via nix-shell ghc.nix --run "code .", the font is broken. That's because $FONTCONFIG_FILE is set for building docs. Ideally, I would like it not having to (unset FONTCONFIG_FILE; code .). Is there maybe another way to support both opening VS Code and building the docs?

sgraf812 avatar May 29 '20 15:05 sgraf812

Hey @sgraf812 ,

Have you tried to open VSCode outside of the ghc.nix environment and use the Nix Environment Selector plugin instead to load ghc.nix?

This works fine for me.

supersven avatar Feb 19 '22 14:02 supersven

@supersven's suggestion sounds like the right approach to me. @sgraf812, if this works for you could you open an MR to mention this in the readme?

bgamari avatar Feb 21 '22 23:02 bgamari

Unfortunately, I'm not using VS Code at the moment, so I can't tell for sure. But it seems plausible that the suggestion will work.

sgraf812 avatar Mar 08 '22 17:03 sgraf812