Java icon indicating copy to clipboard operation
Java copied to clipboard

Could not find 'jbrsdk-17.0.6-windows-x64-b469.82'

Open skcipherhash opened this issue 1 year ago • 0 comments

Bug Report

Package Name: intellij-jbr17-sdk

Current Behaviour

Running scoop install intellij-jbr17-sdk terminates with

WARN  Purging previous failed installation of intellij-jbr17-sdk.
ERROR 'intellij-jbr17-sdk' isn't installed correctly.
Removing older version (17.0.6-b469.82).
'intellij-jbr17-sdk' was uninstalled.
Installing 'intellij-jbr17-sdk' (17.0.6-b469.82) [64bit] from java bucket
Loading jbrsdk-17.0.6-windows-x64-b469.82.tar.gz from cache
Checking hash of jbrsdk-17.0.6-windows-x64-b469.82.tar.gz ... ok.
Extracting jbrsdk-17.0.6-windows-x64-b469.82.tar.gz ... Exception: C:\Users\user\scoop\apps\scoop\current\lib\core.ps1:638
Line |
 638 |          throw "Could not find '$(fname $from)'! (error $($proc.ExitCo …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find 'jbrsdk-17.0.6-windows-x64-b469.82'! (error 16)

Expected Behaviour

intellij-jbr17-sdk to be installed sucessfully.

Additional context/output

-

Possible Solution

Going through issues, I noted https://github.com/ScoopInstaller/Java/issues/421 which has the same error. Manually updating the manifest with

    "extract_to": "tmp",
    "installer": {
        "script": [
            "(Get-ChildItem -Directory \"$dir\\tmp\").FullName | % { Move-Item \"$_\\*\" \"$dir\" }",
            "Remove-Item -Recurse \"$dir\\tmp\""
        ]
    },

did fix it for me. I belive the same applies to all other intellij-jbr* packages.

System details

Windows version: 11

OS architecture: 64bit

PowerShell version:

Major  Minor  Patch  PreReleaseLabel BuildLabel
-----  -----  -----  --------------- ----------
7      3      3

Additional software: -

Scoop Configuration

{
  "last_update": "2023-03-26T07:42:50.7039795+05:30",
  "scoop_branch": "master",
  "scoop_repo": "https://github.com/ScoopInstaller/Scoop"
}

skcipherhash avatar Mar 26 '23 03:03 skcipherhash