calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
plexus 2021-05-10T11:52:12.042900Z

I'm helping someone remotely debug an issue, she's using VS Code / Calva on windows, and when jacking in we get the message "nREPL server started on port <port> on host kubernetes.docker.internal - <nrepl://kubernetes.docker.internal>". We're using docker desktop to run some supporting services (postgres, redis), but somehow it seems it's also running the app itself inside docker? That's definitely not the intention...

plexus 2021-05-10T11:53:09.043700Z

can this be vs code or calva that decides to run the java -jar ".calva/deps.clj.jar" ... in a container?

plexus 2021-05-10T11:56:48.044500Z

hmmm seems it's a red herring, some checks in the REPL seem to suggest it is running on the local machine. I guess kubernetes.docker.internal is just an alias for the local host?

plexus 2021-05-10T12:12:07.045400Z

and... confirmed that is is in fact just 127.0.0.1... that was very confusing

pez 2021-05-10T12:21:09.046Z

I’ve seen it in some logs posted in this channel recently too, @plexus. Very confusing.

pez 2021-05-10T12:24:06.047Z

Maybe it is something for the #nrepl channel? I think it is the nrepl server printing that message.

plexus 2021-05-10T12:34:09.047700Z

I don't think they can do much about it either, I guess it's just checking for the hostname of the machine it's running on, and that is what it finds.

pez 2021-05-10T13:00:18.048800Z

Yeah. I tried to figure out how to get the localhost address of my machine, but I get my network address…

(.. java.net.InetAddress
    getLocalHost
    #_ getHostName)

stianalmaas 2021-05-10T13:37:47.049400Z

I just started using Calva on windows and I saw the same thing.

stianalmaas 2021-05-10T13:38:25.049900Z

I can see that Docker on Windows has updated my hosts file and put kubernetes.docker.internal in there.

pez 2021-05-10T14:27:29.050200Z

OK, then that explains it, I guess. 😃

djptek 2021-05-10T15:28:23.050600Z

👋

1👋
2021-05-10T16:13:58.052Z

Hey all I am messing around with Calva and coming from IntelliJ, I am trying to disable the unused-public-var check from clojure-lsp. I have a config.edn in the .lsp folder that was created in my project

2021-05-10T16:14:07.052500Z

it seems like the settings are getting applied

2021-05-10T16:14:27.053Z

based on the debug output of the console the settings map is just {}

2021-05-10T16:14:52.053500Z

This is on Windows with the latest versions of everything as of this weekend if that matters

ericdallo 2021-05-10T16:17:03.053600Z

Could you share your .lsp/config.edn ?

ericdallo 2021-05-10T16:17:50.053900Z

(Also, just to improve the feature, would you mind tell what you dislike in that feature?)

2021-05-10T16:19:50.054100Z

It’s just the docs are a little obtuse to reach and understand in conjunction with Calva

2021-05-10T16:20:28.054300Z

the reason I want to disable the checks is because its handlers for AWS lambdas and compatibility with NodeJS requires for Intellij

2021-05-10T16:20:47.054500Z

Give me one moment to get my config

2021-05-10T16:21:09.054700Z

{:linters {:unused-public-var {:level :off
                               :exclude #{aws.dynamodb}}}}

2021-05-10T16:21:14.054900Z

is the full file

ericdallo 2021-05-10T16:25:01.055100Z

https://clojure-lsp.github.io/clojure-lsp/settings/#unused-public-var. What is the output of clojure-lsp --version ?

2021-05-10T16:30:30.055400Z

Gonna be a minute, having service done that had internet to that machine knocked out, should be good in about an hour

1☝️
2021-05-10T17:04:33.055700Z

2021.05.06-19.44.00 is the setting in Calva

2021-05-10T17:04:39.055900Z

the system installed version is

2021-05-10T17:05:02.056100Z

clojure-lsp 2021.05.06-19.44.00
clj-kondo 2021.04.24-SNAPSHOT

ericdallo 2021-05-10T17:05:41.056300Z

Looks updated as well, could you provide a repo with a minimal repro of the issue so I can test it?

2021-05-10T17:06:35.056500Z

Will do, expect that later today PST. Gotta clean up a bunch of stuff for work

1🆗