Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    xeijin
    @xeijin
    Guess I'll just create a separate repo then. Thanks @r15ch13
    xeijin
    @xeijin
    @r15ch13 scoop doesn't seem to be able to find a version number, even though I've tried multiple variations on a very simple regex
        "checkver": {
            "url": "https://www.listary.com/text-editor-anywhere",
            "re": "2\\.01"
    Even that literal regex gives me couldn't find new version in https://www.listary.com/text-editor-anywhere
    I get the feeling maybe scoop is not parsing the downloaded page properly? If I put in just a generic regex for a version number it seems to pick up the versions of a couple of javascript libraries that page is loading?
    xeijin
    @xeijin
    Nevermind, dumb mistake, had forgotten you need to escape a forward slash in regex, and then the subsequent escape of the backslash as its json...
        "checkver": {
            "url": "https://www.listary.com/text-editor-anywhere",
            "re": "<strong>Current Version:<\\/strong> ([\\d.]+)"
        },
    that works fine now
    2nd lesson for me: always use the HTML source when checking if your regex works, not just a copy and paste of the parsed HTML from the page :)
    Richard Kuhnt
    @r15ch13
    @xeijin
    always copy the HTML source to https://regex101.com/ and then create your regex :D
    xeijin
    @xeijin
    @r15ch13 yup that’s what I was doing, except I was pasting in the parsed html straight from the page instead of the source :smile:
    Has anyone used scoop with a cloud-hosted CI like AppVeyor before?
    My scoop install scripts work fine on my local machine
    *scoop install commands
    Installing 'rawgraphs-p' (1.3.0) [64bit]
    110Downloading https://github.com/densitydesign/raw/archive/v1.3.0.zip (-1 B)...
    111
    112Checking hash of v1.3.0.zip... ok.
    113Extracting... done.
    114Running pre-install script...
    115Linking ~\scoop\apps\rawgraphs-p\current => ~\scoop\apps\rawgraphs-p\1.3.0
    116Creating shortcut for propositum\RAWGraphs (RAWGraphs.bat)
    117Running post-install script...
    118yarn add v1.9.2
    119info No lockfile found.
    120[1/4] Resolving packages...
    121The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: warning bower@1.8.4: We don't recommend
    But on AppVeyor I get these kinds of errors
    Setting $errorActionPreference or using -ErrorAction with silentlyContinue unfortunately doesn’t seem to have any effect, whether I do it in the script or as part of the install command
    xeijin
    @xeijin
    Wondering if scoop is using separate ps1 scripts to actually perform the installation, and therefore not passing on the value of the variable?
    Richard Kuhnt
    @r15ch13
    @xeijin take a look at this .appveyor.yml
    It's important to run every scoop command with ps: and set $ErrorActionPreference to Continue
    Mathias Hermansson
    @se35710
    @r15ch13 Check hash is running twice on every install/update since the aria2 PR, feature or bug?
    Richard Kuhnt
    @r15ch13
    @se35710 definitly a bug :D
    Richard Kuhnt
    @r15ch13
    And fixed
    xeijin
    @xeijin
    @r15ch13 I am doing this, albeit in a .ps1 script, rather than appveyor.yml
    Unfortunately this value doesn't seem to persist beyond the initial command in Appveyor, it's the subsequent commands inside the scoop manifest that don't seem to receive the value set in the script for $ErrorActionPreference
    I have no idea why this happens on AppVeyor but not on my local machine
    The only way I can get around it is by setting $ErrorActionPreference before commands which call another command in the scoop app manifest, which is a pretty clunky way to do it (particularly if I DO want a script terminate with an error)
    Nick Budidharma
    @nickbudi
    @r15ch13 this seems to be related to the recent aria2 changes? lukesampson/scoop#2474
    xeijin
    @xeijin
    I found the issue I'm running into with AppVeyor: the scoop install.ps1script is setting $errorActionPreference = 'Stop', though I'm still not sure why AppVeyor is not discarding this value when the script is run like a local powershell instance would.
    xeijin
    @xeijin
    Guessing it may have something to do with AppVeyor executing scripts as remote jobs on the VM (rather than directly on the VM)
    I've submitted #2489 to restore the old value of $errorActionPreference
    Tres Finocchiaro
    @tresf
    Ugh... $errorActionPreference is the bane of my existence with PowerShell. Microsoft needs to provide better warning behavior or add exception handling. I have a mysql script that echos to stderr a benign warning and have to make a rube-goldberg ignore, parse and re-throw.
    </rant> :D
    Jan T. Sott
    @idleberg
    hey guys. two PRs led to creating my own scoop bucket. now, i wonder. it sounds like scoop isnt meant to serve as a tool to install plugins for an application?
    scoop install my-app installs to %userprofile\scoop\my-app, so it looks like i can't install a plugin to %userprofile\scoop\my-app\plugins\my-plugin, right?
    Chawye Hsu
    @chawyehsu
    scoop cannot manage the plugins, you should use the app to manage its plugins and persist the plugins directory.
    Jan T. Sott
    @idleberg
    unfortunately, the app cannot manage plugins, but thank you
    the app sets an env var, so i wonder if an installed plugin could use post_install to create a junction to the plugins folder
    Richard Kuhnt
    @r15ch13
    @idleberg you could use a installer/uninstaller script to create and remove the junction (or copy/remove files)
    Jan T. Sott
    @idleberg
    i'll look into it
    Bruno Vieira
    @brunovieira97
    Hey, guys! I'm trying to install Lynx browser via Scoop, but it keeps being identified as error during install (it asks for 32bit OpenSSL while I have the 64bit installed). How to deal with this kind of situations when using Scoop? I managed to get the 32bit OpenSSL dlls for Lynx exlusively (pasting them on it's root directory), but Scoop still tells me Lynx has an install error...
    Richard Kuhnt
    @r15ch13
    @brunovieira97 lynx copies some dlls from the installed openssl version over
    reinstall openssl via scoop install openssh -a 32 install lynx, and then reinstall openssl normally to get the 64bit version back
    Bruno Vieira
    @brunovieira97
    @r15ch13 got it. Pretty simple, actually. Thanks!
    Sam Garfinkel
    @sgarfinkel
    @r15ch13 That should be added as a note or as a dependency, no?
    Nick Budidharma
    @nickbudi
    Should app manifests also handle uninstalling files put in %appdata%?
    Richard Kuhnt
    @r15ch13
    @nickbudi most files in %appdata% are configuration stuff, we tend to not mess with the users settings :)