| ▲ | marginalia_nu 2 hours ago |
| The fact we still don't have a decent Java language server is one of my canaries for the fact that LLMs still, generally speaking, can't ship. There is undeniably demand for this sort of thing, but nobody is coming to meet it. (jdtls, bless it for trying, is just not good) |
|
| ▲ | dtech an hour ago | parent | next [-] |
| Nah, there is little demand for it that's the reason. LLMs don't need a LSP, they work better without it often.
Most Java devs use IntelliJ or another IDE with its inbuilt thing.
For everyone else the existing one is good enough for incidental usage. So ~no one cares |
| |
|
| ▲ | jlgarhdez an hour ago | parent | prev | next [-] |
| I am actively working on a fast language server for Java and kotlin. I’m driving it daily and it’s much faster than IJ for what I need, although it doesn’t provide all the diagnostics that IJ does… It’s on github.com/pepegar/ktlsp if you’re curious. |
| |
| ▲ | jlgarhdez an hour ago | parent [-] | | To be clear, it’s not supported by a compiler, but rather plain tree sitter syntax parsing. I’m embarking on a bigger project to create a linter (and integrate) without relying on JVM or a compiler at all, but IDK when that’s gonna come. |
|
|
| ▲ | adamddev1 an hour ago | parent | prev | next [-] |
| Exactly. I've been trying to say this. Some people think that because people can write CRUD APIs and end-user apps with AI, no-one will need to write code anymore. There is so much to be built in terms of tooling and libraries where we need tight, solid, well-crafted, original, unique code. |
| |
| ▲ | marginalia_nu 36 minutes ago | parent [-] | | They have a real weakness when it comes to designing something that doesn't have a design precedence. There are no good java language servers, so it can't design a good java language server. You can also show this with by e.g. asking an LLM to design an internet search engine in Java, for which there doesn't exist very many examples, and my own Marginalia Search and my devlog is one of few design examples it has to reach for. Even mentioning nothing of MS just using similar constraints, you'll get a nearly identical design to Marginalia Search. Algorithm choices will be the same. Document and term IDs will encoded in a similar succinct fashion (in one of my experiments, the chosen design was binary compatible). Architecture will be the same. Services and components will to a significant degree have the same names and even using the same non-standard vocabulary. It isn't word for word identical, there sure are a lot of coincidental similarities that notably don't exist with search engines implemented in other languages. |
|
|
| ▲ | timanderson an hour ago | parent | prev | next [-] |
| How is the Oracle one? It has better reviews in VS Code marketplace than the Red Hat one (jdtls) |
|
| ▲ | whazor an hour ago | parent | prev | next [-] |
| why do you need a java language server? Let them use the same tooling you would use in CI |
| |
| ▲ | Cthulhu_ an hour ago | parent [-] | | These are two different things; a language server would be a standardized intermediate layer between said CI tooling and any editor for inline / realtime checking, code suggestions and formatting. |
|
|
| ▲ | TiredOfLife 2 hours ago | parent | prev [-] |
| The one in VS Code seems fine. It's not quite intellij level, but what is. And speaking on llm and lsp. The new PHP lsp PHPantom (with help of llms) is approaching jetbrains offering fast. |
| |
| ▲ | marginalia_nu 2 hours ago | parent | next [-] | | That's just a wrapper for jdtls. I mean it works on some projects, but fails on many gradle builds and is basically just running the Eclipse IDE headlessly. This is probably the one contender: https://github.com/georgewfraser/java-language-server and it kinda works, but it's also a bit lacking. | | |
| ▲ | spockz 2 hours ago | parent | next [-] | | Metal, the Scala LSP, seems to do Java just fine. When using it in VSC, I feel the limitations compared to IntelliJ are more coming from VSC than from the LSP. Dependencies etc just resolve fine, it is just the UI that is not as polished as IntelliJ’s. I try VSC with Metal twice a year. It works fine for small projects. But for bigger projects it lacks the more holistic approach that IntelliJ has and feels more like a text editor with smarts bolted on than an IDE. I’m using Zed a lot as well for Golang and a bit for Rust. For Java it is also hard to use and lacking the same polish. | |
| ▲ | pjmlp 13 minutes ago | parent | prev | next [-] | | The problem is using Gradle, for starters. | |
| ▲ | Squarex 2 hours ago | parent | prev [-] | | oracle has some lsp based on netbeans, but it's not great either |
| |
| ▲ | 2 hours ago | parent | prev [-] | | [deleted] |
|