Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 22 15:18

    alexarchambault on gh-pages

    Update website (compare)

  • Oct 22 14:38
    alexarchambault synchronize #2239
  • Oct 22 14:37

    alexarchambault on master

    Minor refacto Update GraalVM to 21.3.0 Merge pull request #2238 from a… (compare)

  • Oct 22 14:37
    alexarchambault closed #2238
  • Oct 22 14:37
    alexarchambault synchronize #2239
  • Oct 22 14:18
    alexarchambault opened #2239
  • Oct 22 14:17
    alexarchambault opened #2238
  • Oct 22 14:14
    alexarchambault synchronize #2237
  • Oct 22 14:04
    alexarchambault opened #2237
  • Oct 22 13:27

    alexarchambault on gh-pages

    Update website (compare)

  • Oct 22 13:24

    alexarchambault on gh-pages

    Update website (compare)

  • Oct 22 12:50

    alexarchambault on master

    Update tools to 0.4.1 (#2236) (compare)

  • Oct 22 12:50
    alexarchambault closed #2236
  • Oct 22 12:50

    alexarchambault on master

    Update jsoniter-scala-core to 2… (compare)

  • Oct 22 12:50
    alexarchambault closed #2235
  • Oct 22 12:50
    alexarchambault commented #2231
  • Oct 22 09:38
    sjrd commented #2059
  • Oct 22 09:30
    matejsarlija commented #2059
  • Oct 21 22:18
    scala-steward opened #2236
  • Oct 21 14:15
    scala-steward opened #2235
Damian Reeves
@DamianReeves
thanks for the info
Eric K Richardson
@ekrich
I feel like JAVA_OPTS works most of the time. Some Scala tools miss a few of the edge cases.
Matt Hughes
@matthughes
What is cs list supposed to do? The help does not give much help. I was thinking it would list the things I've installed with coursier but it throws an exception without any arguments.
Bjorn Regnell
@bjornregnell
@matthughes I guess cs list was supposed to do that, but it perhaps never got implemented.
nafg
@naftoligug:matrix.org
[m]
Someone needs to implement proper help screens (unless it's been done since I last checked)
Bjorn Regnell
@bjornregnell
There is experimental work on improved scala runners going on here: https://github.com/dwijnand/scala-runners
Chris Kipp
@ckipp:matrix.org
[m]
cs list should show you all your installed applications
cs list
amm
bloop
coursier
cs
g8
mdoc
metac
metap
mill
sbt
sbtn
scala3-compiler
scala3-repl
scalac
scalafix
scalafmt
Bjorn Regnell
@bjornregnell
yeah, but it would be nice to see what version of each...
Tobias Roeser
@lefou
@alexarchambault Coursier uses the following version pattern for snapshot releases: major.minor.patch+commitcount-hash. Is there any benefit over the one used by mill: major.minor.patch-commitcount-hash?
Does it behave better in version ordering?
E.g. in Maven the minus between the version and the rest results in ordering the snapshot release before the patch release
Is the plus different and thus the better option?
vonchav
@voonchav_gitlab
Hi all, any plan to cut a new release? I have an issue with sbt but it's blocked by a merged PR in coursier :) coursier/coursier#2055
Ramiro Calle
@rrramiro
Hi @ckipp:matrix.org, there is cs search command coming up. coursier/coursier#2007
Chris Kipp
@ckipp:matrix.org
[m]
I know you can bootstrap with coursier and pass in --java-opt to give it options to run with, but is there a way to pass them in when calling the actual script that bootstrap creates?
or at that point is it just too late?
Geoffrey Knauth
@gknauth
I did cs update on a win10 system and now I have lots of .bat.bat.bat files, is this normal? If not, how do I fix this?
c:/Users/username/AppData/Local/Coursier/data/bin:
   31821 08-13 06:35 scalafmt.bat.bat.bat.bat.bat.bat.bat
   31821 08-13 06:35 scalafmt.bat.bat.bat.bat.bat.bat
   31821 08-13 06:35 scalafmt.bat.bat.bat.bat.bat
   31821 08-13 06:35 scalafmt.bat.bat.bat.bat
   31821 08-13 06:35 scalafmt.bat.bat.bat
   31821 08-13 06:35 scalafmt.bat.bat
   30260 08-13 06:35 scalac.bat.bat.bat.bat.bat.bat.bat
   30260 08-13 06:35 scalac.bat.bat.bat.bat.bat.bat
   30260 08-13 06:35 scalac.bat.bat.bat.bat.bat
   30260 08-13 06:35 scalac.bat.bat.bat.bat
   30260 08-13 06:35 scalac.bat.bat.bat
   30260 08-13 06:35 scalac.bat.bat
   30278 08-13 06:35 scala.bat.bat.bat.bat.bat.bat.bat
   30278 08-13 06:35 scala.bat.bat.bat.bat.bat.bat
   30278 08-13 06:35 scala.bat.bat.bat.bat.bat
   30278 08-13 06:35 scala.bat.bat.bat.bat
   30278 08-13 06:35 scala.bat.bat.bat
   30278 08-13 06:35 scala.bat.bat
   32402 08-13 06:35 sbt.bat.bat.bat.bat.bat.bat.bat
   35114 08-13 06:35 metals.bat.bat
   35154 08-13 06:35 metals-emacs.bat.bat
    2571 08-13 06:35 cs.bat.bat.bat.bat.bat.bat.bat
    2571 08-13 06:35 cs.bat.bat.bat.bat.bat.bat
    2571 08-13 06:35 cs.bat.bat.bat.bat.bat
    2571 08-13 06:35 cs.bat.bat.bat.bat
    2571 08-13 06:35 cs.bat.bat.bat
    2571 08-13 06:35 cs.bat.bat
   33512 08-13 06:35 coursier.bat.bat.bat.bat.bat.bat.bat
   33512 08-13 06:35 coursier.bat.bat.bat.bat.bat.bat
   33512 08-13 06:35 coursier.bat.bat.bat.bat.bat
   33512 08-13 06:35 coursier.bat.bat.bat.bat
   33512 08-13 06:35 coursier.bat.bat.bat
   33512 08-13 06:35 coursier.bat.bat
    2560 08-13 06:35 bloop.bat.bat.bat.bat.bat.bat.bat
    2560 08-13 06:35 bloop.bat.bat.bat.bat.bat.bat
    2560 08-13 06:35 bloop.bat.bat.bat.bat.bat
    2560 08-13 06:35 bloop.bat.bat.bat.bat
    2560 08-13 06:35 bloop.bat.bat.bat
    2560 08-13 06:35 bloop.bat.bat
   35369 08-13 06:35 amm.bat.bat.bat.bat.bat.bat.bat
   35369 08-13 06:35 amm.bat.bat.bat.bat.bat.bat
   35369 08-13 06:35 amm.bat.bat.bat.bat.bat
   35369 08-13 06:35 amm.bat.bat.bat.bat
   35369 08-13 06:35 amm.bat.bat.bat
   35369 08-13 06:35 amm.bat.bat
   35154 08-13 06:35 metals-emacs.bat
   35114 08-12 16:57 metals.bat
58251264 03-11 08:18 .cs.bat.bat.bat.bat.bat.bat.aux.exe
58251264 03-11 08:18 .cs.bat.bat.bat.bat.bat.aux.exe
58251264 03-11 08:18 .cs.bat.bat.bat.bat.aux.exe
58251264 03-11 08:18 .cs.bat.bat.bat.aux.exe
58251264 03-11 08:18 .cs.bat.bat.aux.exe
58251264 03-11 08:18 .cs.bat.aux.exe
40077824 02-18 09:30 .bloop.bat.bat.bat.bat.bat.bat.aux.exe
40077824 02-18 09:30 .bloop.bat.bat.bat.bat.bat.aux.exe
40077824 02-18 09:30 .bloop.bat.bat.bat.bat.aux.exe
40077824 02-18 09:30 .bloop.bat.bat.bat.aux.exe
40077824 02-18 09:30 .bloop.bat.bat.aux.exe
40077824 02-18 09:30 .bloop.bat.aux.exe
   32402 2021-01-13  sbt.bat.bat.bat.bat.bat.bat
   32402 2021-01-12  sbt.bat.bat.bat.bat.bat
    2560 2021-01-12  bloop.bat
   32402 2021-01-12  sbt.bat.bat.bat.bat
   32402 2021-01-12  sbt.bat.bat.bat
   32402 2021-01-03  sbt.bat.bat
39602176 2020-12-03  .bloop.aux.exe
   31780 2020-05-26  scalafmt.bat
   30256 2020-05-26  scalac.bat
   30275 2020-05-26  scala.bat
   32389 2020-05-26  sbt.bat
   33438 2020-05-26  coursier.bat
    2576 2020-05-26  cs.bat
   32887 2020-05-26  amm.bat
       0 2020-05-26  ..
52687360 2020-05-25  .cs.aux.exe
Geoffrey Knauth
@gknauth
Answer to my own question above. I deleted all those files. Reinstalled coursier using cmd.exe per instructions (doesn't say why not to use PowerShell for that). Did that in a scratch directory. Then used that new coursier, in PowerShell, to reinstall the programs above without all the duplicates.
Saskia Gennrich
@pektinasen

hello, I'm trying to build coursier, but it gives me an error, that it cannot find package dev.dirs. unfortunately this is my first time using mill, so I'm not sure if this is a mill issue or with my setup or with the mill script. I installed mill with cs install mill

[error] /home/saskia/projects/coursier/modules/paths/src/main/java/coursier/paths/CoursierPaths.java:7:1: package dev.dirs does not exist
[error] dev.dirs.GetWinDirs

I also used the ./mill script. same error.

I'm on ubuntu, in case that's important
Saskia Gennrich
@pektinasen
ah. figured it out. I should initialize the git submodule
Saskia Gennrich
@pektinasen
Hey, I created a pull request to support fish shell. I'm not entirely satisfied with it myself, but would like to get some feedback, where and in which direction I should improve it.
coursier/coursier#2154
thank you.
Alessandro Vermeulen
@spockz

I’m looking at #1649 and the snippet workaround works for update however it appears that the authentication is missing completely when using updateClassifiers. The downloaded files are also stored in the cache without a username in front of the directory name

How can I fix this? Is it a sbt thing?

vonchav
@voonchav_gitlab

Hi all, any plan to cut a new release? I have an issue with sbt but it's blocked by a merged PR in coursier :) coursier/coursier#2055

Hi @alexarchambault, any plan for a new Coursier release?

Piotr Jósiak
@worekleszczy

Hi! When I try to import shaded courier from sbt build files like import lmcoursier.internal.shaded.coursier.Resolution I get an error :

[error] /Users/piotrjosiak/scalac/rallyhealth/lib-arcade-commons/project/Test.scala:1:8: Symbol 'term <root>.coursier' is missing from the classpath.
[error] This symbol is required by ' <none>'.
[error] Make sure that term coursier is in your classpath and check for conflicting dependencies with `-Ylog-classpath`.
[error] A full rebuild may help if 'package.class' was compiled against an incompatible version of <root>.
[error] import lmcoursier.internal.shaded.coursier.core.Resolution
[error]        ^
[error] /Users/piotrjosiak/scalac/rallyhealth/lib-arcade-commons/project/Test.scala:4:14: Symbol 'term coursier.core' is missing from the classpath.
[error] This symbol is required by ' <none>'.
[error] Make sure that term core is in your classpath and check for conflicting dependencies with `-Ylog-classpath`.

I'm a little bit surprised, as cursier is present in the classpath (I guess it has to be as it's used by sbt anyway). Does anyone know what is going on?

Ondra Pelech
@sideeffffect
Hello, what are the Maven coordinates of the JAR that can do the functionality of coursier launch as its main method?
rafhuys-klarrio
@rafhuys-klarrio
Hi, is there a way to know which dependency gets resolved when using wildcards? like for instance I would like to know to whatcs complete sh.almond:scala-kernel_2.12.8:0.11.+ resolves, but that's no valid syntax. However it's a valid syntax in the dependency declaration itself
Brian P. Holt
@bpholt

Does anyone have tips for getting cs complete version listing working with an internal Nexus Repository Manager 3 repository? I can’t tell if there’s something wrong with our setup or if I’m using the wrong URL or what, but I can’t figure out how to get it working.

For example, if I use Nexus’s REST API as the URL (e.g. https://hostname-redacted/service/rest/repository/browse/maven-central/), I can get completions for artifact IDs, but it shows a 404 when downloading the maven-metadata.xml file to discover what versions are available.

Brian P. Holt
@bpholt

Our Nexus instance is fronted by nginx for various reasons, but I was able to get cs complete working using this directive in nginx:

location ~ ^/repository/((?:maven|ivy)-[^/]+)((?:/[^/]+)*)/$ {
  proxy_pass http://nexus:8081/service/rest/repository/browse/$1$2/;
}

Basically rewriting the requests that Coursier makes to their corresponding endpoints in the Nexus REST API. This feels like a hack but it seems like it’s working so far. (We might find out through more use that it’s missing something or otherwise causes problems… time will tell)

Robert Bates
@arpieb

hi! i'm trying to install scala3 on macOS via homebrew, and when executing:
brew install coursier/formulas/coursier
i keep getting this error:

Error: Invalid formula: /usr/local/Homebrew/Library/Taps/coursier/homebrew-formulas/coursier.rb
coursier: Unsupported special dependency :java
Error: Cannot tap coursier/formulas: invalid syntax in tap!

any idea if this is from a recent update or is there some undocumented missing dep?

on the latest brew commit - 4e6919b73
xraybat
@xraybat

latest version of bloop is 1.4.9, coursier installs bloop v1.4.8-114-e47368ed, vscode metals extension 1.10.11 requires bloop 1.4.9.

what is the usual turnaround time for coursier to catch up to latest bloop version?

Chris Kipp
@ckipp:matrix.org
[m]
coursier should be pulling in the latest, since the coursier/apps bloop.json` looks for the latest release artifact, and it's there
also keep in mind that you can do a bloop exit to shutdown bloop, and then open Metals, and metals will start the version of bloop it has reference to
xraybat
@xraybat
yes, might have to let metals take care of its ownbloop needs, ftm
xraybat
@xraybat

ok, appears to be my mistake -- after bloop exit and restarting bloop it attached to a 1.4.9 server -- so bloop about now reports 1.4.9.

i assume it just kept restarting an older server previously.

Tobias Roeser
@lefou
With the update of from 20.16+73-gddc6d9cc9 to 2.0.16-158-gbdc8669f9 we get the following exception in out CI
  java.lang.NoSuchMethodError: 'com.google.common.collect.ImmutableSet com.google.common.collect.ImmutableSet.copyOf(java.util.Collection)'
    com.google.common.jimfs.Configuration$Builder.setRoots(Configuration.java:611)
    com.google.common.jimfs.Configuration$UnixHolder.<clinit>(Configuration.java:90)
    com.google.common.jimfs.Configuration.unix(Configuration.java:86)
    com.google.common.jimfs.Configuration.forCurrentPlatform(Configuration.java:210)
    com.google.common.jimfs.Jimfs.newFileSystem(Jimfs.java:110)
    com.google.common.jimfs.Jimfs.newFileSystem(Jimfs.java:92)
    org.scalajs.jsenv.nodejs.ComRun$.setupFile(ComSupport.scala:247)
    org.scalajs.jsenv.nodejs.ComRun$.start(ComSupport.scala:214)
    org.scalajs.jsenv.nodejs.NodeJSEnv.startWithCom(NodeJSEnv.scala:46)
    org.scalajs.testing.adapter.JSEnvRPC.<init>(JSEnvRPC.scala:25)
    org.scalajs.testing.adapter.TestAdapter.startManagedRunner(TestAdapter.scala:129)
    org.scalajs.testing.adapter.TestAdapter.$anonfun$getRunnerForThread$1(TestAdapter.scala:120)
    scala.collection.concurrent.TrieMap.getOrElseUpdate(TrieMap.scala:952)
    org.scalajs.testing.adapter.TestAdapter.getRunnerForThread(TestAdapter.scala:120)
    org.scalajs.testing.adapter.TestAdapter.loadFrameworks(TestAdapter.scala:56)
    mill.scalajslib.worker.ScalaJSWorkerImpl.getFramework(ScalaJSWorkerImpl.scala:127)
    mill.scalajslib.ScalaJSWorker.getFramework(ScalaJSWorkerApi.scala:68)
    mill.scalajslib.TestScalaJSModule.$anonfun$testTask$1(ScalaJSModule.scala:230)
    mill.define.ApplyerGenerated.$anonfun$zipMap$9(ApplicativeGenerated.scala:21)
    mill.define.Task$MappedDest.evaluate(Task.scala:374)
    mill.eval.Evaluator.$anonfun$evaluateGroup$13(Evaluator.scala:509)
It's not directly related to coursier, but probably to it's transitive dependencies
This is a ScalaJS test.
Any ideas?
Also, we get this:
  java.lang.NoClassDefFoundError: Could not initialize class com.google.common.jimfs.Configuration$UnixHolder
    com.google.common.jimfs.Configuration.unix(Configuration.java:86)
    com.google.common.jimfs.Configuration.forCurrentPlatform(Configuration.java:210)
    com.google.common.jimfs.Jimfs.newFileSystem(Jimfs.java:110)
    com.google.common.jimfs.Jimfs.newFileSystem(Jimfs.java:92)
    org.scalajs.jsenv.nodejs.NodeJSEnv$.fs$lzycompute(NodeJSEnv.scala:77)
    org.scalajs.jsenv.nodejs.NodeJSEnv$.fs(NodeJSEnv.scala:77)
    org.scalajs.jsenv.nodejs.NodeJSEnv$.installSourceMapIfAvailable$lzycompute(NodeJSEnv.scala:83)
    org.scalajs.jsenv.nodejs.NodeJSEnv$.org$scalajs$jsenv$nodejs$NodeJSEnv$$installSourceMapIfAvailable(NodeJSEnv.scala:81)
    org.scalajs.jsenv.nodejs.NodeJSEnv.initFiles(NodeJSEnv.scala:68)
    org.scalajs.jsenv.nodejs.NodeJSEnv.start(NodeJSEnv.scala:39)
    mill.scalajslib.worker.Run$.runInterruptible(Run.scala:39)
Grégory Marti
@gmarti

Morning,

Trying to migrate my repositories to gitlab i seem to have a problem to download sbt plugins from there.

I tried to configure normal sbt with Http headers, its not working

my project/plugins.sbt file :

import lmcoursier.definitions.Authentication

val auth:Authentication = if (sys.env.contains("CI")) {
  Authentication(Seq(("Job-Token",sys.env("CI_JOB_TOKEN"))))
} else {
  Authentication(Seq(("Private-Token", sys.env("GITLAB_PRIVATE_TOKEN"))))
}
resolvers += ("COUCOU" at "https://myrepo/api/v4/groups/mygroup/-/packages/maven")


csrConfiguration ~= (_.addRepositoryAuthentication("COUCOU",auth))
updateClassifiers / csrConfiguration ~= (_.addRepositoryAuthentication("COUCOU",auth))
updateSbtClassifiers / csrConfiguration ~= (_.addRepositoryAuthentication("COUCOU",auth))

addSbtPlugin("myorg"    % "sbt-myplugin"    % "1.2.3")

error : Im forbidden, so probably it doesnt use the authentication (I can successfully curl with the token )

So i tried to use sbt-coursier plugin for this "specific use-case" with sbt-extras (like here https://get-coursier.io/docs/sbt-coursier#sbt-13x) but it doesnt compile, seems there is an issue with coursier version conflict
java.lang.NoSuchMethodError: 'coursier.core.Project lmcoursier.definitions.ToCoursier$.project(lmcoursier.definitions.Project)'

Is there a way to use sbt-coursier plugin instead of coursier used by sbt ?

Thanks

Boris Capitanu
@borice

Is it possible to unify artifact cache locations between Maven and SBT such that we don't end up with multiple copies of the same artifact in the various caches (Maven, Ivy, Coursier)? I have projects built with Maven and SBT and over time the cached artifacts are starting to occupy a non-trivial amount of disk space. "It is what it is" was my philosophy so far, but a cursory inspection shows that there are many duplicates between the artifacts stored at ~/.m2/repository/, ~/.ivy2/cache/, and ~/Library/Caches/Coursier/....

Is it possible to create a setup where Maven and SBT projects look up (and store) cached artifacts in a single location? That includes sbt publishLocal to store the locally-published artifact in the same cached location. I don't care which location it is between the 3 I mentioned...

Tobias Roeser
@lefou
@borice Possible, yes, advisable, probably not. At least, each tools has different assumption about the mutability of the downloaded artifacts. I think coursier is rather strict. The simplest solution would be IMHO, to derive from MavenRepository and just lookup the JARs in alternative locations before downloading them. That means all metadata is still redundant and under the control of each respective tool, but the actual JARs, which are the large files, and which can be checked for their checksums, are shared in the sense that they will be reused if already present in some other location.
2 replies