This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-20
Channels
- # announcements (10)
- # architecture (7)
- # babashka (49)
- # beginners (125)
- # calva (2)
- # chlorine-clover (33)
- # clj-kondo (15)
- # cljs-dev (18)
- # cljsrn (28)
- # clojure (91)
- # clojure-argentina (37)
- # clojure-austin (4)
- # clojure-dusseldorf (1)
- # clojure-europe (3)
- # clojure-france (2)
- # clojure-germany (2)
- # clojure-nl (4)
- # clojure-portugal (4)
- # clojure-spec (26)
- # clojure-uk (19)
- # clojuredesign-podcast (5)
- # clojurescript (19)
- # conjure (20)
- # core-async (4)
- # cursive (60)
- # data-science (4)
- # datomic (1)
- # duct (9)
- # emacs (11)
- # events (1)
- # fulcro (9)
- # graalvm (17)
- # jobs-discuss (7)
- # luminus (19)
- # malli (36)
- # meander (2)
- # off-topic (23)
- # pathom (2)
- # quil (1)
- # rdf (4)
- # re-frame (16)
- # reitit (10)
- # ring (21)
- # ring-swagger (1)
- # shadow-cljs (137)
- # spacemacs (10)
- # sql (27)
hello, I'm having an issue that cursive is complaining about cycle dependencies ,but there is no cycle
its a cljc file, with self-require from cljs:
(ns com.wsscode.pathom.connect
#?(:cljs [:require-macros com.wsscode.pathom.connect])
(:require [clojure.spec.alpha :as s]
[clojure.spec.gen.alpha :as gen]
[com.wsscode.pathom.core :as p]
[com.wsscode.pathom.parser :as pp]
[com.wsscode.pathom.trace :as pt]
[com.wsscode.pathom.misc :as p.misc]
[com.wsscode.common.combinatorics :as combo]
[#?(:clj com.wsscode.common.async-clj
:cljs com.wsscode.common.async-cljs)
:as p.async
:refer [let-chan let-chan* go-promise go-catch <? <?maybe <!maybe]]
[clojure.set :as set]
[clojure.core.async :as async :refer [<! >! go put!]]
[edn-query-language.core :as eql]))
with some exclusions I got some files to work
but if you clone pathom, go to branch query-planner
, and try to load the connect-test.clj
, I'm having consistent issues in that one
(note: please load project as deps project, use the aliases: dev,provided,http-drivers,graph-render
)
but cursive complains it has a cycle with itself
I upgraded to IDEA 2020.1 and it's now really slow and laggy. Anyone else noticed this?
I’m running it on mac and I didn’t see big difference compared to the previous version
Hmh. After a restart it seems to be back to normal (which is still slow, but at least it's usable).
Funny that this release was supposed to include performance improvements 🙂
Heh, doesn't seem like that to me. I hope that it became faster for some people at least.
I haven’t noticed any change, but someone mentioned to me yesterday that 2020.1 was way faster for them. @U1NDXLDUG you could try invalidating indexes in case something has gotten funky there in the update.
I've also just noticed that pane resizing got a looot lot smoother in recent IntelliJs. My bet on @U1NDXLDUG’s problem is that it might be caused by some other plugin....
Is there a way to sort :require
imports alphabetically?
You can do it like this: select all require/import lines -> open actions menu with cmd+shift+a or double-click left shift -> sort lines.
thanks
@U66G3SGP5 There is a basic plugin “someone” created that does this in a very rudimentary way. https://plugins.jetbrains.com/plugin/13222-clojure-namespace-sort He’s probably open to PRs on GitHub…probably 😉
How to enable a nrepl middleware, for a repl started by Cursive? I see no mention of middleware on https://cursive-ide.com/userguide/repl.html Thanks!
Is it a Leiningen project or a http://tools.de project?
With the former, see this:
https://github.com/technomancy/leiningen/blob/145ba54eb0a5fc099380ad6feb04688a2fca9173/sample.project.clj#L396-L406
With the latter, you can use an .nrepl.edn
file:
https://nrepl.org/nrepl/usage/server.html#_server_configuration
The latter. Thanks for a great response!
I am trying to connect to remote (localhost) nREPL from Cursive, I am using shadow-cljs, the port is open when using netcat, but I get
Connecting to remote nREPL server...
Clojure 1.10.1
and it hangs. Any idea why?Did something change in Cursive regarding the REPL? I have (comment (+ 1 | 2))
in a source-file with |
being my cursor position
oh nvm ... works now. guess it didn't identify it as clojure.core/comment due to some deps.edn
issue
22:14 Error running 'nj': failed to access class com.intellij.execution.impl.ProcessStreamsSynchronizer from class com.intellij.execution.impl.ConsoleViewRunningState (com.intellij.execution.impl.ProcessStreamsSynchronizer is in unnamed module of loader com.intellij.util.lang.UrlClassLoader @7f9a81e8; com.intellij.execution.impl.ConsoleViewRunningState is in unnamed module of loader
what could this be? trying to run a deps.edn project from cursive? no special config, just run with deps?
This is https://github.com/cursive-ide/cursive/issues/2350, I’m hoping to get the fix out today.
ah thx. I have also another crash/deadlock or just veeeeeeeeeery long task running on the ui thread apparantly. can't do anything and the last thing it shows is something about computing the classpath
Hmm, the classpath computation should be off the EDT. I wonder what’s happening there. Is that project anything I can look at, or is it a work one?
I got it running outside cursive and connecting remotely now. that works well enough for me.
Any snapshot dependencies in there? They can delay the project resolution a lot, but again, it should be off the EDT anyway.
I’ll check that and ensure it’s running off the EDT, and put some debug logging in there that can be turned on to check.
In fact, if you go Help | Show log in Finder, in that directory there should be some UI freeze logs.
let me know if I can help somehow. got this in a somewhat reproducible state here. gotta kill everything after so don't want to do it too often but willing in the name of science. 😉
@cfleming i keep getting this exception (in the log attached) while importing deps projects. upon the completion of an import, i end up with an empty intellij idea window (without any tool windows.)
I'm getting the same exception after installing cursive yesterday and trying to open a leiningen project (luminus template).