Code Monkey home page Code Monkey logo

windows-jetbrains-bucket's People

Contributors

ash258 avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

windows-jetbrains-bucket's Issues

[email protected]: hash check failed

scoop install IntelliJ-IDEA-Ultimate

Installing 'IntelliJ-IDEA-Ultimate' (2021.1.3-211.7628.21) [64bit]
ideaIU-2021.1.3.win.zip (893.0 MB) [==========================================================================] 100%
Checking hash of ideaIU-2021.1.3.win.zip ... ERROR Hash check failed!
App: jetbrains/IntelliJ-IDEA-Ultimate
URL: https://download.jetbrains.com/idea/ideaIU-2021.1.3.win.zip
First bytes: 50 4B 03 04 00 00 00 00
Expected: 36d6b081645471baf1b893665d91b2f4de16a804862b80a816afff076c9dbbc6
Actual: 305d0e63ef91bdc847a8f57dc6aea5c1672eabea2f7fb339489ec5cce61e57b0

[email protected]: hash check failed

PS C:\Windows\system32> scoop update Intellij-IDEA-Ultimate
Intellij-IDEA-Ultimate: 2021.1.2-211.7442.40 -> 2021.1.3-211.7628.21
Updating one outdated app:
Updating 'Intellij-IDEA-Ultimate' (2021.1.2-211.7442.40 -> 2021.1.3-211.7628.21)
Downloading new version
ideaIU-2021.1.3.win.zip (893.0 MB) [==========================================================================] 100%
Checking hash of ideaIU-2021.1.3.win.zip ... ERROR Hash check failed!
App: JetBrains/Intellij-IDEA-Ultimate
URL: https://download.jetbrains.com/idea/ideaIU-2021.1.3.win.zip
First bytes: 50 4B 03 04 00 00 00 00
Expected: 36d6b081645471baf1b893665d91b2f4de16a804862b80a816afff076c9dbbc6
Actual: 305d0e63ef91bdc847a8f57dc6aea5c1672eabea2f7fb339489ec5cce61e57b0

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/Ash258/Scoop-JetBrains/issues/new?title=Intellij-IDEA-Ultimate%402021.1.3-211.7628.21%3a+hash+check+failed

Add JetBrains DataSpell EAP

The public EAP for JetBrains DataSpell (notebook software for .ipynb) just opened, and it would be nice to be able to install it via scoop. In a similar manner of how you can install EAPs and RCs of other JetBrains IDEs, there could be a DataSpell-EAP manifest.

Homepage of DataSpell: https://www.jetbrains.com/dataspell/

[email protected]: hash check failed

Updating 'IntelliJ-IDEA-Ultimate-portable' (2020.3.2-203.7148.57 -> 2020.3.3-203.7717.56)
Downloading new version
ideaIU-2020.3.3.win.zip (827.0 MB) [==========================================================================] 100%
Checking hash of ideaIU-2020.3.3.win.zip ... ERROR Hash check failed!
App: JetBrains/IntelliJ-IDEA-Ultimate-portable
URL: https://download.jetbrains.com/idea/ideaIU-2020.3.3.win.zip
First bytes: 50 4B 03 04 0A 00 00 08
Expected: 419196bea9995c0577192e72aca1b62669bcd0d55dbfc93ee67928225a4be8a4
Actual: 6f3a7dcb6aa4c1d3f9dc99883aa3b7dbc0a19d5a46d3c0965dc989e2f6c905aa

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/Ash258/Scoop-JetBrains/issues/new?title=IntelliJ-IDEA-Ultimate-portable%402020.3.3-203.7717.56%3a+hash+check+failed

[email protected]: hash check failed

Downloading new version
ideaIU-2021.1.3.win.zip (893.0 MB) [==========================================================================] 100%
Checking hash of ideaIU-2021.1.3.win.zip ... ERROR Hash check failed!
App: jetbrains/IntelliJ-IDEA-Ultimate
URL: https://download.jetbrains.com/idea/ideaIU-2021.1.3.win.zip
First bytes: 50 4B 03 04 00 00 00 00
Expected: 36d6b081645471baf1b893665d91b2f4de16a804862b80a816afff076c9dbbc6
Actual: 305d0e63ef91bdc847a8f57dc6aea5c1672eabea2f7fb339489ec5cce61e57b0

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/Ash258/Scoop-JetBrains/issues/new?title=IntelliJ-IDEA-Ultimate%402021.1.3-211.7628.21%3a+hash+check+failed

