This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-07
Channels
- # announcements (13)
- # atom-editor (3)
- # babashka (53)
- # beginners (28)
- # clojure (30)
- # clojure-australia (4)
- # clojure-europe (22)
- # clojure-germany (1)
- # clojure-italy (6)
- # clojure-nl (3)
- # clojure-norway (14)
- # clojure-spec (8)
- # clojure-uk (8)
- # clojurescript (19)
- # cursive (33)
- # datomic (4)
- # defnpodcast (6)
- # events (3)
- # fulcro (3)
- # graalvm (77)
- # jobs (2)
- # juxt (11)
- # podcasts-discuss (1)
- # reitit (1)
- # releases (2)
- # remote-jobs (2)
- # sci (1)
- # shadow-cljs (27)
- # sql (6)
- # testing (10)
- # tools-deps (36)
- # vim (4)
- # xtdb (15)
I’d like to debug a process on a remote machine using breakpoints but can not get the debugger to connect properly to the remove JVM. I have a nrepl
remote REPL running successfully but connecting a debugger with IntelliJ IDEA “Remote JVM Debug” run stetting does not work. I have to tunnel the remote JVM socket using SSH port forwarding, maybe that is the problem?
@defa when you start a REPL (remote process) you should put to :jvm-opts parameter
"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
and tell Idea to connect to debuger port 5005
Thanks, @mike1452, I already did that but it seems that the debugger takes a couple of minutes (!) to connect. Not sure what this is or was but not it is working. Kind of. Thanks.
Unfortunately I encountered a heisenbug… now that I’m able to debug the problem, it has gone away.
yeah, it can be incredibly slow when the Java debugger gets involved, from my experience. I recommend waiting until your process is fully warmed up, before the error state (or whatever you’re trying to debug), then connect the debugger
and disconnect/reconnect it liberally
Hello, my company moved to bazel builds for our Clojure/JVM-based projects. How do I configure Cursive / IntelliJ to recognize my classpath again?
how are you liking bazel? How is it set up to work with Clojure?
if you don’t mind me asking
Right now the support for bazel on IntelliJ is very very bad, the company moved from deps.edn to bazel and it broke at lot of IntelliJ classpath loading stuff
goto var definitions are impossible for some part of the code
@U9ABG0ERZ I know next to nothing about bazel (except that IntelliJ didn’t seem to support it well, as you’ve found). Are you able to set up a simple project that I could use to test this?
I'll try to setup a project 🙂
yeah, there's a bazel plugin for IntelliJ but it does not loads the java classpath from the build
I can connect a REPL from IntelliJ but it doesn't detect modules on IntelliJ 😞
It seems that cursive doesn't like the latest tools.deps that come with Clojure (https://clojure.org/guides/getting_started#_installation_on_linux)... `clj -Sdescribe => {:version "1.10.3.855" ...};
what cursive version are you on? I'm on 1.10.3-eap1-2021.1 with latest clojure and it's grand
The same EAP + 2021.1.2. I can make it work by "use deps directly" but it it worked with the older version (it broke when I updated the clj tooling)
I can’t reproduce this. That error message is produced when this var doesn’t exist, which it does in this version (and doesn’t on very old versions of deps): https://github.com/clojure/tools.deps.alpha/blob/tools.deps.alpha-0.11.922/src/main/clojure/clojure/tools/deps/alpha/util/dir.clj#L25
If you look in Preferences | Build, Execution, Deployment | Build Tools | Clojure Deps do you see the correct version reported?