Fork me on GitHub
#lsp
<
2023-03-12
>
borkdude10:03:37

@ericdallo I'm fixing an error for clojure-lsp on JDK19 but I'm running into this:

lib $ clj
Error building classpath. Could not find artifact com.github.clojure-lsp:lsp4clj:jar:1.7.3 in central ()

ericdallo13:03:56

I just made that lsp4clj release and made a commit bumping to that release yesterday

ericdallo13:03:14

I tagged but forgot to push to clojars, will do in a few minutes

borkdude13:03:59

I noticed the latest version on clojars was 1.7.1

ericdallo13:03:14

yeah, 1.7.2 was a simple fix that I forgot as well, that's why there is a https://github.com/clojure-lsp/lsp4clj/issues/4 😅

ericdallo13:03:02

I'll bring this to Nubank to check if there are people interested starting coding in OSS projects, and that's a nice good first PR

ericdallo13:03:19

Just pushed to clojars 1.7.3

borkdude13:03:29

thanks, I'll follow up with a JDK 19 fix

borkdude13:03:42

I still run clojure-lsp from source but now use GraalVM JDK19 by default

borkdude13:03:14

@ericdallo whoops, with the latest commit I introduced a cyclic dependency:

Cyclic load dependency: [ /clojure_lsp/internal_api ]->/clojure_lsp/handlers->[ /clojure_lsp/internal_api ]->/clojure_lsp/main

borkdude13:03:24

Any other good place to add helper functions?

borkdude13:03:53

shared.clj?

ericdallo13:03:55

Usually shared

ericdallo13:03:52

lib/src/clojure_lsp/internal_api.clj is not like clj-kondo impl core hehe, internal_api is the ns only accessed by CLI/API, not editor

👍 2
ericdallo13:03:49

@U04V15CAJ why warn-on-reflection doesn't catch that kind of reflection issue?

borkdude13:03:57

it does, but only on JDK 19

borkdude13:03:13

since they added another overload in Thread

ericdallo13:03:24

I see, I think I'd prefer to not have that shared function and have a CI for jdk19 WDYT?

borkdude13:03:38

having the shared function will avoid making this mistake

ericdallo13:03:06

yeah, but if we have the CI we could avoid that without needing a shared function right?

ericdallo13:03:12

just to avoid more things to shared

ericdallo13:03:17

for simpler things

borkdude13:03:25

fine with me

borkdude13:03:32

does ci catch reflection issues?

ericdallo13:03:56

Good question, if not it should probably

borkdude13:03:36

I can port that to clojure-lsp as well

ericdallo13:03:23

looks good, I can't see that working only with static checks indeed (besides eastwood)

borkdude13:03:40

do you run eastwood on lsp?

borkdude13:03:57

ok, then I'll port the reflection test?

ericdallo13:03:14

would be great!

borkdude13:03:20

ok, later today

borkdude13:03:04

cool. why is lsp4clj a bb dep?

borkdude13:03:09

does it run in bb? ;)

ericdallo13:03:08

ah cool! for integration-test we heavily use ls4clj so it's bb compatible I think :)

ericdallo14:03:04

dev: Improved java support for methods and fields 🤞

🙌 16
🎉 8
ericdallo14:03:47

@U04V15CAJ I opened https://github.com/clj-kondo/clj-kondo/pull/2008 and https://github.com/clojure-lsp/clojure-lsp/pull/1521 with a initial implementation after our discussions about ASM, LMK what you think :)

mpenet16:03:51

pretty cool!

🚀 2