Skip to content

Instantly share code, notes, and snippets.

@neshkeev
Created September 19, 2019 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neshkeev/401bd70b6708a9d9dc2152aced2e1173 to your computer and use it in GitHub Desktop.
Save neshkeev/401bd70b6708a9d9dc2152aced2e1173 to your computer and use it in GitHub Desktop.
[info] Loading settings for project dotty-build-build from build.sbt ...
[info] Loading project definition from /home/me/dotty/project/project
[info] Loading settings for project dotty-build from plugins.sbt,build.sbt ...
[info] Loading project definition from /home/me/dotty/project
[info] Loading settings for project dotty from build.sbt ...
[info] Resolving key references (15694 settings) ...
[info] Set current project to dotty (in build file:/home/me/dotty/)
[info] Checking out Scala.js source version 1.0.0-M8
[warn] Multiple main classes detected. Run 'show discoveredMainClasses' to see the list
[info] Fast optimizing /home/me/dotty/tests/sjs-junit/../out/bootstrap/sjsJUnitTests/scala-0.19/sjsjunittests-test-fastopt.js
[error] Referring to non-existent method java.nio.StringCharBuffer.slice()java.nio.Buffer
[error] called from org.scalajs.testsuite.javalib.io.StringReaderTest.should$undprovide$undread$undfrom$undCharBuffer()void
[error] called from org.scalajs.testsuite.javalib.io.StringReaderTest$scalajs$junit$bootstrapper$.invokeTest(java.lang.Object,java.lang.String)scala.concurrent.Future
[error] called from private org.scalajs.junit.JUnitTask.$$anonfun$executeTestMethod$7(org.scalajs.junit.Bootstrapper,java.lang.Object,org.scalajs.junit.TestMetadata)scala.concurrent.Future
[error] called from private org.scalajs.junit.JUnitTask.$$anonfun$executeTestMethod$6(org.scalajs.junit.Bootstrapper,java.lang.Object,org.scalajs.junit.TestMetadata)scala.concurrent.Future
[error] called from private org.scalajs.junit.JUnitTask.$$anonfun$executeTestMethod$5(org.scalajs.junit.TestMetadata,org.scalajs.junit.Bootstrapper,java.lang.Object)scala.concurrent.Future
[error] called from private org.scalajs.junit.JUnitTask.executeTestMethod(org.scalajs.junit.Bootstrapper,org.scalajs.junit.TestMetadata,org.scalajs.junit.Reporter)scala.concurrent.Future
[error] called from private org.scalajs.junit.JUnitTask.runTests$1(scala.collection.immutable.List,org.scalajs.junit.Reporter,scala.runtime.IntRef,scala.runtime.IntRef,org.scalajs.junit.Bootstrapper,scala.runtime.IntRef)scala.concurrent.Future
[error] called from private org.scalajs.junit.JUnitTask.$$anonfun$executeTests$7(org.scalajs.junit.Bootstrapper,org.scalajs.junit.Reporter,scala.runtime.IntRef,scala.runtime.IntRef,scala.runtime.IntRef,java.lang.Void)scala.concurrent.Future
[error] called from private org.scalajs.junit.JUnitTask.executeTests(org.scalajs.junit.Bootstrapper,org.scalajs.junit.Reporter)scala.concurrent.Future
[error] called from private org.scalajs.junit.JUnitTask.$$anonfun$execute$2(org.scalajs.junit.Reporter,org.scalajs.junit.Bootstrapper)scala.concurrent.Future
[error] called from org.scalajs.junit.JUnitTask.execute(sbt.testing.EventHandler,[sbt.testing.Logger,scala.Function1)void
[error] called from private org.scalajs.testing.bridge.TestAdapterBridge$.$$anonfun$executeFun$1(sbt.testing.Runner,int,org.scalajs.testing.common.ExecuteRequest)scala.concurrent.Future
[error] called from private org.scalajs.testing.bridge.TestAdapterBridge$.executeFun(int,sbt.testing.Runner)scala.Function1
[error] called from private org.scalajs.testing.bridge.TestAdapterBridge$.$$anonfun$createRunnerFun$1(boolean,org.scalajs.testing.common.RunnerArgs)void
[error] called from private org.scalajs.testing.bridge.TestAdapterBridge$.createRunnerFun(boolean)scala.Function1
[error] called from org.scalajs.testing.bridge.TestAdapterBridge$.start()void
[error] called from org.scalajs.testing.bridge.Bridge$.start()void
[error] called from core module module initializers
[error] involving instantiated classes:
[error] org.scalajs.testsuite.javalib.io.StringReaderTest
[error] org.scalajs.testsuite.javalib.io.StringReaderTest$scalajs$junit$bootstrapper$
[error] org.scalajs.junit.JUnitTask
[error] org.scalajs.testing.bridge.TestAdapterBridge$
[error] org.scalajs.testing.bridge.Bridge$
[error] Referring to non-existent method java.nio.HeapCharBuffer.slice()java.nio.Buffer
[error] called from org.scalajs.testsuite.javalib.io.StringReaderTest.should$undprovide$undread$undfrom$undCharBuffer()void
[error] called from org.scalajs.testsuite.javalib.io.StringReaderTest$scalajs$junit$bootstrapper$.invokeTest(java.lang.Object,java.lang.String)scala.concurrent.Future
[error] called from private org.scalajs.junit.JUnitTask.$$anonfun$executeTestMethod$7(org.scalajs.junit.Bootstrapper,java.lang.Object,org.scalajs.junit.TestMetadata)scala.concurrent.Future
[error] called from private org.scalajs.junit.JUnitTask.$$anonfun$executeTestMethod$6(org.scalajs.junit.Bootstrapper,java.lang.Object,org.scalajs.junit.TestMetadata)scala.concurrent.Future
[error] called from private org.scalajs.junit.JUnitTask.$$anonfun$executeTestMethod$5(org.scalajs.junit.TestMetadata,org.scalajs.junit.Bootstrapper,java.lang.Object)scala.concurrent.Future
[error] called from private org.scalajs.junit.JUnitTask.executeTestMethod(org.scalajs.junit.Bootstrapper,org.scalajs.junit.TestMetadata,org.scalajs.junit.Reporter)scala.concurrent.Future
[error] called from private org.scalajs.junit.JUnitTask.runTests$1(scala.collection.immutable.List,org.scalajs.junit.Reporter,scala.runtime.IntRef,scala.runtime.IntRef,org.scalajs.junit.Bootstrapper,scala.runtime.IntRef)scala.concurrent.Future
[error] called from private org.scalajs.junit.JUnitTask.$$anonfun$executeTests$7(org.scalajs.junit.Bootstrapper,org.scalajs.junit.Reporter,scala.runtime.IntRef,scala.runtime.IntRef,scala.runtime.IntRef,java.lang.Void)scala.concurrent.Future
[error] called from private org.scalajs.junit.JUnitTask.executeTests(org.scalajs.junit.Bootstrapper,org.scalajs.junit.Reporter)scala.concurrent.Future
[error] called from private org.scalajs.junit.JUnitTask.$$anonfun$execute$2(org.scalajs.junit.Reporter,org.scalajs.junit.Bootstrapper)scala.concurrent.Future
[error] called from org.scalajs.junit.JUnitTask.execute(sbt.testing.EventHandler,[sbt.testing.Logger,scala.Function1)void
[error] called from private org.scalajs.testing.bridge.TestAdapterBridge$.$$anonfun$executeFun$1(sbt.testing.Runner,int,org.scalajs.testing.common.ExecuteRequest)scala.concurrent.Future
[error] called from private org.scalajs.testing.bridge.TestAdapterBridge$.executeFun(int,sbt.testing.Runner)scala.Function1
[error] called from private org.scalajs.testing.bridge.TestAdapterBridge$.$$anonfun$createRunnerFun$1(boolean,org.scalajs.testing.common.RunnerArgs)void
[error] called from private org.scalajs.testing.bridge.TestAdapterBridge$.createRunnerFun(boolean)scala.Function1
[error] called from org.scalajs.testing.bridge.TestAdapterBridge$.start()void
[error] called from org.scalajs.testing.bridge.Bridge$.start()void
[error] called from core module module initializers
[error] involving instantiated classes:
[error] org.scalajs.testsuite.javalib.io.StringReaderTest
[error] org.scalajs.testsuite.javalib.io.StringReaderTest$scalajs$junit$bootstrapper$
[error] org.scalajs.junit.JUnitTask
[error] org.scalajs.testing.bridge.TestAdapterBridge$
[error] org.scalajs.testing.bridge.Bridge$
[error] org.scalajs.linker.LinkingException: There were linking errors
[error] at org.scalajs.linker.frontend.BaseLinker.reportErrors$1(BaseLinker.scala:95)
[error] at org.scalajs.linker.frontend.BaseLinker.$anonfun$analyze$5(BaseLinker.scala:103)
[error] at scala.util.Success.$anonfun$map$1(Try.scala:251)
[error] at scala.util.Success.map(Try.scala:209)
[error] at scala.concurrent.Future.$anonfun$map$1(Future.scala:288)
[error] at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:29)
[error] at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:29)
[error] at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)
[error] at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1425)
[error] at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
[error] at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
[error] at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
[error] at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
[error] at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
[error] (sjsJUnitTests / Test / fastOptJS) org.scalajs.linker.LinkingException: There were linking errors
[error] Total time: 4 s, completed Sep 19, 2019, 10:18:32 PM
@FabioPinheiro
Copy link

FabioPinheiro commented Oct 25, 2019

Hi @neshkeev
I got exactly the same error when was trying to follow the instructions "how-to-dotty-scalajs.md"
https://gist.github.com/sjrd/e0823a5bddbcef43999cdaa032b1220c

Did you fine a solution for it, or can you point me to a ticket/(or anything else) where is talking about this?
I appreciate any help from the start

@neshkeev
Copy link
Author

neshkeev commented Oct 28, 2019

@FabioPinheiro , the test has to be fixed. There is no separated issue, if a fix is trivial then you can fix without an issue, otherwise it would be great if you found the root cause and create an issue. The fix is optional

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment