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

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

Open
sgraf812 opened this issue May 29, 2020 · 3 comments

Comments

@sgraf812
Copy link
Contributor

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?

@supersven
Copy link
Collaborator

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.

@bgamari
Copy link
Collaborator

bgamari commented Feb 21, 2022

@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?

@sgraf812
Copy link
Contributor Author

sgraf812 commented Mar 8, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants