!oXgwMHWllugcPDSKTb:matrix.org

sbt

2088 Members
Scala Build Tool5 Servers

Load older messages


SenderMessageTime
16 May 2024
@_discord_485093197412958239:t2bot.iomikimm16
[error] (utilRelation / update) sbt.librarymanagement.ResolveException: Error downloading org.scalameta:semanticdb-scalac_2.13.12:4.5.13
[error]   Not found
[error]   Not found
[error]   not found: /home/mikolaj/.ivy2/localorg.scalameta/semanticdb-scalac_2.13.12/4.5.13/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/org/scalameta/semanticdb-scalac_2.13.12/4.5.13/semanticdb-scalac_2.13.12-4.5.13.pom
[error]   not found: /home/mikolaj/.m2/repository/org/scalameta/semanticdb-scalac_2.13.12/4.5.13/semanticdb-scalac_2.13.12-4.5.13.pom
[error]   not found: https://oss.sonatype.org/content/repositories/snapshots/org/scalameta/semanticdb-scalac_2.13.12/4.5.13/semanticdb-scalac_2.13.12-4.5.13.pom
[error]   not found: https://s01.oss.sonatype.org/content/repositories/snapshots/org/scalameta/semanticdb-scalac_2.13.12/4.5.13/semanticdb-scalac_2.13.12-4.5.13.pom
[error]   not found: https://repo.typesafe.com/typesafe/ivy-releases/org.scalameta/semanticdb-scalac_2.13.12/4.5.13/ivys/ivy.xml
10:51:36
@_discord_485093197412958239:t2bot.iomikimm16 There are more errors as the ones I provided, but all seem to be corelated to semanticdb-scalac_2.13.12.
Do you know how can I resolve this problem and build the project?
10:51:48
@_discord_644849095785054218:t2bot.iobjornregnell changed their profile picture.11:22:04
@_discord_644849095785054218:t2bot.iobjornregnell https://github.com/sbt/sbt/issues/7560 12:10:26
@_discord_644849095785054218:t2bot.iobjornregnell Is this sbt specific? I think so as it works fine with scala-cli 1.3.1 with Scala 3.4.1.... 12:11:34
@_discord_644849095785054218:t2bot.iobjornregnell331195693-fd67dbee-c3d7-41dc-b90d-a3831ef83d5b.png
Download 331195693-fd67dbee-c3d7-41dc-b90d-a3831ef83d5b.png
12:11:43
@_discord_644849095785054218:t2bot.iobjornregnell * I was just hit by this bug when bumping to Scala 3.4.1:
https://github.com/sbt/sbt/issues/7560
12:17:54
@_discord_659458872486002691:t2bot.iofel_her Is there an easy way to run my to run my tests against different versions of a library I depend on to see with which versions everything works? 14:58:12
@_discord_659458872486002691:t2bot.iofel_her * Is there an easy way to run my tests against different versions of a library I depend on to see with which versions everything works? 15:08:22
@_discord_721474407935246456:t2bot.iosom-snytt I commented on the ticket that https://github.com/scala/scala3/pull/20409 might have related information. (I don't know anything about it, but it says sbt and module-info.) 16:02:46
@_discord_697050007718723586:t2bot.ioadpi2 In build.sbt there is a Global / semanticdbVersion := "4.5.13". This is incorrect. You need to bump the version to 4.9.4. And then if you can open a PR that would be great. Or I'll do it next week. 16:07:24
@_discord_697050007718723586:t2bot.ioadpi2 * In build.sbt line 50 there is a Global / semanticdbVersion := "4.5.13". This is incorrect. You need to bump the version to 4.9.4. And then if you can open a PR that would be great. Or I'll do it next week. 16:07:46
@_discord_644849095785054218:t2bot.iobjornregnell Aha!! See my question to you on reproduction here https://github.com/sbt/sbt/issues/7560 16:19:47
@_discord_583167330566275072:t2bot.iosethtisue dead easy, no — not that I can think of, anyway

easy-ish, yes, I think so; write a custom command that changes the version, runs the tests, changes the version again, runs the tests again, and so on

it's up to you whether it's easier to write that command using the sbt APIs, or whether it's easier to handwrite or code-generate a shell script to drive sbt through these steps. or to do it in a GitHub Actions (or other CI system) matrix
16:21:04
@_discord_583167330566275072:t2bot.iosethtisue * dead easy, no — not that I can think of, anyway

easy-ish, yes, I think so; for example, you could write a custom command that changes the version, runs the tests, changes the version again, runs the tests again, and so on

it's up to you whether it's easier to write that command using the sbt APIs, or whether it's easier to handwrite or code-generate a shell script to drive sbt through these steps. or to do it in a GitHub Actions (or other CI system) matrix
16:21:29
@_discord_583167330566275072:t2bot.iosethtisue offhand I think I'd lean towards a CI matrix? but not really sure, ymmv 16:22:01
@_discord_644849095785054218:t2bot.iobjornregnell I'd use os-lib in a scala-cli script. 16:22:05
@_discord_644849095785054218:t2bot.iobjornregnell * I'd use os-lib in a scala-cli script.
https://github.com/com-lihaoyi/os-lib
See os.proc
16:22:43
@_discord_659458872486002691:t2bot.iofel_herRedacted or Malformed Event16:23:04
@_discord_644849095785054218:t2bot.iobjornregnell * I'd use os-lib in a scala-cli script.
https://github.com/com-lihaoyi/os-lib
See os.proc
and call the native sbt --client from an os.proc
16:23:26
@_discord_644849095785054218:t2bot.iobjornregnell * I'd use os-lib in a scala-cli script.
https://github.com/com-lihaoyi/os-lib
See os.proc
and call the native sbt --client from an os.proc
os lib is available by a simple
//> using toolkit default

in scala-cli
16:24:02
@_discord_659458872486002691:t2bot.iofel_her sethtisue bjornregnell Thank you both. Yeah, I might just script it.
Is this something that project-matrix can do? I think it can do different scala-versions and platforms and has axis you can configure. But I haven't completely understood it yet.
16:24:29
@_discord_659458872486002691:t2bot.iofel_her * sethtisue bjornregnell Thank you both. Yeah, I might just script it.
Is this (different dependencies) something that project-matrix can do? I think it can do different scala-versions and platforms and has axis you can configure. But I haven't completely understood it yet.
16:24:39
@_discord_644849095785054218:t2bot.iobjornregnell Probably easier just to programatically replace some setting in build.sbt and run again... 16:25:11
@_discord_644849095785054218:t2bot.iobjornregnell But you could probably write an sbt plugin; if you put scala code in the project folder it is available in your build 16:25:49
@_discord_644849095785054218:t2bot.iobjornregnell * But you could probably instead write an sbt plugin; if you put scala code in the project folder it is available in your build 16:26:00
@_discord_644849095785054218:t2bot.iobjornregnell https://www.scala-sbt.org/1.x/docs/Plugins.html 16:26:20
@_discord_583167330566275072:t2bot.iosethtisue how big is n here? n = 2? n = 10? might change how I feel about it 16:26:36
@_discord_659458872486002691:t2bot.iofel_her I think 2 scala versions and 5 dependency versions 16:27:19
@_discord_583167330566275072:t2bot.iosethtisue do you need to publish separately for different versions of the library? or just run the tests? 16:27:35

Show newer messages


Back to Room ListRoom Version: 9