Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Update rules-scala of Scala #3832

Merged
merged 1 commit into from
May 15, 2022

Conversation

thinker0
Copy link
Member

@thinker0 thinker0 commented May 14, 2022

Update rules-scala of Scala

https://github.com/bazelbuild/rules_scala#getting-started

The following error has been resolved in the JDK higher version.

ERROR: /Users/thinker0/opensource/heron/heron/api/tests/scala/BUILD:1:11: scala //heron/api/tests/scala:api-scala-test failed: (Exit 1): scalac failed: error executing command bazel-out/darwin-fastbuild/bin/external/io_bazel_rules_scala/src/java/io/bazel/rulesscala/scalac/scalac @bazel-out/darwin-fastbuild/bin/heron/api/tests/scala/api-scala-test_scalac_worker_input
error: java.io.IOError: java.lang.RuntimeException: /packages cannot be represented as URI
	at java.base/jdk.internal.jrtfs.JrtPath.toUri(JrtPath.java:175)
	at scala.tools.nsc.classpath.JrtClassPath.asURLs(DirectoryClassPath.scala:213)
...
	at scala.tools.nsc.Driver.process(Driver.scala:67)
	at io.bazel.rulesscala.scalac.ScalacProcessor.compileScalaSources(ScalacProcessor.java:219)
	at io.bazel.rulesscala.scalac.ScalacProcessor.processRequest(ScalacProcessor.java:69)
	at io.bazel.rulesscala.worker.GenericWorker.run(GenericWorker.java:114)
	at io.bazel.rulesscala.scalac.ScalaCInvoker.main(ScalaCInvoker.java:41)
Caused by: java.lang.RuntimeException: /packages cannot be represented as URI
	... 125 more
Exception in thread "main" java.io.IOError: java.lang.RuntimeException: /packages cannot be represented as URI
	at java.base/jdk.internal.jrtfs.JrtPath.toUri(JrtPath.java:175)
	at scala.tools.nsc.classpath.JrtClassPath.asURLs(DirectoryClassPath.scala:213)
	at scala.tools.nsc.MainClass.doCompile(Main.scala:32)
	at scala.tools.nsc.Driver.process(Driver.scala:67)
	at io.bazel.rulesscala.scalac.ScalacProcessor.compileScalaSources(ScalacProcessor.java:219)
	at io.bazel.rulesscala.scalac.ScalacProcessor.processRequest(ScalacProcessor.java:69)
	at io.bazel.rulesscala.worker.GenericWorker.run(GenericWorker.java:114)
	at io.bazel.rulesscala.scalac.ScalaCInvoker.main(ScalaCInvoker.java:41)
Caused by: java.lang.RuntimeException: /packages cannot be represented as URI
	... 125 more

@thinker0 thinker0 added the build label May 14, 2022

load("@io_bazel_rules_scala//:scala_config.bzl", "scala_config")

scala_config(scala_version = "2.12.15")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thinker0 thinker0 requested review from nicknezis and Code0x58 May 14, 2022 14:28
@nicknezis nicknezis merged commit 8d38e0e into apache:master May 15, 2022
@thinker0 thinker0 deleted the feature/update-rules-scala branch May 15, 2022 07:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants