Skip to content

Commit 0eab5e4

Browse files
snjezafbricon
authored andcommitted
Cannot set up dev environment following contributing instruction
Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
1 parent 2c7f35a commit 0eab5e4

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

CONTRIBUTING.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,29 @@ This will build and place the binaries under the `server` folder. Alternately yo
4848

4949
While developing the language server and the extension, you don't need to deploy the server every time to try out changes. Instead you can run the language server out of its Eclipse workspace:
5050

51+
### _Launch Extension - Remote Server_
52+
5153
- Open VSCode on the `vscode-java` folder
5254
- In the debug viewlet, run the launch _Launch Extension - Remote Server_
5355
- The extension will open a socket on port 3333 and will wait for the JDT language server to connect
5456
- In Eclipse, run the JDT language server as an Eclipse application.
55-
- Create a debug configuration of type _Eclipse Application_.
57+
- Create a debug configuration of type _Eclipse Application_.
5658
- in the main tab of the debug configuration set the product to `org.eclipse.jdt.ls.core.product`.
5759
- in the Environment tab, define a variable `CLIENT_PORT` with value `3333`.
5860
- if your workspace contains 'org.eclipse.jdt.ui', use the Plug-Ins tab in the debug configuration to exclude the plug-in. The presence of 'org.eclipse.jdt.ui' will cause the language server to hang.
61+
- You can also use the `jdt.ls.remote.server` launch configuration.
62+
5963
- In the debug console of VSCode you can see if the connection was successful.
6064
- When the server is running breakpoints can be reached and hot code replace can be used to make fixes without restarting the server.
6165
- You can modify `launch.json` to use a different port:
62-
- Modify `SERVER_PORT` to specify the port the JST LS server should connect to.
66+
- Modify `SERVER_PORT` to specify the port the JDT LS server should connect to.
67+
68+
### _Launch Extension - JDTLS Client_
69+
70+
- start the `jdt.ls.socket-stream` launch configuration in Eclipse
71+
- start the _Launch Extension - JDTLS Client_ in VS Code
72+
- You can modify `launch.json` to use a different port:
73+
- Modify `JDTLS_CLIENT_PORT` to specify the port VS Code should connect to.
6374

6475
## Sideloading
6576

0 commit comments

Comments
 (0)