[email protected]: download via aria2 failed

ERROR Download failed! (Error 1) An unknown error occurred
ERROR https://download.jetbrains.com/python/pycharm-professional-211.4961.30.exe#/cosi.7z
referer=https://download.jetbrains.com/python/pycharm-professional-211.4961.30.exe#/
dir=E:\Scoop_repo\cache
out=Pycharm-Professional-EAP-portable#2021.1-211.4961.30#https_download.jetbrains.com_python_pycharm-professional-211.4961.30.exe_cosi.7z
https://raw.githubusercontent.com/Ash258/Scoop-JetBrains/master/scripts/portable.ps1
referer=https://raw.githubusercontent.com/Ash258/Scoop-JetBrains/master/scripts/
dir=E:\Scoop_repo\cache
out=Pycharm-Professional-EAP-portable#2021.1-211.4961.30#https_raw.githubusercontent.com_Ash258_Scoop-JetBrains_master_scripts_portable.ps1

ERROR & 'E:\Scoop_repo\apps\aria2\current\aria2c.exe' --input-file='E:\Scoop_repo\cache\Pycharm-Professional-EAP-portable.txt' --user-agent='Scoop/1.0 (+http://scoop.sh/) PowerShell/5.1 (Windows NT 10.0; Win64; x64; Desktop)' --allow-overwrite=true --auto-file-renaming=false --retry-wait=2 --split=5 --max-connection-per-server=5 --min-split-size=5M --console-log-level=warn --enable-color=false --no-conf=true --follow-metalink=true --metalink-preferred-protocol=https --min-tls-version=TLSv1.2 --stop-with-process=20280 --continue --summary-interval 0

[Feature Required] Provide "Open as XXX project" menu item, please?

This issue is related to previously closed issue #45.

Background of the request

ScoopInstaller/Extras provided 2 Windows Registy Manager scripts for Microsoft Visual Studio Code. They looks like follows:

image

The 2 *.reg provide (un)installation for "Open with Code" item in right-click menu:

image

My needs

Could @Ash258 provide similar DataSpell-EAP-install-context.reg & DataSpell-EAP-uninstall-context.reg (so other JetBrains IDEs) for us so we can enable the "Open folder as DataSpell (EAP) project" menu item on our own by running the *.reg scripts?

Thank you very much! ❤️

Version numbering scheme makes scoop miss updates in some cases

I tried to update Intellij-IDEA today from 2021.1-211.6693.111 to 2021.1.3-211.7628.21 but scoop kept claiming I was on the latest version.

Scoop compares these version numbers by splitting on '.' and '-' and then numerically comparing each component in order, but because the newer version adds a new component, it compares less than the previous version:

Old version: [ 2021, 1, 211, 6693,  111     ]
New version: [ 2021, 1,   3,  211, 7628, 21 ]
                          ^
                          \- 211 > 3 so it stops here

This confuses scoop into thinking the newer version is actually older.

It could probably be avoided by always including the implicit .0: 2021.1.0-211.6693.111 (or I suppose by persuading scoop to change how they compare versions).

IntelliJ-IDEA-Ultimate-portable update is not reported by Scoop

Problem

Update from IntelliJ-IDEA-Ultimate-portable 2019.2-192.5728.98 to 2019.2.1-192.6262.58 is not reported by Scoop due to the way the versions are compared in Scoop that doesn't really support this versioning scheme.

Scoop status and update doesn't report the update, while scoop info show that the update is available

D:\scoop> scoop list
Installed apps:
  ....
  IntelliJ-IDEA-Ultimate-portable 2019.2-192.5728.98 [jetbrains]
  ....

D:\scoop> scoop status
Scoop is up to date.
Everything is ok!

D:\scoop> scoop info IntelliJ-IDEA-Ultimate-portable
Name: IntelliJ-IDEA-Ultimate-portable
Description: IntelliJ IDEA Ultimate. Cross-Platform Java IDE for professional developers by JetBrains.
Version: 2019.2-192.5728.98 (Update to 2019.2.1-192.6262.58 available)
Website: https://www.jetbrains.com/idea/
Manifest:
  D:\scoop\buckets\jetbrains\bucket\IntelliJ-IDEA-Ultimate-portable.json
