Skip to content
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

Cross compile for Scala 3 WIP #343

Closed
wants to merge 2 commits into from
Closed

Cross compile for Scala 3 WIP #343

wants to merge 2 commits into from

Conversation

theon
Copy link
Member

@theon theon commented Aug 31, 2021

Currently stuck on shapeless. As it uses macros we can't use CrossVersion.for3Use2_13

milessabin/shapeless#1043

Current output:

[error] Bad symbolic reference. A signature in /Users/ian/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/chuusai/shapeless_2.13/2.3.7/shapeless_2.13-2.3.7.jar(shapeless/ScalaVersionSpecifics.class)
[error] refers to Aliases/T in package scala.reflect.macros which is not available.
[error] It may be completely missing from the current classpath, or the version on
[error] the classpath might be incompatible with the version used when compiling /Users/ian/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/chuusai/shapeless_2.13/2.3.7/shapeless_2.13-2.3.7.jar(shapeless/ScalaVersionSpecifics.class).
***** missing reference, looking for Type/T in class Aliases
decls = Scope{}JVM / Compile / compileIncremental 15s
[error] Bad symbolic reference. A signature in /Users/ian/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/chuusai/shapeless_2.13/2.3.7/shapeless_2.13-2.3.7.jar(shapeless/ScalaVersionSpecifics.class)
[error] refers to Type/T in class scala.reflect.macros.Aliases which is not available.
[error] It may be completely missing from the current classpath, or the version on
[error] the classpath might be incompatible with the version used when compiling /Users/ian/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/chuusai/shapeless_2.13/2.3.7/shapeless_2.13-2.3.7.jar(shapeless/ScalaVersionSpecifics.class).
***** missing reference, looking for Context/T in package scala.reflect.macros.whitebox
decls = Scope{}JVM / Compile / compileIncremental 15s
[error] Bad symbolic reference. A signature in /Users/ian/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/chuusai/shapeless_2.13/2.3.7/shapeless_2.13-2.3.7.jar(shapeless/ScalaVersionSpecifics.class)
[error] refers to Context/T in package scala.reflect.macros.whitebox which is not available.
[error] It may be completely missing from the current classpath, or the version on
[error] the classpath might be incompatible with the version used when compiling /Users/ian/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/chuusai/shapeless_2.13/2.3.7/shapeless_2.13-2.3.7.jar(shapeless/ScalaVersionSpecifics.class).

This was referenced Aug 31, 2021
@theon
Copy link
Member Author

theon commented Sep 13, 2021

TODO: If shapeless 2 doesn't make it to Scala 3 soon, investigate duplicating PathPart.scala and QueryKeyValue.scala into scala version specific source directories; a src/main/scala-3/ with this implementation and a src/main/scala-2.13/ with the shapeless implementation

@gregor-i
Copy link
Contributor

@theon I will provide a PR for scala version specific source directories.

@theon
Copy link
Member Author

theon commented Sep 14, 2021

Superseded by #350

@theon theon closed this Sep 14, 2021
@theon theon deleted the scala3 branch September 14, 2021 20:27
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

Successfully merging this pull request may close these issues.

2 participants