Open Arthurm1 opened 4 years ago
Temporary workaround...
Uninstall Bloop if you have installed it...
scoop uninstall bloop
Add the Bloop bucket
scoop bucket add bloop-stable https://github.com/scalacenter/scoop-bloop.git
Edit the bucket file: %home%/scoop/buckets/bloop-stable/bloop.json
(or wherever you installed Scoop) to be...
{
"version": "1.4.1",
"url": "https://github.com/scalacenter/bloop/releases/download/v1.4.1/bloop-coursier.json",
"hash": "sha256:2e6a873183e5e22712913bfdab1331d0a7792167c369fee5be0c83e27572fe12",
"depends": "coursier",
"bin": "bloop.bat",
"env_add_path": "$dir",
"env_set": {
"BLOOP_HOME": "$dir",
"BLOOP_IN_SCOOP": "true"
},
"installer": {
"script": "coursier install --install-dir $dir bloop"
}
}
install bloop:
scoop install bloop
Hey @Arthurm1 thanks for reporting! Would you mind opening a PR with those changes in scoop-bloop so that it can be consumed right away and following up to that change with a PR in bloop itself, so that the next release contains these changes?
@jvican please merge scalacenter/scoop-bloop#7 if you're happy with it
So, it seems to not like it when you start the directory path with a drive letter, and it seems to not like that the file is called bloop-coursier.json
. When you specify to install the app bloop
, it looks for bloop.json
, and for some reason if you have C:\
at the start, it gets confused and doesn't understand it's a Windows path. Doing \Users\...\bloop
, just dropping the C:\
seems to work (though it then relies on scoop being installed on the system drive):
coursier install --install-dir \Users\ginnu\scoop\apps\bloop\1.4.1 --default-channels=false --channel \Users\ginnu\scoop\apps\bloop\1.4.1 bloop-coursier
Wrote bloop-coursier
Warning: \Users\ginnu\scoop\apps\bloop\1.4.1 is not in your PATH
Thanks @heksesang - I think you're right
I've raised an issue coursier/coursier#1741
Temporary workaround...
Uninstall Bloop if you have installed it...
scoop uninstall bloop
Add the Bloop bucket
scoop bucket add bloop-stable https://github.com/scalacenter/scoop-bloop.git
Edit the bucket file:
%home%/scoop/buckets/bloop-stable/bloop.json
(or wherever you installed Scoop) to be...{ "version": "1.4.1", "url": "https://github.com/scalacenter/bloop/releases/download/v1.4.1/bloop-coursier.json", "hash": "sha256:2e6a873183e5e22712913bfdab1331d0a7792167c369fee5be0c83e27572fe12", "depends": "coursier", "bin": "bloop.bat", "env_add_path": "$dir", "env_set": { "BLOOP_HOME": "$dir", "BLOOP_IN_SCOOP": "true" }, "installer": { "script": "coursier install --install-dir $dir bloop" } }
install bloop:
scoop install bloop
I had the same problem, this fixed it for me with 1.4.3.
And same now with 1.4.8
Bloop v1.4.1 gives an error when installing on Windows using Scoop...
Coursier looks like it's merging 2 directory names together. Trying to call it directly gives the same error (although I'm not sure if this is how
--channel
is supposed to be specified)...It works if I remove channel info and run...
I'm using coursier 2.0.0-RC6-16
Also - the shim isn't setup. I think the
"bin": "bloop"
section inbloop.json
should read"bin": "bloop.bat"