Skip to content

Commit be381ca

Browse files
gselzerclaude
andcommitted
Unify Environment's search paths and classpath
Both are ordered places imports are resolved from; each server reads them as its language does. Nothing read the classpath. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent dcfcc54 commit be381ca

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/main/java/org/scijava/plugins/scripting/jython/PythonCompanion.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static PythonCompanion launch(final LanguageServerService servers,
112112
/** Where the server runs: its own Python, searching the Java stubs. */
113113
static Environment environment(final JavaStubs stubs) {
114114
return new Environment(null, Collections.singletonList(stubs.dir()
115-
.getAbsolutePath()), null, null);
115+
.getAbsolutePath()), null);
116116
}
117117

118118
// -- Documents --

‎src/test/java/org/scijava/plugins/scripting/jython/JythonServerCompletionTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public void testEnvironment() {
9393
final Environment env = PythonCompanion.environment(stubs);
9494
assertEquals(null, env.interpreter());
9595
assertEquals(Collections.singletonList(stubsDir.getAbsolutePath()), env
96-
.searchPaths());
96+
.paths());
9797
}
9898

9999
@Test

0 commit comments

Comments
 (0)