Fork me on GitHub
#babashka
<
2022-08-05
>
pinkfrog03:08:25

Hi @borkdude I guess you have done much java interop stuff. I am facing an issue that, when writing java interop, I cannot jump to definition. For code completion, most time it doesn’t work too (e.g., .. form interop). I wonder how you overcome this hurdle.

borkdude06:08:54

I don't rely a lot on tooling for this. Usually just pull up the java docs

1
pinkfrog07:08:31

Would you mind sharing with me how you pull up the docs? Open a webpage on java doc?

pinkfrog07:08:14

What if sometimes you want to look at the implementation of a java function ?

borkdude07:08:34

I look it up on github

borkdude07:08:01

clojure-lsp does support navigating to a Java class btw, if it's on the classpath. It decompiles on the fly

borkdude07:08:09

but to be honest, I don't use that a lot

pinkfrog07:08:50

Thanks for the info!

didibus02:08:08

Cursive is also pretty good for interop stuff if I remember.

pinkfrog02:08:35

It is basically fine, but doesn’t not work for (..) calls (the double dot form).

Steffen Glückselig06:08:40

global script-repo with bb.edn - using deps (on windows)... I've got a repo with most of my bb-scripts, which I used by adding its src-directory in a preload-script via add-classpath. I am now using dependencies (via :deps in bb.edn, not add-classpath) - and my setup does not load them. I need to use bb.edn because I generate an uberjar for my colleagues - I guess add-classpath would not work. I am looking for a way that bb uses the bb.edn from that repository... I handle the setup on my colleagues' systems with the uberjar and BABASHKA_CLASSPATH. I like to be able to use bb -m mynamespace.core on both their and my systems.

Steffen Glückselig08:08:55

I don't want to fiddle around with DOS-Batch-scripts, So I am now thinking of using a preload-script - which should "activate" the bb.edn (mainly because of the dependencies declared there). I think I'll just parse :deps from the bb.edn and call add-classpath...

borkdude08:08:45

@U01BAKAA6HL Are you aware of --config ?

borkdude08:08:36

You can point to the bb.edn in that remote dir