This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-17
Channels
- # announcements (3)
- # babashka (41)
- # beginners (118)
- # calva (4)
- # cider (22)
- # clj-kondo (4)
- # clj-on-windows (1)
- # clj-together (1)
- # clojure (164)
- # clojure-europe (46)
- # clojure-filipino (1)
- # clojure-indonesia (1)
- # clojure-my (1)
- # clojure-nl (3)
- # clojure-sg (1)
- # clojure-spec (13)
- # clojure-uk (16)
- # clojurescript (18)
- # cloverage (3)
- # conjure (5)
- # core-async (8)
- # cursive (21)
- # datomic (4)
- # deps-new (15)
- # emacs (12)
- # expound (4)
- # fulcro (45)
- # graalvm (32)
- # jobs (1)
- # malli (5)
- # nextjournal (63)
- # off-topic (27)
- # other-languages (3)
- # pathom (27)
- # proletarian (1)
- # rdf (24)
- # re-frame (10)
- # reagent (9)
- # releases (2)
- # shadow-cljs (72)
- # spacemacs (4)
- # timbre (4)
- # tools-deps (29)
- # xtdb (4)
I have a student whose new IntelliJ/Cursive setup allows him to create a new leiningen project, start a REPL, and evaluate expressions, but all of the symbols in his core.clj are highlighed and there's a message saying that they can't be resolved, or something like that. Also, the auto-indenting doesn't seem to know it's Clojure code, and there is an error message somewhere about a missing python dependency. I'm sorry for the fuzzy details here, but I'm not in front of his machine now.... but is this enough to ring a bell for anyone that might give a hint of what I should tell him to try?
Does anything here help? https://cursive-ide.com/userguide/troubleshooting.html#help-lots-of-symbols-don-t-resolve
hey, Colin. i’ve been getting this NPE (“Got unexpected exception during formatting ClojureFile”) a lot when editing CLJS files which have namespaces requires as strings (e.g., ["react" :as react]
) since i upgraded Cursive to 1.12.2-eap4. judging from the following line, it appears to have something to do with the new Optimize Requires/Imports code:
at cursive.inspections.list.ClUnusedRequire.invoke(ListInspections.kt:31)
Hi, on the title bar, only the last part of the namespace is showing in full s.s.d.views
, is there a way to show the full namespace by default?
Look in Preferences under Languages & Frameworks -> Clojure. The last item under Appearance Options is Editor Tab Style, which will abbreviate namespaces if you select Truncated Namespace, so try one of the other two options.
By the way, I have my tabs on the right instead of at the top (Preferences -> Editor -> General -> Editor Tabs -> Tab Placement). Better use of space IMO, plus you get more control over the width of the tabs.
IDK the right place to ask this, but how can i make a REPL configuration "do what is in my zshrc"
want to source all those environment variables and if possible run within the nix-shell
@U3JH98J4R Would configuring a Before Launch
action that runs an External Tool
work for this?
hello, I’m trying to open a gradle project and my source root (src/main/clojure) is not being recognized and I can’t add it via the IntelliJ notification. I continue to get an IDE error:
java.lang.NullPointerException
at cursive.notifications.SourceRootNotificationProvider$AddSourceRoot.lambda$run$0(SourceRootNotificationProvider.java:119)
at com.intellij.openapi.roots.ModuleRootModificationUtil.lambda$updateModel$9(ModuleRootModificationUtil.java:135)
at com.intellij.openapi.roots.ModuleRootModificationUtil.modifyModel(ModuleRootModificationUtil.java:143)
at com.intellij.openapi.roots.ModuleRootModificationUtil.updateModel(ModuleRootModificationUtil.java:134)
at cursive.notifications.SourceRootNotificationProvider$AddSourceRoot.run(SourceRootNotificationProvider.java:116)
...
switched to https://github.com/clojurephant/clojurephant/releases/tag/0.7.0-alpha.1 and it still fails 😕
Hi all. I’m having an issue with a Leiningen project that includes Java source files through
:java-source-paths ["src-java"]
When I try to run a configuration that relies on Leiningen to run, I am getting the following IDE error: “Error running ‘REPL dev-site’: Error executing Leiningen configuration.”It seems that Leiningen is not finding Java Runtime, from idea.log
2022-02-17 18:14:14,069 [188710431] DEBUG - #cursive.deps.DepsShimProvider - Executing deps via CLI, uberjar at /usr/local/Cellar/clojure/1.10.3.822/libexec/clojure-tools-1.10.3.822.jar
2022-02-17 18:14:16,063 [188712425] DEBUG - #cursive.shim.Shim - Creating shim:
Namespaces cursive.leiningen.init, cursive.leiningen.project
Version 2.9.3
Files /Users/ernesto-reify/.lein/self-installs/leiningen-2.9.3-standalone.jar
2022-02-17 18:14:16,063 [188712425] DEBUG - #cursive.shim.Shim - Shim URLs: file:/Users/ernesto-reify/Library/Application%20Support/JetBrains/IdeaIC2021.3/plugins/clojure-plugin/lib/shimdandy-impl-1.2.1.jar, file:/Users/ernesto-reify/Library/Application%20Support/JetBrains/IdeaIC2021.3/plugins/clojure-plugin/lib/cursive-lein-shim.jar, file:/Users/ernesto-reify/.lein/self-installs/leiningen-2.9.3-standalone.jar
2022-02-17 18:14:16,336 [188712698] DEBUG - #cursive.deps.DepsShimProvider - Executing deps via CLI, uberjar at /usr/local/Cellar/clojure/1.10.3.822/libexec/clojure-tools-1.10.3.822.jar
2022-02-17 18:14:20,389 [188716751] INFO - STDERR - The operation couldn't be completed. Unable to locate a Java Runtime.
2022-02-17 18:14:20,389 [188716751] INFO - STDERR - Please visit for information on installing Java.
2022-02-17 18:14:20,389 [188716751] INFO - STDERR -
2022-02-17 18:14:20,394 [188716756] WARN - #cursive.shim.IndicatorBridge - Exit called in Leiningen:
java.lang.RuntimeException: null
at cursive.leiningen.project$add_standard_hooks_BANG_$fn__2318$fn__2319.invoke (project.clj:515)
cursive.leiningen.project$add_standard_hooks_BANG_$fn__2318.doInvoke (project.clj:515)
clojure.lang.RestFn.applyTo (RestFn.java:139)
clojure.core$apply.invokeStatic (core.clj:667)
clojure.core$apply.invoke (core.clj:660)