This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-26
Channels
- # beginners (55)
- # bristol-clojurians (4)
- # calva (9)
- # clj-kondo (29)
- # cljsrn (1)
- # clojars (6)
- # clojure (57)
- # clojure-dev (4)
- # clojure-uk (22)
- # clojurescript (52)
- # code-reviews (1)
- # core-async (33)
- # cursive (12)
- # datomic (46)
- # docker (7)
- # figwheel-main (13)
- # fulcro (8)
- # graalvm (3)
- # instaparse (1)
- # kaocha (2)
- # perun (1)
- # portkey (5)
- # re-frame (3)
- # shadow-cljs (46)
- # spacemacs (7)
- # specter (3)
- # vim (1)
- # vscode (3)
I recently switched to the LSP version because I noticed a slight lag when typing. I don’t see this lag with LSP. Both work great!
I’m using Intellij 2019.3.2 and downloaded the LSP plugin from the IDE’s marketplace and the plugin crashed to an exception. Are you using the same setup?
You must get the unreleased version from the same author. The one from the marketplace doesn't work with the latest version of clj-kondo
I turned on logs in IntelliJ but it wasn't enough to tell me why it wasn't working.
Ok, just tried the SNAPSHOT with LSP version 1.5.4 and it's not working, let me upgrade manually to 1.6.0
Not yet. It's still pending.
kk, one sec restarting IJ for the 5th time :D
Ok confirming that LSP 1.6.0 works with the SNAPSHOT. I'll move off this thread to report issues (if any with LSP+kondo)
Anyone using the LSP server, please test this new server before I release it into the wild:
The squiggles are now on the parens, is that by design?
wait wait I haven't upgraded, false alarm sorry I did upgrade, just got confused above still holds
I don't know what was the behavior before, but now it's the same as emacs, which isn't bad imho:
Before clj-kondo only reported the start location and the editor had to make sense from that only where to put the squiggles
One issue I solved after introducing this was that the entire sexpr would be squiggled which is quite annoying.
Let me revert and compare
So before it used to be like this:
I don't know if this is LSP or clj-kondo, but when I was using watchers it wouldn't change the syntax colouring but with LSP it removes it and just gives me the default text color.
This is usually for things I gotta fix, but for macros like specter, I have to keep this around:
I'll keep using the SNAPSHOT and see if there's any more differences. I just switched to the LSP version so I may miss some of the differences 😄
@jvtrigueros Don't know what's with the syntax colouring, but it seems clj-kondo has an issue with that macro. In that case you should / could use a config to get rid of those warnings.
I’ll do that!