Fork me on GitHub
#cursive
<
2020-04-20
>
wilkerlucio04:04:23

hello, I'm having an issue that cursive is complaining about cycle dependencies ,but there is no cycle

wilkerlucio04:04:49

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]))

cfleming21:04:26

I’ll take a look and try to reproduce that.

wilkerlucio22:04:50

with some exclusions I got some files to work

wilkerlucio22:04:18

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

wilkerlucio22:04:54

(note: please load project as deps project, use the aliases: dev,provided,http-drivers,graph-render)

wilkerlucio04:04:58

but cursive complains it has a cycle with itself

miikka07:04:19

I upgraded to IDEA 2020.1 and it's now really slow and laggy. Anyone else noticed this?

Janne Sauvala07:04:26

I’m running it on mac and I didn’t see big difference compared to the previous version

miikka08:04:10

Hmh. After a restart it seems to be back to normal (which is still slow, but at least it's usable).

Janne Sauvala08:04:46

Funny that this release was supposed to include performance improvements 🙂

miikka09:04:36

Heh, doesn't seem like that to me. I hope that it became faster for some people at least.

cfleming21:04:57

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.

onetom03:04:48

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....

roklenarcic10:04:29

Is there a way to sort :require imports alphabetically?

elahti10:04:08

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.

cfleming21:04:26

There isn’t a good built-in way to do this yet, but it’s high on my to-fix list.

AJ Jaro21:04:59

@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 😉

Jakub Holý (HolyJak)10:04:13

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!

flowthing10:04:31

Is it a Leiningen project or a http://tools.de project?

Jakub Holý (HolyJak)11:04:46

The latter. Thanks for a great response!

cfleming21:04:48

Yes, thanks flowthing! I’ll add that to the documentation.

rtacconi14:04:34

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?

thheller14:04:06

hangs how? looks like it is ready to go?

rtacconi14:04:13

yes, it works, that’s silly 🙂 thanks

thheller15:04:13

Did something change in Cursive regarding the REPL? I have (comment (+ 1 | 2)) in a source-file with | being my cursor position

thheller15:04:28

usually this would send (+ 1 2) to the REPL with the send-form-to-repl command

thheller15:04:34

not it sends the entire comment?

thheller15:04:37

why would that be?

thheller15:04:05

oh nvm ... works now. guess it didn't identify it as clojure.core/comment due to some deps.edn issue

thheller20:04:03

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 .PluginClassLoader @2173be8e)

thheller20:04:34

what could this be? trying to run a deps.edn project from cursive? no special config, just run with deps?

cfleming21:04:35

This is https://github.com/cursive-ide/cursive/issues/2350, I’m hoping to get the fix out today.

thheller21:04:55

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

thheller21:04:17

very unreliable ... just running it outside cursive for now

cfleming21:04:23

Is that one running a REPL?

thheller21:04:24

yes, trying to start local clojure.main repl via deps.edn

cfleming21:04:22

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?

thheller21:04:21

private nextjournal repo, pretty large with a whole mess of dependencies

thheller21:04:53

I got it running outside cursive and connecting remotely now. that works well enough for me.

cfleming21:04:55

Any snapshot dependencies in there? They can delay the project resolution a lot, but again, it should be off the EDT anyway.

thheller21:04:23

lots of git deps, no snapshot as far as I can tell

cfleming21:04:25

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.

cfleming21:04:44

Ok, I’ll do some investigating and see what I can find.

thheller21:04:45

dunno whats happening either. the entire UI freezes and never returns

thheller21:04:04

I also have shadow-cljs project open in another window .. kills that too.

cfleming21:04:11

Actually, can you check for UI freeze logs and email them to me?

cfleming21:04:15

Let me get the doc, one sec…

cfleming21:04:11

In fact, if you go Help | Show log in Finder, in that directory there should be some UI freeze logs.

thheller21:04:32

yes there are. couple of threadDump.txt files

cfleming21:04:46

Great, could you mail those to me?

thheller21:04:51

where do you want them?

cfleming21:04:33

Thanks, I’ll try to look at that today.

thheller21:04:57

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. 😉

salam23:04:32

@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.)

shayne.koestler01:04:07

I'm getting the same exception after installing cursive yesterday and trying to open a leiningen project (luminus template).