Skip to content

Commit ef0a653

Browse files
committed
Make GroovyClassLoader consistent with nf-lang
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
1 parent 09bff6b commit ef0a653

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/nextflow/lsp/services/config/ConfigAstCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public ConfigAstCache() {
4949

5050
private static LanguageServerCompiler createCompiler() {
5151
var config = createConfiguration();
52-
var classLoader = new GroovyClassLoader(Thread.currentThread().getContextClassLoader(), config, true);
52+
var classLoader = new GroovyClassLoader();
5353
return new LanguageServerCompiler(config, classLoader);
5454
}
5555

src/main/java/nextflow/lsp/services/script/GroovyLibCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ List<ClassNode> load(String rootUri) {
7676
var cachedClasses = new ArrayList<ClassNode>();
7777
var config = new CompilerConfiguration();
7878
config.getOptimizationOptions().put(CompilerConfiguration.GROOVYDOC, true);
79-
var classLoader = new GroovyClassLoader(Thread.currentThread().getContextClassLoader(), config, true);
79+
var classLoader = new GroovyClassLoader();
8080
var compilationUnit = new CompilationUnit(config, null, classLoader);
8181
for( var uri : uris ) {
8282
var lastModified = getLastModified(uri);

src/main/java/nextflow/lsp/services/script/ScriptAstCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public ScriptAstCache() {
6565

6666
private static LanguageServerCompiler createCompiler() {
6767
var config = createConfiguration();
68-
var classLoader = new GroovyClassLoader(Thread.currentThread().getContextClassLoader(), config, true);
68+
var classLoader = new GroovyClassLoader();
6969
return new LanguageServerCompiler(config, classLoader);
7070
}
7171

0 commit comments

Comments
 (0)