sumo300 / chocolatey-nerd-fonts

Repository for automated creation of Chocolatey packages for Nerd Fonts
MIT License
6 stars 0 forks source link

nerd-fonts-cascadiacode - 2.3.3 - Operation cannot be performed on a file with a user-mapped section open #10

Closed mattcargile closed 1 year ago

mattcargile commented 1 year ago

I ran an choco upgrade all -y on various fonts in this repo. I received this error. Do I need to perform another upgrade in side a command prompt window without any fonts in use? Or should I just restart and it will update?

mattcargile commented 1 year ago

I was playing more with it. I ended up closing all my programs and was able to install the below.

nerd-fonts-ia-writer
nerd-fonts-ubuntumono
nerd-fonts-meslo
nerd-fonts-terminus

I still was getting failures with nerd-fonts-cascadiacode. I tried choco uninstall / choco install as well which still didn't work. I keep getting the below warnings/exceptions.

WARNING: An error occured installing 'C:\ProgramData\chocolatey\lib\nerd-fonts-CascadiaCode\tools\Caskaydia Cove Nerd Font Complete Bold.otf'
WARNING: Exception: The requested operation cannot be performed on a file with a user-mapped section open.

WARNING: The requested operation cannot be performed on a file with a user-mapped section open.

WARNING: An error occured installing 'C:\ProgramData\chocolatey\lib\nerd-fonts-CascadiaCode\tools\Caskaydia Cove Nerd Font Complete Mono Regular.otf'
WARNING: Exception: The requested operation cannot be performed on a file with a user-mapped section open.

WARNING: The requested operation cannot be performed on a file with a user-mapped section open.

WARNING: An error occured installing 'C:\ProgramData\chocolatey\lib\nerd-fonts-CascadiaCode\tools\Caskaydia Cove Nerd Font Complete Mono Windows Compatible Regular.otf'
WARNING: Exception: The requested operation cannot be performed on a file with a user-mapped section open.

WARNING: The requested operation cannot be performed on a file with a user-mapped section open.

WARNING: An error occured installing 'C:\ProgramData\chocolatey\lib\nerd-fonts-CascadiaCode\tools\Caskaydia Cove Nerd Font Complete Regular.otf'
WARNING: Exception: The requested operation cannot be performed on a file with a user-mapped section open.

WARNING: The requested operation cannot be performed on a file with a user-mapped section open.

WARNING: An error occured installing 'C:\ProgramData\chocolatey\lib\nerd-fonts-CascadiaCode\tools\Caskaydia Cove Nerd Font Complete Windows Compatible Regular.otf'
WARNING: Exception: The requested operation cannot be performed on a file with a user-mapped section open.

WARNING: The requested operation cannot be performed on a file with a user-mapped section open.
mattcargile commented 1 year ago

So I had to prevent WindowsTerminal.exe from starting with my session to get it to work. It is fixed now.