mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 06:52:34 +03:00
Test that engine-runner does not depend on language-server
This commit is contained in:
parent
31290d1ba1
commit
83ef8ae617
@ -3621,7 +3621,6 @@ lazy val `engine-runner` = project
|
||||
.dependsOn(`engine-runner-common`)
|
||||
.dependsOn(`polyglot-api`)
|
||||
.dependsOn(`enso-test-java-helpers`)
|
||||
.dependsOn(`language-server` % Runtime)
|
||||
|
||||
lazy val buildSmallJdk =
|
||||
taskKey[File]("Build a minimal JDK used for native image generation")
|
||||
|
@ -20,6 +20,9 @@ public abstract class LanguageServerApi {
|
||||
var it =
|
||||
ServiceLoader.load(LanguageServerApi.class, LanguageServerApi.class.getClassLoader())
|
||||
.iterator();
|
||||
if (!it.hasNext()) {
|
||||
throw new WrongOption("No language server implementation found");
|
||||
}
|
||||
var impl = it.next();
|
||||
impl.runLanguageServer(line, config, logLevel);
|
||||
}
|
||||
|
@ -16,9 +16,6 @@ public class EngineRunnerDependenciesTest {
|
||||
public EngineRunnerDependenciesTest() {}
|
||||
|
||||
@Test
|
||||
// ignored for now as engine-runner still has "Runtime" dependency on language-server and that one
|
||||
// appears in test classpath - remove once language-server is packaged as its own JAR file
|
||||
@Ignore
|
||||
public void unableToLoadClassFromLanguageServerProject() {
|
||||
try {
|
||||
var b = new CommandLine.Builder();
|
||||
|
Loading…
Reference in New Issue
Block a user