Hi,

I have implemented a new language based on Truffle&Graal

https://github.com/MobMonRob/DSL4GeometricAlgebra

and I want to use the editing features, which are provided by the generic
GraalVM-language-server in the netbeans-ide.

In the netbeans editor options it is possible to add a command line to start a
language server and to register it to a mime-type.

I have done this as follows:

./graalvm-ce-java17-22.3.2/bin/polyglot --experimental-options --lsp test.ocga

I am wondering that I have to add a concrete file but it does not work without
it - meaning that without giving a file polyglot does not start.

If I open a file of my .ocga-file-type in the netbeans editor the command line
is executed but I got the error message that the language is unknown. I can
reproduce this behaviour by doing the same in a shell.

If I add the --language flag with "ocga" as the name of my language which is
not somewhere registered  (I do not know how to do that) Netbeans is crashed

I have also found the graalvm-lsp als a jar file lsp.jar in the graalvm folder.
So it will be nice to use this directly to start the language-server but I
cauld not found any hints about how to do it.


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