This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-03
Channels
- # beginners (111)
- # boot (1)
- # braveandtrue (4)
- # calva (2)
- # cider (16)
- # clara (35)
- # cljdoc (4)
- # cljs-dev (22)
- # clojure (80)
- # clojure-dev (17)
- # clojure-europe (3)
- # clojure-italy (57)
- # clojure-japan (1)
- # clojure-nl (4)
- # clojure-serbia (1)
- # clojure-spec (25)
- # clojure-uk (108)
- # clojurescript (67)
- # cursive (17)
- # data-science (5)
- # datascript (6)
- # datomic (6)
- # devcards (1)
- # events (1)
- # expound (13)
- # figwheel (2)
- # figwheel-main (6)
- # fulcro (7)
- # jobs-discuss (8)
- # kaocha (1)
- # luminus (3)
- # nrepl (6)
- # off-topic (58)
- # re-frame (1)
- # reitit (16)
- # remote-jobs (1)
- # ring (1)
- # shadow-cljs (70)
- # spacemacs (10)
- # sql (42)
- # testing (1)
- # tools-deps (8)
- # vim (1)
With intelij, for certain languages you can use an "intention" to generate the outline of a test for a desired function. Does this capability exist for Clojure and if not is it something that's been considered to add to Cursive? https://www.jetbrains.com/help/idea/create-tests.html
If you right-click on a function and select Go To -> Test, it will give you the option of creating the test if it does not already exist.
Ah neat, it's pretty minimal but is nice none the less
I just updated to the latest cursive and notice that bracket highlighting has changed, so that “outer brackets” are preferred to “inner brackets”. Was this an intentional change?
i believe the previous behavour was aligned with what “Extend selection” would select
Yes, that happened with a recent version and it’s a known issue. I think the underlying issue is something that changed in IntelliJ, and we’re waiting for JetBrains to fix it?
How would I go about finding unused re-frame subscriptions w/ intelij and cursive? I tried using Analyze | Inspect Code
but it doesn't pick up subscriptions lie
(re-frame/reg-sub
::foo
____)
I don't think you can do anything apart from the full-text search or usages search (which can be slower than just full-text search).
Yes, there isn’t a very good solution for this right now, unfortunately. The global “Unused declaration” inspection doesn’t work for Clojure code, and I haven’t investigated why yet.
Cursive doesn't seem to always persist the REPL history. I'm on Ubuntu. When I restart my computer, only some very old REPL history is shown. If I close IntelliJ before shutting down, however, it will persist correctly.
Unfortunately I don’t think there’s much I can do about this, it’s just IntelliJ’s persistence mechanism. Do you find that other settings are also lost when shutting down like this?
I don't change other settings often enough. I'd expect settings to not be affected by this because in order to change those, I need to explicitly hit the Save button. The REPL history seems like it'd be saved in the same way regular files are saved. I do not have the problem of lost data when changing files.
@mhuebert Yes, this is an unfortunate IntelliJ regression. The original issue was here: https://youtrack.jetbrains.com/issue/IDEA-210104, when that wasn’t fixed completely, https://youtrack.jetbrains.com/issue/IDEA-211720 was the follow-up.