Fork me on GitHub
#cursive
<
2020-07-10
>
jsyrjala06:07:00

Noticed that IDEA becomes completely unresponsive when running a test which fails and then hovering on the test to get diff and diff happens to be large

jsyrjala06:07:45

macos, IDEA 2020.1.2, Latest Cursive

salam06:07:11

i don't think this is a cursive-specific problem. intellij idea, in general, hangs when rendering large amount of text.

jsyrjala06:07:11

unresponsive meaning that cmd-Q will not kill the app.

salam06:07:32

you can try this by converting that edn data to json and paste it into a json scratch file.

salam06:07:56

300k is a lot

jsyrjala06:07:14

Maybe Cursive could detect that this amount of text will hang the ide and not render it.

salam06:07:07

it could but i don't how useful the diff would be in that case...

jsyrjala06:07:24

It think it would be better to say that can’t show diff because it is too large than to hang the whole IDE 😉

salam06:07:47

agreed. 🙂

jsyrjala06:07:19

(is (= {} very-large-list-of-list-of-maps)

jsyrjala06:07:57

the object is about 300k as EDN file

Jakub Holý (HolyJak)14:07:16

Hi! Cursive tells me > thrown-with-msg? cannot be resolved for (deftest ... (is (thrown-with-msg? ...))) (I do require [clojure.test :refer :all]) Is this a known problem or do I do something wrong? The code runs just fine.

arnaud_bos14:07:17

I just (declare ...) it so the warning disappears. Your require is right and you're not doing anything wrong 🙂

arnaud_bos14:07:45

thrown-with-msg? is not something you can import, it's clojure test macro "magic"

arnaud_bos14:07:25

This comment is interesting : https://github.com/clojure/clojure/blob/28efe345d5e995dc152a0286fb0be81443a0d9ac/src/clj/clojure/test.clj#L472 You can extend clojure.test thanks to the assert-expr multimethod.

Jakub Holý (HolyJak)14:07:55

ok, thanks! I expected Cursive to have some special support for the built-in stuff in clj test. Nice trick with declare!

katox19:07:38

@danvingo if your machine is a recent one you might have bumped into an CPU bug in icelake: https://www.techpowerup.com/268479/intel-ice-lake-cpus-have-a-system-crashing-bug

😲 3
katox19:07:53

@danvingo BTW I use a 4k screen on Linux with cursive without any new specific issues

dvingo21:07:32

@katox yup MacBook Air 2020 - could be it

dvingo21:07:38

probably will just use it as a frisbee, or a coaster

dvingo21:07:39

pretty shit luck this year - the linux machine was the dell xps dev edition laptop with a 4k screen. I spent about a week scouring the intellij forums and that issue showed up, so that was my best guess, but could have been some other hardware issue. I returned that and got the macbook only to have it crash as well. I'm looking at a thinkpad next...

dvingo21:07:53

lenovo finally has some amd models

onetom16:07:31

you are just going to trade hw your issues with a different set of ones, which you will have probably even less info about on the internet >;D

dvingo17:07:51

yep... I'm going to try emacs on the macbook for a while and see if there are any issues, the more time others can find and fix the issues on the new hardware the better 😄

imre22:07:40

@cfleming I need this in my life (with editor support 🙂): https://twitter.com/cgrand/status/1281527501387440128

😮 3
🙈 3
cfleming01:07:49

That’s pretty freaky 🙂

cfleming01:07:34

I’m actually not sure how I’d add support for that one, I’ll think about it.

imre22:07:28

I just recently rewatched https://youtu.be/kt4haSH2xcs from you and wondering if there are any plans to extend the macro support

cfleming01:07:34

So, yes, there are, but unfortunately there’s a somewhat large refactor I have to do first, and I never get to it.

imre08:07:36

That talk is impressive. I saw it a few years ago and got there again reading the clj-kondo macro thread on clojureverse. It would be really nice to see an alternative approach emerge.

cfleming00:07:07

Thanks! I think that talk was one of the original motivations for spec - Rich came up and talked to me quite a bit about it afterwards.

cfleming00:07:05

I’m actually planning to (finally!) get the error-marking part of that in Cursive soon, based on a new parser I wrote a while back. That will allow a lot of nice things, like context-sensitive completions.

imre09:07:45

The similarity with spec did occur to me while watching the talk, good job, if that's really the case 🙂

imre09:07:41

Looking forward to the new stuff 🙂

imre22:07:00

To perhaps be able to properly use macros like this