I am compiling, although, I’m not use LSP server too often.
AI told me, current model is eventually-refined semantic model.
What do you think? has the speed increased? better experience?
I am compiling, although, I’m not use LSP server too often.
AI told me, current model is eventually-refined semantic model.
What do you think? has the speed increased? better experience?
I’m going to try it tomorrow, great news ;)
My experience is way better than the last time I used it about 10 months ago. Back then it was very resource hungry and more of a problem than a solution (CPU spikes and bad responsiveness), but now it’s really good and helps to navigate the codebase and see docs in methods.
Just tried it again and it’s indeed much better. The thing I used to miss the most in a LSP was the auto-complete, specially for a language with such a rich standard library, but these days I mostly review code and the navigation features became even more important than it. Since the last version, they’ve been working pretty well.
Don’t know if @elbywan is around on the forums, but thank you so much for your work, man. This is really a game changer in tooling.
I said that I was going to test it tomorrow, I tried it now, now I’m getting ACTUAL CODE SUGGESTIONS! THIS IS AN LSP!
Since I’m using NixOS, I had to make some package changes, so if anyone here is using NixOS too, you can use my fork of nixpkgs at the branch crystal_1_20_crystal_1_21 to install Crystal 1.21.0 with the latest crystalline commit. Comparing NixOS:master...Fijxu:crystal_1_20_crystal_1_21 · NixOS/nixpkgs · GitHub (Make sure to have enough RAM to compile Crystal yourself, it uses around 9GB of RAM)
Ah, you deleted it… I dunno why.
Either way, check out renich/crystalino in Gitlab/Github. It’s a fork but it cut all ties with the project in order to be free of commitments and compatibility contracts, simplify, re-design and maintain.
All my respect to @elbywan for his great project and initiative. Yet, I am moving on and trying my hand at it.
Let me know what you think if you end up using it.
I am happy to get PRs, feature requests and bug reports there.
Yes, I deleted my post just now.
Because I switched to your fork today, I want to try it several days before I take suggestion to others again.
But whatever, following is my original post:
For those who wish to use this 0.19 crystaline, I have a better suggestion: use another fork:
To my knowledge, it contains all the latest changes from the upstream, and it resolves a major pain point that has persisted throughout my time using Emacs + Crystal LSP.
I can’t help but mimic the way Blizzard announced the mobile version of Diablo: “Don’t you use the formatter feature when you use LSP?”
There has been a bug present since I first started using crystaline under Emacs. For example, after using LSP for a while, sometimes when I delete a block of code and save, the deleted code immediately rolls back. This is extremely frustrating, and I am forced to disable the LSP formatter feature and instead enable another separate after-save formatter package.
However, the author of crystalino, @renich, encountered the exact same issue. He resolved it in his own fork and submitted a PR. Unfortunately, elbywan does not accept any PRs, which is why this fork exists.
(Translated from Chinese using gemma4:26b)