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...
can this be vs code or calva that decides to run the java -jar ".calva/deps.clj.jar" ...
in a container?
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?
and... confirmed that is is in fact just 127.0.0.1
... that was very confusing
I’ve seen it in some logs posted in this channel recently too, @plexus. Very confusing.
Maybe it is something for the #nrepl channel? I think it is the nrepl server printing that message.
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.
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)
I just started using Calva on windows and I saw the same thing.
I can see that Docker on Windows has updated my hosts file and put kubernetes.docker.internal in there.
OK, then that explains it, I guess. 😃
👋
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
it seems like the settings are getting applied
based on the debug output of the console the settings map is just {}
This is on Windows with the latest versions of everything as of this weekend if that matters
Could you share your .lsp/config.edn
?
(Also, just to improve the feature, would you mind tell what you dislike in that feature?)
It’s just the docs are a little obtuse to reach and understand in conjunction with Calva
the reason I want to disable the checks is because its handlers for AWS lambdas and compatibility with NodeJS requires for Intellij
Give me one moment to get my config
{:linters {:unused-public-var {:level :off
:exclude #{aws.dynamodb}}}}
is the full file
https://clojure-lsp.github.io/clojure-lsp/settings/#unused-public-var. What is the output of clojure-lsp --version
?
Gonna be a minute, having service done that had internet to that machine knocked out, should be good in about an hour
2021.05.06-19.44.00
is the setting in Calva
the system installed version is
clojure-lsp 2021.05.06-19.44.00
clj-kondo 2021.04.24-SNAPSHOT
Looks updated as well, could you provide a repo with a minimal repro of the issue so I can test it?
Will do, expect that later today PST. Gotta clean up a bunch of stuff for work