java-language-server icon indicating copy to clipboard operation
java-language-server copied to clipboard

Java LSP + Monaco Editor

Open boroda4436 opened this issue 5 years ago • 6 comments

The requirement is to enable code autocompletion in Monaco Editor for Java language.

Intro

According to this article, current repo is the right implementation for LSP.

As instruction, I am using this article.

Problem

How to launch (or how to connect) this repo with MonacoEditor? I can't understand how I should run this repo on the standalone server and establish the WebSocket connection.

Thanks a lot in advice!

boroda4436 avatar Jul 01 '20 11:07 boroda4436

I managed to do so, contact me for more info

Gilwe avatar Feb 04 '21 09:02 Gilwe

Hey @Gilwe can you leave any clues for anyone else who is interested in doing the same thing?

georgewfraser avatar Apr 09 '21 22:04 georgewfraser

@Gilwe Please share how did you manage to do so. Thanks in advance

Shubham567 avatar May 17 '21 14:05 Shubham567

I managed to do so, contact me for more info

Hey @Gilwe, How did you manage bro? Can you share?

amitbkumar avatar Jul 16 '21 15:07 amitbkumar

Sorry for not answering for a long time, wasn't notified for some reason...

Anyway, there's a closed PR around here that allows you to create a fat jar.

So I created the fat jar and ran it locally to see that it works.

For the monaco part, I cloned and ran the web example in https://github.com/TypeFox/monaco-languageclient

And used the fat jar instead of the python server that is featured in the example.

@georgewfraser @amitbkumar

Gilwe avatar Jul 16 '21 15:07 Gilwe

@boroda4436 This is the PR for creating a fat jar https://github.com/georgewfraser/java-language-server/pull/77

Gilwe avatar Jul 20 '21 07:07 Gilwe