cursive

Issues at: https://git.io/cursive-issues
cfleming 2021-06-07T03:33:56.123800Z

One of the things I’m working on is better data structure visualisations, and that will probably be tied into tap in some way.

👍 1
cfleming 2021-06-07T03:34:19.124Z

Right, if you want to customise more than what is offered there let me know.

pbaille 2021-06-07T06:25:35.124600Z

@kslvsunil, @cfleming thank you a lot, I will try this and let you know !

pbaille 2021-06-07T06:28:31.124800Z

Ok it seems that it is the same that what I've found in the preferences. Two things that I would like to customize for example would be : • quoted symbols • argv bindings. Is it possible ?

pbaille 2021-06-07T06:30:20.125Z

I also noticed that clojure core symbols are highlighted even when contained in comments. I would like to fix that.

pbaille 2021-06-07T06:30:44.125200Z

Is there some kind of tmLanguage.json file somewhere ?

defa 2021-06-07T09:58:57.129900Z

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?

mike_ananev 2021-06-07T11:38:57.139100Z

@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"

mike_ananev 2021-06-07T11:39:46.139800Z

and tell Idea to connect to debuger port 5005

defa 2021-06-07T14:17:07.141200Z

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.

defa 2021-06-07T14:17:56.142200Z

Unfortunately I encountered a heisenbug… now that I’m able to debug the problem, it has gone away.

2021-06-07T14:48:05.142900Z

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

2021-06-07T14:48:18.143200Z

and disconnect/reconnect it liberally

2021-06-07T15:36:43.143400Z

Hello, my company moved to bazel builds for our Clojure/JVM-based projects. How do I configure Cursive / IntelliJ to recognize my classpath again?

2021-06-09T13:58:50.173400Z

I'll try to setup a project 🙂

thheller 2021-06-07T16:53:02.144Z

there is a bazel plugin for intellij I think

tanzoniteblack 2021-06-07T18:33:14.144100Z

how are you liking bazel? How is it set up to work with Clojure?

tanzoniteblack 2021-06-07T18:33:18.144300Z

if you don’t mind me asking

2021-06-07T18:38:24.145200Z

yeah, there's a bazel plugin for IntelliJ but it does not loads the java classpath from the build

2021-06-07T18:39:28.145300Z

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

2021-06-07T18:39:30.145500Z

😅

2021-06-07T18:39:51.145700Z

goto var definitions are impossible for some part of the code

2021-06-07T18:40:02.146Z

😅

2021-06-07T18:40:53.147100Z

I can connect a REPL from IntelliJ but it doesn't detect modules on IntelliJ 😞

katox 2021-06-07T19:29:35.148300Z

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" ...};

katox 2021-06-08T07:11:12.150200Z

If I switch it back on it says

katox 2021-06-08T07:11:42.150400Z

cfleming 2021-06-08T08:31:48.153400Z

And it definitely doesn’t work with those settings?

katox 2021-06-08T09:00:49.153600Z

No, it won't starrt the REPL if I leave it on.

katox 2021-06-08T09:01:40.154Z

cfleming 2021-06-08T23:42:51.169400Z

That’s really weird. I can’t reproduce that, and I don’t have a plausible theory for how it could happen. I’ll look at the code to see what debug logging might be there, otherwise I’ll have to add some.

cfleming 2021-06-09T07:39:21.172500Z

Does your project have tools.deps on its classpath for some reason?

katox 2021-06-09T08:15:58.172700Z

it is not on the classpath, it is in the project root. I have no idea what's wrong where but it is not a corrupted project file. I found a 6mo old untouched deps project that did the same. If you had some debug build I can try to run it here if it helps.

imre 2021-06-07T19:45:23.148600Z

what cursive version are you on? I'm on 1.10.3-eap1-2021.1 with latest clojure and it's grand

katox 2021-06-07T20:31:55.148800Z

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)