Fork me on GitHub
#calva
<
2021-05-10
>
plexus11:05:12

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...

plexus11:05:09

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

plexus11:05:48

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?

plexus12:05:07

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

pez12:05:09

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

pez12:05:06

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

plexus12:05:09

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.

pez13:05:18

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)

stianalmaas13:05:47

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

stianalmaas13:05:25

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

pez14:05:29

OK, then that explains it, I guess. 😃

djptek15:05:23

👋

👋 1
royalaid16:05:58

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

royalaid16:05:07

it seems like the settings are getting applied

royalaid16:05:27

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

royalaid16:05:52

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

ericdallo16:05:03

Could you share your .lsp/config.edn ?

ericdallo16:05:50

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

royalaid16:05:50

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

royalaid16:05:28

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

royalaid16:05:47

Give me one moment to get my config

royalaid16:05:09

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

royalaid16:05:14

is the full file

royalaid16:05:30

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

☝️ 1
royalaid17:05:33

2021.05.06-19.44.00 is the setting in Calva

royalaid17:05:39

the system installed version is

royalaid17:05:02

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

ericdallo17:05:41

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

royalaid17:05:35

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

🆗 1