swc4j icon indicating copy to clipboard operation
swc4j copied to clipboard

Lsp

Open HanzoDev1375 opened this issue 3 months ago • 4 comments

Hello, I have a question on my mind: is it possible to create a powerful LSP with your code parser?

I tried to create one with Antlr4 but it doesn't understand the dot after the members, not even the vowels.

HanzoDev1375 avatar Sep 12 '25 08:09 HanzoDev1375

Thank you for raising this issue. My blog explains why Antlr4 is so incompetent as you've experienced.

swc4j is ideal as a core of an LSP. My question is: Why do you want to build an LSP in Java?

caoccao avatar Sep 12 '25 13:09 caoccao

Thank you for raising this issue. My blog explains why Antlr4 is so incompetent as you've experienced.

swc4j is ideal as a core of an LSP. My question is: Why do you want to build an LSP in Java?

Because there is practically no good and powerful JavaScript and TypeScript IDE for mobile. Whatever there is is paid. My goal is to create a JavaScript LSP for users. Your library is very good, so we need to create it with it. And I read about antlr4 on your blog, it's not very interesting.

HanzoDev1375 avatar Sep 12 '25 14:09 HanzoDev1375

I see. swc4j is the one in your case, I suppose. Good luck.

caoccao avatar Sep 12 '25 14:09 caoccao

@caoccao Can you create a separate module yourself? Stupid GTP chat. I don't have a laptop either. I code on my phone. And my phone is almost dead. The completion doesn't work. I have to write the code manually.

HanzoDev1375 avatar Sep 12 '25 15:09 HanzoDev1375