Installed:
  D:\scoop\apps\IntelliJ-IDEA-Ultimate-portable\2019.2-192.5728.98
Binaries:
   IDE\bin\idea.bat IDE\bin\idea64.exe

D:\scoop> scoop update IntelliJ-IDEA-Ultimate-portable
IntelliJ-IDEA-Ultimate-portable: 2019.2-192.5728.98 (latest version)
Latest versions for all apps are installed! For more information try 'scoop status'

Workaround

Use -f flag of the scoop update command

D:\scoop> scoop update -f IntelliJ-IDEA-Ultimate-portable
IntelliJ-IDEA-Ultimate-portable: 2019.2-192.5728.98 -> 2019.2.1-192.6262.58
WARN  Scoop uses 'aria2c' for multi-connection downloads.
WARN  Should it cause issues, run 'scoop config aria2-enabled false' to disable it.
Updating one outdated app:
Updating 'IntelliJ-IDEA-Ultimate-portable' (2019.2-192.5728.98 -> 2019.2.1-192.6262.58)
Downloading new version
Starting download with aria2 ...
....

The problem is caused by a mismatch between the versioning scheme used for this package and the way Scoop compare versions : the last digit of 2019.2.1 (ie 1) is compared to the first digit of 192.5728.98 (eg 192), see below

D:\scoop> . D:\scoop\apps\scoop\current\lib\versions.ps1
D:\scoop> compare_versions "2019.2.1-192.6262.58" "2019.2-192.5728.98"
-1
D:\scoop> compare_versions "2019.2.191-192.6262.58" "2019.2-192.5728.98"
-1
D:\scoop> compare_versions "2019.2.193-192.6262.58" "2019.2-192.5728.98"
1

Possible fix

Either update the version scheme of this package

  • always add a third digit to the version, eg use 2019.2.0-192.5728.98 instead of 2019.2-192.5728.98 compare_versions "2019.2.1-192.6262.58" "2019.2.0-192.5728.98" => 1
  • inverse the build number and the version number (but for the first update to the new scheme, there will be this problem again) : eg use 192.5728.98-2019.2 instead of 92.5728.98-2019.2 compare_versions "192.6262.58-2019.2.1" "192.5728.98-2019.2" => 1
  • remove the build number of the version : eg 2019.2 instead of 2019.2-192.5728.98 compare_versions "2019.2.1" "2019.2" => 1

Either update the way Scoop compare versions, eg split the version by - and compare each sub-version one by one, based on . separator only. However this could break other Scoop package version scheme that rely on the current version comparison of Scoop ?
Eg in scoop\lib\version.ps1, replace functions version and compare_versions by

function version($ver) {
    $ver -split '[\.]' | ForEach-Object {
        $num = $_ -as [int]
        if($num) { $num } else { $_ }
    }
}
function compare_version_element($a, $b) {
    $ver_a = @(version $a)
    $ver_b = @(version $b)

    for($i=0;$i -lt $ver_a.length;$i++) {
        if($i -gt $ver_b.length) { return 1; }

        # don't try to compare int to string
        if($ver_b[$i] -is [string] -and $ver_a[$i] -isnot [string]) {
            $ver_a[$i] = "$($ver_a[$i])"
        }

        if($ver_a[$i] -gt $ver_b[$i]) { return 1; }
        if($ver_a[$i] -lt $ver_b[$i]) { return -1; }
    }
    if($ver_b.length -gt $ver_a.length) { return -1 }
    return 0
}
function compare_versions($a, $b) {
    $ver_a = @($a -split '[-]')
    $ver_b = @($b -split '[-]')

    for($i=0;$i -lt $ver_a.length;$i++) {
        if($i -gt $ver_b.length) { return 1; }

        $cmp = compare_version_element $ver_a[$i] $ver_b[$i]
        if($cmp -ne 0) {
            return $cmp
        }
    }
    if($ver_b.length -gt $ver_a.length) { return -1 }
    return 0
}

This make the IDEA version comparison works

