Hi,

I want to start the GraalVM Language-Server as a Netbeans-Plugin and I run
into dependency-problems which I cannot resolve.

If I start the LSP outside netbeans all works fine:

https://github.com/orat/netbeans-ocga/blob/master/src/main/java/de/orat/math/
netbeans/ga/Test.java

So the bug is a netbeans problem and not a graalvm problem.

Starting via ModulInstaller or LanguageServerProvider failed:

Failed to get the graalvm context: java.util.ServiceConfigurationError:
com.oracle.truffle.api.provider.InternalResourceProvider:
com.oracle.truffle.runtime.LibTruffleAttachResourceProvider not a subtype

I have also add an isssue with some further informations to reproduce the
error:

https://github.com/oracle/graal/issues/10031

I have tried a lot of different things:

1. Starting Netbeans with the GraalVM does not help
2. Trying to use the org.netbeans.lib.truffle.api and graal-sdk instead of using
only maven-central saved netbeans-independend libs, does not work, because the
libs delivered with the netbeans-ide 23 do not export some packages as public.
So I  got different error messages. Adding these packages (compiler,
nativeimage and word) by maven-dependency does not help. I got other error
messages

3. Starting Netbeans with additional options

-J-Dgraalvm.locatorDisabled=true -J--add-exports=org.graalvm.truffle/
com.oracle.truffle.api.nodes=ALL-UNNAMED -J--add-exports=org.graalvm.truffle/
com.oracle.truffle.api.exception=ALL-UNNAMED 
-J--add-exports=org.graalvm.truffle/
com.oracle.truffle.api=ALL-UNNAMED -J--add-exports=org.graalvm.truffle/
com.oracle.truffle.api.interop=ALL-UNNAMED

is done but makes no difference.

I have added by maven dependeny the exact some version of libs as delivered
with netbeans-23: 24.0.0.

The problem completly blocks further development. I have spend a couple of
days in fixing this but now I have no more ideas.

Any ideas?

Best regards
Oliver



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to