-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add "Eclipse JDT Language Server" as the default lsp server for Java #2510
Comments
These changes look good - would you like to submit a PR for the languages.toml change and then update the wiki when that's merged? |
i keep getting this lsp error at the start of java files. |
Done
… On May 19, 2022, at 4:05 PM, Michael Davis ***@***.***> wrote:
These changes look good - would you like to submit a PR for the languages.toml change and then update the wiki when that's merged?
—
Reply to this email directly, view it on GitHub <#2510 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ANYXUZZSLBBSCBHRXW673VTVK23JJANCNFSM5WNRMIZQ>.
You are receiving this because you authored the thread.
|
@Thomas-Jack |
I am having the same problem. They have an open issue about it, and it looks like most editors adapt to them... |
@KingTheGuy I had the same error and fixed it by adding following minimal <project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<version>1</version>
<build>
<sourceDirectory>${project.basedir}/src</sourceDirectory>
</build>
</project> Also make sure you don't have any |
i actaully ended "fixing" my issues.
the "-configuration" "-data" are the key parts here. someone in helix's matrix chat helped me with it. what they did was basically copy the config that nvim-lspconfig has, those key parts that i mentioned. |
https://github.com/eruizc-dev/jdtls-launcher git clone https://github.com/eruizc-dev/jdtls-launcher.git
Cloning into 'jdtls-launcher'...
remote: Enumerating objects: 241, done.
remote: Counting objects: 100% (85/85), done.
remote: Compressing objects: 100% (52/52), done.
remote: Total 241 (delta 43), reused 50 (delta 28), pack-reused 156
Receiving objects: 100% (241/241), 48.74 KiB | 9.75 MiB/s, done.
Resolving deltas: 100% (125/125), done.
$ cd jdtls-launcher
$ ls
CONTRIBUTING.md install.sh jdtls-launcher.sh LICENSE README.md
$ ./install.sh
INFO: Downloading JDTLS-LAUNCHER
-#O=# # #
INFO: Extracting JDTLS-LAUNCHER
INFO: Creating symlink at /home/gy/.local/bin/jdtls
Installing jdtls...
jdt-language-server-1.28.0-202309221544 is going to be installed
########################################################################################################################### 100.0%########################################################################################################################### 100.0%
Installing lombok...
########################################################################################################################### 100.0%
Lombok installation succesfull
JDTLS installation succesfull
INFO: Installation successful
INFO: Ensure /home/gy/.local/bin is in path end |
In my case,
P/S: I'm sure there is a more clean way to do this without forking jdtls-launcher. |
Change languages.toml to include the Eclipse JDT Language Server as the default server.
[[language]] name = "java" scope = "source.java" injection-regex = "java" file-types = ["java"] roots = ["pom.xml"] + language-server = { command = "jdtls" } indent = { tab-width = 4, unit = " " }
Change the wiki to direct users to installation instructions for Eclipse JDT Language Server
The text was updated successfully, but these errors were encountered: