Live data from Hacker News

Escape IntelliJ: Scala and Kotlin LSPs on Emacs Eglot

jointhefreeworld.org

101–110 of 127 posts

Re: Escape IntelliJ: Scala and Kotlin LSPs on Emacs Eglot

#101

worth noting the kotlin-lsp here is jetbrains own, basically intellij analysis engine running headless. you're just dropping the intellij gui

Java LSPs are essentially the same approach, headless Eclipse JDT or NetBeans.

While Metals for Scala was an overhaul from the former Eclipse plugin (and Ensime) plus early experiments embedded in the Scala 3 compiler. And Metals v2 is yet another rewrite.

Metals is architectured in a completely different way, see the BSP: https://build-server-protocol.github.io

Re: Escape IntelliJ: Scala and Kotlin LSPs on Emacs Eglot

#102
post #44

Earlier quoted context omitted.

Funnily that's the one feature I dislike in IntelliJ and thus relies on another GUI Otherwise I like having everything in one place: code, containers, databases, remotes...

What are you using instead?

https://git-fork.com/ on MacOS/Win

https://sourcegit-scm.github.io/ on Linux

Re: Escape IntelliJ: Scala and Kotlin LSPs on Emacs Eglot

#103
post #71

Earlier quoted context omitted.

IntelliJ (actually Android Studio based on IntelliJ) was my first real IDE and real programming experience. I was so blown away ! Almost 15 years later, nothing else matches the out of the box experience of IntelliJ, atleast for JVM based languages.

Add in VS for .NET languages and C++ (hot reload, debugging capabilities), and the beloved Delphi/C++ Builder duo as well. To this day there isn't anything like C++ Builder, if you want the famous VB dev experience, but with C++.

Borland was way ahead of its time, nowadays there is no non-AI way to build a whole UI app in on afternoon like with Delphi/C++ Builder. Pity their greed prevented them from dominating via simplicity.

Re: Escape IntelliJ: Scala and Kotlin LSPs on Emacs Eglot

#104

Earlier quoted context omitted.

Counterpoint: use intellij on full stack apps with cdk, react, sqls and whatnot, multiple open at a time, without any problem.

I've tried using RustRover over WSL2 multiple times with every new release, but it's been a huge disappointment every time. My fans constantly spin like crazy, memory vanishes into thin air, and typing is super laggy - it even overwrites random sections of the file sometimes. On top of that, the built-in terminal is totally unusable because it craps out and freezes the app whenever there's a large output. PyCharm, on…

It sounds like IntelliJ is out of memory and the GC is thrashing. Increase the IDE's heap size(1), and it will probably work fine.

(1) It's a menu option these days.

Re: Escape IntelliJ: Scala and Kotlin LSPs on Emacs Eglot

#105
post #71

Earlier quoted context omitted.

IntelliJ (actually Android Studio based on IntelliJ) was my first real IDE and real programming experience. I was so blown away ! Almost 15 years later, nothing else matches the out of the box experience of IntelliJ, atleast for JVM based languages.

Add in VS for .NET languages and C++ (hot reload, debugging capabilities), and the beloved Delphi/C++ Builder duo as well. To this day there isn't anything like C++ Builder, if you want the famous VB dev experience, but with C++.

I have used both VS and Rider for .NET development and for me Rider beats VS by a mile.

Re: Escape IntelliJ: Scala and Kotlin LSPs on Emacs Eglot

#106

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)

I had this thought yesterday where I wondered if there was a way to run an Android app in the browser (definitely non trivial, but something I would expect to exist in some form) and nothing. If LLMs are as good as people say they are, I should be seeing plenty of useful projects like that popping up but.... I just see harnesses and other random things

Re: Escape IntelliJ: Scala and Kotlin LSPs on Emacs Eglot

#107

Earlier quoted context omitted.

We have a java compiler API nowadays that solves this.

It looks like that was added in Java SE 6, and doesn’t materially change the underlying problem. Have there been more recent developments?

I was thinking of JEP 484, which I guess technically isn't a compiler API as much as it is a class file API, but that's kind of a big deal for this type of work as probably the primary work the parts of the classpath you currently aren't editing, moreso than parsing a single .java-file, and the kludges we had before this API (e.g. ASM) were incredibly fragile.

Re: Escape IntelliJ: Scala and Kotlin LSPs on Emacs Eglot

#108

IntelliJ Git integration is so good I wish it would be a standalone client.

And I hate it with a passion. The fact they they introduced their own terminology, their own lifecycle, always makes me doubt what will happen when I use any feature of their client.

Magit OTOH stays much closer to the true git. Although for anything slightly more esoteric I still prefer native git cli.

Re: Escape IntelliJ: Scala and Kotlin LSPs on Emacs Eglot

#110
post #39

Earlier quoted context omitted.

The problem is using Gradle, for starters.

I do enjoy my 3s build times though, even if it comes at a considerable cost of sanity points whenever anything needs changing or doing in the build.

Out of curiosity, have you had a short at https://mill-build.org/mill/comparisons/gradle.html ?
Post reply on HN