Fork me on GitHub
#cursive
<
2019-06-21
>
cfleming02:06:03

Yeah, it’s been identified as a platform issue and JB have been able to reproduce it - it should be fixed in 2019.2 at some point, and hopefully backported to 2019.1 too.

cfleming02:06:31

Unfortunately 2019.x has pretty much sucked in terms of major bugs affecting Cursive.

nblumoe07:06:06

Hey 🙂 I got an issue with Cursive and IntelliJ modules. Scanning project.clj/deps files will make Cursive set up IntelliJ modules. I got multiple clojure projects in a single IntelliJ project and they share some folders in their config files (project.clj or deps). This results in Cursive adding those shared folders as source roots in multiple modules. This isn't allowed in IntelliJ and while it seems to work behind the scenes, it leads to problems for example when editing the module config in IntelliJ: I have to remove the conflicting source folders first to be able to save the modules config, then I need to make Cursive rescan the CLJ project files which will add the source roots again behind the scenes. Same game when I need to edit modules again at any point in the future. ;( Is there a way to resolve that or a decent workaround?

nblumoe20:06:29

@U0567Q30W any thoughts about this?

cfleming20:06:32

@U066HBF6J My apologies, I missed this message the first time around. When you say: > they share some folders in their config files (project.clj or deps) can you give an example of what that looks like in the project file? Are these just source roots?

nblumoe07:06:16

Hey, no worries. Yes, this is about source roots:

nblumoe07:06:16

Import projects recursively

nblumoe07:06:56

Get the shared src folder as a source path on both app modules

nblumoe07:06:43

Module config cannot be changed due to having the same source root on both app modules.

nblumoe07:06:29

I think I found a related issue and commented on it too: https://github.com/cursive-ide/cursive/issues/2078

cfleming08:06:29

Awesome, thank you for the excellent repro case - I’ll look at that tomorrow.

nblumoe12:06:22

Thank you!

helios09:06:33

FYI it seems that they started to work on the issue about brackets 😄 https://youtrack.jetbrains.com/issue/IDEA-211720

🙏 4
helios11:06:21

Marked as fixed in 2019.2.. so we just need to wait until that version is shipped bananadance

🎉 4
cfleming21:06:23

I’m hoping it will also be backported to 2019.1.

misha18:06:44

does anyone experience this too?: submit something to repl from repl-edit-pane, and up-arrow-key stops cycling through repl-edit-pane-history. submit something again, and up-arrow-key works again

misha18:06:00

it seems to have something to do with trailing spaces of the thing you submit. and often happens when eval results in exception

manutter5118:06:26

I think I saw something like that once, haven’t seen it in a while though.

misha18:06:37

but in both spaces and exception cases - it is war from 100% of the time

misha18:06:00

I have this like once per 1-2 hours on a bad day. but at least once a day

misha18:06:57

my ex-coworker had it too.

manutter5118:06:34

I’m on IntelliJ 2019.1.3, with the latest eap Cursive, haven’t had that problem in something like a year, I’d say.

manutter5118:06:03

Let me try something with trailing spaces and an exception…

manutter5118:06:03

Still works.

manutter5118:06:16

:man-shrugging:

misha18:06:29

I updated to 2019.1.3 a week ago and am on cursive v1.8.2-eap4-2019.1. same

manutter5118:06:40

I’m on Mac OS X, what’s your system

misha18:06:33

the thing is: It seems it only happens with spaces and exceptions, but not for all spaces and not all exceptions.

misha18:06:57

yeah OSX, but I doubt it is OS issue.

manutter5118:06:20

Ok, interesting, just seeing what we have in common and what’s different.

misha18:06:35

if it would be easily reproducible (for me), I'd already reported it -_-

manutter5118:06:46

Do you have an example of an exception that’s caused this for you recently?

misha18:06:21

no, but it just happened to:

Loading src/statecharts/specs.cljc... done
(nat-int? -1)
=> false

manutter5118:06:50

Very peculiar.

misha18:06:43

and I can't confirm were there trailing spaces or not, because cursive strips them before printing => :) or does it?

misha18:06:47

first of all, It is nice to confirm I am not insane. so that's good

manutter5118:06:53

It’s early morning in New Zealand, maybe leave a ping for cfleming, I expect he’ll be on in a bit.

misha18:06:03

I think it can wait for him to read this on his own schedule :) thanks for feedback, @manutter51

misha20:06:02

have an interesting behavior: select top form, move it with shortcut (e.g. cmd+shift+up): form is moved (it and a prev one switch places), but selection stays on earlier line(s): before and after "move":

cfleming21:06:05

@misha @manutter51 That looks like https://github.com/cursive-ide/cursive/issues/2003, which I’ve never been able to reproduce - it’s really weird.

cfleming21:06:43

@misha Hmm, that selection bug is a weird one indeed. Could you file an issue for that please?

cfleming21:06:33

Thanks!

♥️ 4
jvtrigueros22:06:17

I also get this sometimes but I'm not able to repro 100% of the time.