jlahoda opened a new pull request #629: Language Server Protocol client URL: https://github.com/apache/incubator-netbeans/pull/629 This is a crude prototype of a Language Server Protocol client for NetBeans. It currently supports: -diagnostics from the server -go-to-declaration -code completion It uses the Eclipse LSP4J (https://github.com/eclipse/lsp4j) to handle the protocol and to provide the model for the messages (I used to have a custom implementation of the protocol, but it seemed wasteful to maintain that). There are currently two ways to use a server from the IDE: -a module provides bindings for a particular language, starts and registers a LS. I have a crude prototype of such a module using KotlinLanguageServer, but not good enough to that publish, yet. -the user starts the LS manually somehow, and then binds the IDE to the running LS. To see the client in action using the latter approach, the following can be used: -clone https://github.com/fwcd/KotlinLanguageServer --build it (gradle install) --unpack build/distributions/kotlin-language-server-0.1.1.zip somewhere -clone https://github.com/jlahoda/nb-lsp-helpers --build it (ant jar in run-lsp) --go to run-lsp/dist and run: "java -jar run-lsp.jar <path-to-the-kotlin-server>/bin/kotlin-language-server" -run NetBeans, be sure there are no files opened in the editor, use the search feature in the top right corner, type "Connect", select "Connect to Language Server" action. Fill in your project's root (e.g. the path to the checked-out KotlinLanguageServer), port is 9965, extensions "kt". In a while the IDE should connect to a the LS. Then open a kt file (from the specified project), and the above features should work.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
