This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-19
Channels
- # announcements (7)
- # aws (4)
- # aws-lambda (1)
- # babashka (19)
- # beginners (60)
- # calva (9)
- # chlorine-clover (3)
- # cider (15)
- # clj-kondo (17)
- # clojure (34)
- # clojure-czech (1)
- # clojure-europe (96)
- # clojure-nl (2)
- # clojure-uk (46)
- # clojurescript (20)
- # css (4)
- # cursive (58)
- # data-science (3)
- # datascript (3)
- # datomic (42)
- # depstar (30)
- # dirac (4)
- # emacs (1)
- # etaoin (5)
- # events (1)
- # figwheel-main (30)
- # fulcro (6)
- # helix (9)
- # jobs (1)
- # lumo (3)
- # malli (27)
- # off-topic (15)
- # pathom (11)
- # programming-beginners (6)
- # reitit (6)
- # rewrite-clj (11)
- # shadow-cljs (14)
- # sql (1)
- # tools-deps (18)
- # utah-clojurians (3)
im trying to use net.sf.jtidy/jtidy {:mvn/version "r938"}
, but in (:import (org.w3c.tidy Tidy))
it's marked as unresolved.
is it possible that it's caused by the :mvn/version
starting with a letter instead of a number?
Shouldn’t be, I don’t think. Check in File->Project Structure to see if a library was created, and if it’s attached to your module correctly.
What's the intellij repl command to find something in the repl history. E.g. "<ctrl-r>(def db @re<tab>" to find the last full command with that string in it.
Thanks!
Was hoping for something more like bash command completion but greatly appreciated anway
u can still type anything in that dialog and that filters the list by fuzzy searching whatever u typed
RIght, that view should narrow down on typing, if it doesn’t (or doesn’t do what you expect) let me know.
Will do. It's sluggish but I've been playing with a large chunk data. I suspect I'll need a fresh history to see it working well.
@cfleming do you think IntelliJ will ever have a repl comprable to the chrome console (richer ways to drill into data...)
Yep, I’ve been working on a data browser, and that should be available at some point soon for inline evaluation in the editor, as well as possibly in the REPL output too.
That sounds quite exciting
I have a bunch of different changes on the go, they should all be in there over the coming months.
Fantastic
I have a CLJC namespace that I want to “Find Usages” for. When I command click or use the context menu, it does not display any references for CLJS usages of that namespace. However, when I “Find Usages” for any functions in that namespace it works as expected. Cursive version: 1.9.4-eap6-2019.3
a weird thing happened the other day, I don't know what I did but suddenly "send top form to REPL" changed its behaviour, normally I can be anywhere in a form that's inside a comment
form and go send-top-form-to-REPL and it will send the top form but not the parent comment form to the REPL, but now it changed to send (comment (my-top-form...))
to the REPL. Restarting IntelliJ fixed it but I don't know why it did it
That can happen if IntelliJ decides to index at the time you’re sending the form - I’ve been meaning to add a workaround for that.
uh indexing I wish IntelliJ wouldn't be quite so keen to index all the time
what setting controls soft-wrap in the repl? i want it completely disabled and from what i can see it is, but it always auto-enables when an output line is long enough
It should be controlled by the soft-wrap icon in the REPL toolbar - is that not working? I’m pretty sure this never happens to me.
yeah it’s strange, I have it turned off via the icon in the toolbar, but it turns itself on when one of my output lines is long enough , i haven’t determined the exact length that makes it turn on but it’s rather frustrating
hi @cfleming, to easily reproduce this it seems once an output line is over 100000 chars it turns on soft-wrap automatically , i.e (println (repeat 50000 "x"))
, do you know of any intellij internals that might be setting this limit? can’t see any settings anywhere
@U0HJCPF3J Looks like https://youtrack.jetbrains.com/issue/IDEA-138523, there’s a property you can set using Help->Edit Custom Properties…
> You can disable it by setting editor.soft.wrap.force.limit to a very large value (longer than any lines you work with), but you’ll most probably get a worse performance, so it’s a tradeoff for now.
Looks like there’s a *print-right-margin*
var you might be bumping into?
That would be a Clojure thing not a cursive thing, so cursive setting won’t affect it.
It would be really cool if cursive REPL could change this setting so the pprint
would respect the REPL window width automatically.
Even though my fingers have gotten used to spacemacs, I am finding Cursive is the bomb when doing Java interop. So nice to be able to dig deep into those Java objects! Thanks for Cursive @cfleming!
Thanks for the kind words! I’m glad it’s helpful. I’m planning to document all the interop functionality, it’s not all very discoverable right now.
I'm getting a "Run Configuration Error: No modules containing clojure.main found" when I try to add a run configuration. Can someone help?
Have a look in File/Project Structure and you may find your project has no JDK defined for it.
Thanks @U0D5RN0S1! That's the first thing I checked. I also made sure that all my new default projects has a JDK defined.
Just did it, and still the same result. I'm trying to use deps.edn to setup the run configuration instead of lein. I have the simplest deps.edn file right now. Not sure if it's relevant
{:deps {}}
Usually you right click on it and 'Add as Clojure Deps project'. But you would want a better file than that...
Oh! That worked! Thanks @U0D5RN0S1! i didn't know about that step!
@U419CTSQN How did you create that project?
Normally you would create it using some variant of this: https://cursive-ide.com/userguide/deps.html#create-a-new-project-with-deps
Yes a deps.edn
project. Else you can add the xml file under .idea
yourself. But no need these days...
I made a new folder, then opened it with intellij. Ahh. I think that might've been my mistake
Right, at some point you need to let Cursive know that you want this to be a deps project using whichever deps.edn
. If you just open an empty project then you’ll get… an empty project 🙂
Thank so much again @U0D5RN0S1. I'll make sure to create all my project via the the new project wizard next time
And in particular it works a bit differently to more file-based things like Emacs, VSCode or whatever.