Skip to content

Conversation

@Gedochao
Copy link
Contributor

@Gedochao Gedochao commented Nov 4, 2025

 >==== Running 'diagnostics' from BspTestDefinitions
[913] java.lang.NoClassDefFoundError: ch/epfl/scala/bsp4j/StatusCode$
[913]   at scala.cli.integration.BspTestDefinitions.$init$$$anonfun$7$$anonfun$1$$anonfun$1(BspTestDefinitions.scala:301)
[913]   at scala.cli.integration.BspTestDefinitions.$init$$$anonfun$7$$anonfun$1$$anonfun$adapted$1(BspTestDefinitions.scala:326)
[913]   at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:687)
[913]   at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:467)
[913]   at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395)
[913]   at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
[913]   at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
[913]   at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
[913]   at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
[913]   at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
[913] Caused by: java.lang.ClassNotFoundException: ch.epfl.scala.bsp4j.StatusCode$
[913]   at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
[913]   at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
[913]   at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
[913]   ... 10 more

Despite bumping to expecty 0.17.1, this seems to still be happening.
There's something specific deeper in the Scala CLI integration test build at work, as I can't seem to minimize this anymore.

Copy link
Contributor Author

@Gedochao Gedochao left a comment

Choose a reason for hiding this comment

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

Raised this PR strictly for expecty reproduction's sake

val actualStatusCode = compileResp.getStatusCode
val expectedStatusCode = b.StatusCode.ERROR
expect(actualStatusCode == expectedStatusCode)
expect(compileResp.getStatusCode == b.StatusCode.ERROR)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i.e. this still throws the error.

@Gedochao Gedochao force-pushed the update/expecty-0.17.1-broken branch from 047160a to 639bece Compare November 4, 2025 18:52
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.

1 participant