D:\scoop> . D:\scoop\apps\scoop\current\lib\versions.ps1
D:\scoop> compare_versions "2019.2.1-192.6262.58" "2019.2-192.5728.98"
1

Cannot update jetbrain products

I have installed two jetbrains products via scoop, datagrip and phpstorm
They both have pending updates, when I try to update them via the console, this happens in both cases:

PS C:\Users\$$$> scoop update phpstorm
phpstorm: 2020.2.3-202.7660.42 -> 2020.2.4-202.8194.11
Updating one outdated app:
Updating 'phpstorm' (2020.2.3-202.7660.42 -> 2020.2.4-202.8194.11)
Downloading new version
OperationStopped: C:\Users\nerdr\scoop\apps\scoop\current\lib\install.ps1:130
Line |
 130 |          throw $e
     |          ~~~~~~~~
     | The operation has timed out.

What could be causing this and what could be a fix or workaround? I do not have any knowledge of powershell scripts so I am not able to look into it.
And btw, other scoop apps install and update without any issues.

[email protected]: hash check failed

Downloading new version
ideaIU-2020.1.win.zip (733.5 MB) [============================================================================] 100%
Checking hash of ideaIU-2020.1.win.zip ... ERROR Hash check failed!
App: jetbrains/IntelliJ-IDEA-Ultimate
URL: https://download.jetbrains.com/idea/ideaIU-2020.1.win.zip
First bytes: 50 4B 03 04 0A 00 00 08
Expected: bb51acf686c52860213e2432337fa73fd02f80e7b4b4f186c029bd4c953e742a
Actual: 32ae1cd29795b537521cad8f2596f597c31e7af1a96dd48b840837c911b01739

Cannot install jetbrains-toolbox

When I run the command scoop install jetbrains-toolbox
I get the following error in the powershell console

Installing 'jetbrains-toolbox' (1.18.7609) [64bit]
The operation has timed out.
URL https://download.jetbrains.com/toolbox/jetbrains-toolbox-1.18.7609.exe#/dl.7z is not valid

Is this bucket scoop compatible ?

Since a few months, the IntelliJ-IDEA updates are no longer possible via Scoop (manifest removed).

Is this bucket still compatible with Scoop?

Cleanup

  • ...
  • Extract portable script into own file and download it separately
  • MPS portable investigation
  • Implement scoop reset <app> --<shim|bin>-only and add all binaries for EAP, RCs, ...

persistedConfig => profile

For example, change installer part for IntelliJ IDEA portable:

    "installer": {
        "script": [
            "$file = 'idea.properties'",
            "$ideHome = '${idea.home.path}'",
            "if (-not (Test-Path \"$persist_dir\\$file\")) {",
            "    Write-Host 'File' $file 'does not exists. Creating.' -f Yellow",
            "    $file = \"$dir\\bin\\$file\"",
            "    $CONT = Get-Content $file",
            "        # Replacing config options",
            "    $CONT = $CONT -replace '^# idea.config.path=.*$', \"idea.config.path=$ideHome/profile/config\"",
            "    $CONT = $CONT -replace '^# idea.system.path=.*$', \"idea.system.path=$ideHome/profile/system\"",
            "    $CONT = $CONT -replace '^# idea.plugins.path=', 'idea.plugins.path='",
            "    $CONT = $CONT -replace '^# idea.log.path=', 'idea.log.path='",
            "        # Rewrite properties file",
            "    Set-Content $file ($CONT -join \"`r`n\") -Encoding Ascii -Force",
            "}"
        ]
    },
  1. persistedConfig is somewhat redundant, maybe we could change it to profile? as the term used in here or here:
  • user profile drive runs out of space
  • default user profile points to the UNC path unsupported by the IDE
  • user profile directory is not detected correctly
  1. In idea.properties file in Intellij IDEA, there says:

# Use ${idea.home.path} macro to specify location relative to IDE installation home.

But others seem maybe slightly different from Intellij IDEA? (e.g. RubyMine):

Use ${idea.home} macro to specify location relative to IDE installation home.

Rider-Portable `2020.2.1` not detected for update

Rider-portable version 2020.2.1 is sorted before 2020.2 with scoop's sort-version which results in update not detecting that version. This can be resolved by including the patch (.0) in the version number. For example, from 2020.2-202.6397.244 to 2020.2.0-202.6397.244.

