Giter Site home page Giter Site logo

Comments (4)

tan-wei avatar tan-wei commented on May 26, 2024

You can first remove it, then after restart the system, do a fresh install.

from scoop-nerd-fonts.

arielsalvo avatar arielsalvo commented on May 26, 2024

@tan-wei That could work but probably not as you think.
If you take a look at the code for the removal, lines 24 and 25, you'll see that if the files are in use it would just fail silently at removing them.
Then, when you restart the system the files will be released, allowing you to overwrite them with your fresh installation.
The fonts would not really be uninstalled and this would not be any better than restarting the system before attempting to upgrade the fonts.

I mean, there are plenty of workarounds but the package is not working correctly here: at the very least, the error in the installer/remover code should translate in failure to install/remove package and not silently failing and moving on.

from scoop-nerd-fonts.

tan-wei avatar tan-wei commented on May 26, 2024

@abejenaru Got it. Actually, I always use this "workaround" to upgrade fonts :-(, it is not elegant.

from scoop-nerd-fonts.

david-bakin avatar david-bakin commented on May 26, 2024

[Using shovel installer instead of scoop installer ...]

 R:\>shovel update Cascadia-Code imagemagick
 Cascadia-Code: 2108.26 -> 2110.31
 imagemagick: 7.1.0-12 -> 7.1.0-13
 Updating 2 outdated apps:
 Updating 'Cascadia-Code' (2108.26 -> 2110.31) [64bit]
 Downloading new version
 Starting download with aria2 ...
   >>> DOWNLOAD ELIDED <<<
 Download: (OK):download completed.
 Checking hash of CascadiaCode-2110.31.zip ... ok.
 Uninstalling 'Cascadia-Code' (2108.26)
 Running uninstaller script...
 The 'Cascadia-Code' font family has been uninstalled and will not be present after restarting your computer.
 Unlinking ~\scoop\apps\Cascadia-Code\current
 Installing 'Cascadia-Code' (2110.31) [64bit] [nerd-fonts]
 WARN  By installing you accept following license: OFL-1.1 (https://spdx.org/licenses/OFL-1.1.html)
 Loading CascadiaCode-2110.31.zip from cache.
 Extracting CascadiaCode-2110.31.zip ... done.
 Running installer script...
+
-ERROR The requested operation cannot be performed on a file with a user-mapped section open.

from scoop-nerd-fonts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.