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

[chocolatey-font-helpers.extension] Error for subsequent font installs when using Boxstarter #42

Closed
flcdrg opened this issue Oct 30, 2020 · 4 comments

Comments

@flcdrg
Copy link

flcdrg commented Oct 30, 2020

As mentioned in chocolatey/boxstarter#455, because the current architecture of Boxstarter has a single PowerShell session then if multiple packages try to install fonts then they will fail when the Add-Type cmdlet is called by subsequent installs (as the type already exists then).

A possible mitigation would be either to check if the type already exists, or set an -ErrorAction SilentlyContinue on that call.

@teknowledgist
Copy link
Owner

I think I have something that will work with v0.3 that I just pushed. Let me know either way.

@KZeronimo
Copy link

@teknowledgist check chocolatey/boxstarter#455 - from what I can tell version 0.0.3 appears broken - can you try cinst cascadia-code-nerd-font it was working fine for me earlier today.

@teknowledgist
Copy link
Owner

Totally my fault! I really have no idea what I'm doing in C-sharp or even how to fully test what I've done in C-sharp.

Anyway, I think I fixed it now with version 0.0.3.1 (at least the cascadia-code-nerd-font is installing).

@teknowledgist
Copy link
Owner

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