[email protected]: hash check failed

IntelliJ-IDEA-Ultimate-portable: 2019.1.3-191.7479.19 -> 2020.1-201.6668.121
Updating one outdated app:
Updating 'IntelliJ-IDEA-Ultimate-portable' (2019.1.3-191.7479.19 -> 2020.1-201.6668.121)
Downloading new version
ideaIU-2020.1.win.zip (733.5 MB) [============================================================================] 100%
Checking hash of ideaIU-2020.1.win.zip ... ERROR Hash check failed!
App: jetBrains/IntelliJ-IDEA-Ultimate-portable
URL: https://download.jetbrains.com/idea/ideaIU-2020.1.win.zip
First bytes: 50 4B 03 04 0A 00 00 08
Expected: bb51acf686c52860213e2432337fa73fd02f80e7b4b4f186c029bd4c953e742a
Actual: 32ae1cd29795b537521cad8f2596f597c31e7af1a96dd48b840837c911b01739

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/Ash258/Scoop-JetBrains/issues/new?title=IntelliJ-IDEA-Ultimate-portable%402020.1-201.6668.121%3a+hash+check+failed

Update issue

when there is a patch update, currently it will report error: Failed to prepare an update: Temp directory inside installation

#4 (comment)

/cc @Retia-Adolf

When did you experience this error? What does produce it?

lowercase manifest name

I don't use this bucket, just advice to keep uniform with the core/extras buckets. But whatever, just like a vim2emacs war.

Resharper

Is it possible to package resharper? Similar to dotMemory, dotPeek, etc.

[Installer Error] scoop install Rider-EAP-portable

Good morning,

Getting the following error:

┌[Parris@4RedHat]
└[D:\Repos] [ base]> scoop install Rider-EAP-portable
Installing 'Rider-EAP-portable' (2021.1-EAP10-211.6693.83) [64bit]
The remote server returned an error: (403) Forbidden.
URL https://download.jetbrains.com/rider/JetBrains.Rider-2021.1-EAP10-211.6693.83.Checked.win.zip is not valid

I would like to learn how to resolve this error. Is it possible to shadow someone to learn the steps to correct?

Thank you, P-)

[email protected]: hash check failed

Download: 462241|OK | 34MiB/s|D:/dkal/environments/scoop/scoop_custom/cache/IntelliJ-IDEA-Ultimate#2020.3.3-203.7717.56#https_download.jetbrains.com_idea_ideaIU-2020.3.3.win.zip
Download: Status Legend:
Download: (OK):download completed.
Checking hash of ideaIU-2020.3.3.win.zip ... ERROR Hash check failed!
App: jetbrains/IntelliJ-IDEA-Ultimate
URL: https://download.jetbrains.com/idea/ideaIU-2020.3.3.win.zip
First bytes: 50 4B 03 04 0A 00 00 08
Expected: 419196bea9995c0577192e72aca1b62669bcd0d55dbfc93ee67928225a4be8a4
Actual: 6f3a7dcb6aa4c1d3f9dc99883aa3b7dbc0a19d5a46d3c0965dc989e2f6c905aa

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/Ash258/Scoop-JetBrains/issues/new?title=IntelliJ-IDEA-Ultimate%402020.3.3-203.7717.56%3a+hash+check+failed

[email protected]: hash check failed

Installing 'IntelliJ-IDEA-portable' (2020.1-201.6668.121) [64bit]
ideaIC-2020.1.win.zip (599.1 MB) [============================================================================] 100%
Checking hash of ideaIC-2020.1.win.zip ... ERROR Hash check failed!
App: JetBrains/IntelliJ-IDEA-portable
URL: https://download.jetbrains.com/idea/ideaIC-2020.1.win.zip
First bytes: 50 4B 03 04 0A 00 00 08
Expected: db70d49d0c750c61d30007939026b5fdc3ddc713109678cd297ece6afbafca80
Actual: a5460ba87513203855a862a8f9c1db967568e779b7a0ce9bb5fc98239f6b9b8b

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/Ash258/Scoop-JetBrains/issues/new?title=IntelliJ-IDEA-portable%402020.1-201.6668.121%3a+hash+check+fa
iled

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.