-
Enhancement
-
Resolution: Unresolved
-
P3
-
None
-
None
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
I need to incorporate in an application a Java editor with text auto-completion and script running capabilities. Is it possible to use classes from JShell?
The input parameters are the script text. I should be able to execute it and get back an object.
If I provide a text position inside the script I should be able to get a list of completion items.
Also if there are compilation errors get them into a list.
Is it possible to expose and document part of the JShell classes for this?
Currently I tried implementing this using Groovy and https://github.com/GroovyLanguageServer/groovy-language-server. This is implementing https://github.com/eclipse-lsp4j/lsp4j.
But using directly the Java classes would be a benefit. Other tools who needs to run dynamic Java would be able to include the JShell features.
I need to incorporate in an application a Java editor with text auto-completion and script running capabilities. Is it possible to use classes from JShell?
The input parameters are the script text. I should be able to execute it and get back an object.
If I provide a text position inside the script I should be able to get a list of completion items.
Also if there are compilation errors get them into a list.
Is it possible to expose and document part of the JShell classes for this?
Currently I tried implementing this using Groovy and https://github.com/GroovyLanguageServer/groovy-language-server. This is implementing https://github.com/eclipse-lsp4j/lsp4j.
But using directly the Java classes would be a benefit. Other tools who needs to run dynamic Java would be able to include the JShell features.