question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expected scoop to install bloop v1.4.1

See original GitHub issue

Bloop v1.4.1 gives an error when installing on Windows using Scoop…

Exception in thread "main" coursier.error.ResolutionError$CantDownloadModule: Error downloading C:\Users\ArthurM\scoop\apps\bloop\1.4.1:latest.release
  not found: C:\Users\ArthurM\.ivy2\local\C\Users\ArthurM\scoop\apps\bloop\1.4.1
  not found: https://repo1.maven.org/maven2/C/\Users\ArthurM\scoop\apps\bloop\1.4.1/maven-metadata.xml
        at coursier.Resolve$.$anonfun$validate$1(Resolve.scala:325)
        at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:273)
        at scala.collection.Iterator.foreach(Iterator.scala:943)
        at scala.collection.Iterator.foreach$(Iterator.scala:943)
        at scala.collection.AbstractIterator.foreach(Iterator.scala:1431)
        at scala.collection.IterableLike.foreach(IterableLike.scala:74)
        at scala.collection.IterableLike.foreach$(IterableLike.scala:73)
        at scala.collection.AbstractIterable.foreach(Iterable.scala:56)
        at scala.collection.TraversableLike.map(TraversableLike.scala:273)
        at scala.collection.TraversableLike.map$(TraversableLike.scala:266)
        at scala.collection.AbstractTraversable.map(Traversable.scala:108)
        at coursier.Resolve$.validate(Resolve.scala:323)
        at coursier.Resolve.validate0$1(Resolve.scala:112)
        at coursier.Resolve.$anonfun$ioWithConflicts0$4(Resolve.scala:156)
        at coursier.util.Task$.$anonfun$flatMap$2(Task.scala:14)
        at scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:307)
        at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:41)
        at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Linking ~\scoop\apps\bloop\current => ~\scoop\apps\bloop\1.4.1
Creating shim for 'bloop'.
Can't shim 'bloop': File doesn't exist.

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)…

coursier install --install-dir C:\Users\ArthurM\scoop\apps\bloop\1.4.1 --default-channels=false --channel C:\Users\ArthurM\scoop\apps\bloop\1.4.1\bloop-coursier.json bloop

It works if I remove channel info and run…

coursier install --install-dir C:\Users\ArthurM\scoop\apps\bloop\1.4.1 bloop

I’m using coursier 2.0.0-RC6-16

Also - the shim isn’t setup. I think the "bin": "bloop" section in bloop.json should read "bin": "bloop.bat"

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Arthurm1commented, May 16, 2020

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

1reaction
zzvaracommented, Aug 31, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tools/scoop/usage · Bloop - Scala Center
The installation script installs the build server and the bloop command-line application (CLI). The build server must be started before the command-line ...
Read more >
scalacenter/bloop - Gitter
If you ctrl-c out of bloop compile foo -w , it seems to tear down the bloop server. Is that expected?
Read more >
Bountysource
Expected scoop to install bloop v1.4.1.
Read more >
pdf - sbt Reference Manual
sbt 1.4.1 . ... relevant maintainers. Scoop. $ scoop install sbt ... and uncheck “export sbt projects to Bloop before import”: IntelliJ.
Read more >
CodaLab Worksheets
... air transport commitments announced expected reach 400 million interested ... aftermarket easy-to-install terrestrial plugging DRIVER headset ringtone ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found