Skip to content

Please publish to Maven Central for Dotty 0.27 #446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Sciss opened this issue Sep 12, 2020 · 14 comments
Closed

Please publish to Maven Central for Dotty 0.27 #446

Sciss opened this issue Sep 12, 2020 · 14 comments
Assignees

Comments

@Sciss
Copy link

Sciss commented Sep 12, 2020

No description provided.

@SethTisue
Copy link
Member

@ashawley ? if you're otherwise occupied, I can do it

@SethTisue SethTisue self-assigned this Sep 15, 2020
@SethTisue
Copy link
Member

@SethTisue
Copy link
Member

staging repositories released, artifacts should be on their way to Maven Central

@SethTisue
Copy link
Member

@Sciss let us know if the artifacts are actually usable :-)

@Sciss
Copy link
Author

Sciss commented Sep 17, 2020

thanks, yes it seems to work

@Sciss
Copy link
Author

Sciss commented Sep 17, 2020

Hmmm. I am seeing a strange problem in a library that uses a library that uses scala-xml. sbt collapses with

[error] Modules were resolved with conflicting cross-version suffixes in ProjectRef(uri("file:/home/hhrutz/Documents/devel/ScalaCollider/"), "scalacollider"):
[error]    org.scala-lang.modules:scala-xml _0.27, _2.13
[error] java.lang.RuntimeException: Conflicting cross-version suffixes in: org.scala-lang.modules:scala-xml
[error]         at scala.sys.package$.error(package.scala:30)

I don't really understand where that comes from. Could it be that the maven artifact somehow has some _2.13 information in it? I have currently no explanation why this error would come up. Checking the dependency trees there is no reference at all to scala-xml_2.13 for my dotty versions.

But perhaps it's an sbt bug.

@SethTisue
Copy link
Member

SethTisue commented Sep 17, 2020

historically people have had weird problems with scala-xml in their builds because the 2.11 and 2.12 compilers depended on it. that dependency no longer exists in 2.13. is it a strictly 2.13/Dotty-only project?

it seems likely to be an sbt issue (either with sbt itself, or just in your build in particular) and not likely to be that something went wrong with the publishing here

are you on sbt 1.3.13 or newer?

@Sciss
Copy link
Author

Sciss commented Sep 17, 2020

1.3.13. is there something newer?

@Sciss
Copy link
Author

Sciss commented Sep 17, 2020

the project is 2.12, 2.13, dotty - but if I remove 2.12, problem persists.

@Sciss
Copy link
Author

Sciss commented Sep 17, 2020

hold on -- I used dependencyTree not test:dependencyTree. Seems a problem of ScalaTest

@SethTisue
Copy link
Member

1.3.13. is there something newer?

there's 1.4.0-RC1, but I would suggest sticking with 1.3.13 for now

historically people have had weird problems with scala-xml in their builds

see #195 and linked tickets — though it's only a guess, I don't know if it's relevant

@SethTisue
Copy link
Member

SethTisue commented Sep 17, 2020

oh hey maybe trying sbt 1.4.0-RC1 would help, actually — is this the feared "Scala 2/3 sandwich" sbt/sbt#5369 ?

@Sciss
Copy link
Author

Sciss commented Sep 17, 2020

d'oh

[info]   +-org.scalatest:scalatest_0.27:3.2.2
[info]     +-ch.epfl.lamp:dotty-library_0.27:0.27.0-RC1 [S]
[info]     +-org.scalatest:scalatest-core_0.27:3.2.2
[info]     | +-ch.epfl.lamp:dotty-library_0.27:0.27.0-RC1 [S]
[info]     | +-org.scala-lang.modules:scala-xml_2.13:1.2.0 [S]

I'm a bit confused now. Can dotty refer to Scala 2.13 libraries now? Is this advised or not?

@SethTisue
Copy link
Member

SethTisue commented Sep 17, 2020

Dotty can use Scala 2 libraries; that has worked for several years now. (As long as the libraries don't define macros, that is! And scala-xml doesn't.) The doc page on this is https://scalacenter.github.io/scala-3-migration-guide/docs/compatibility.html

But when there are multiple levels of dependencies involved, I'm less sure what the failure modes are.

It makes sense that the Dotty build of ScalaTest would depend on a Scala 2 build of scala-xml, since there was no Dotty build of scala-xml until recently. So maybe you shouldn't be trying to use scala-xml_0.27:2.0.0-M2 at all. Maybe you should stick with scala-xml_2.13:1.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants