Fork me on GitHub

@cfleming hello, not sure you saw this, I just updated IntelliJ for 2017.2, and now this is happening:


not all of then, in my file only one of the defn got this, which is pretty weird


wow, I just removed and then typed again, and now it's back to normal :face_with_rolling_eyes:


ok, it happened again, with a different function, something seems odd about the arity detection


^ I’ve seen this arity stuff recently as well. If I wait a bit (half a minute), they clear out on their own.


That seems bothersome. Especially if there is some analysis spinning in the background.


just got cursive up and running on IntelliJ CE last night. one that that's really bugging me is that it doesn't let me just type and bracket ()[] wherever I want. it's trying to be "smart" about what it does but it ends up making the user experience pretty frustrating.


for example, in order to insert a missing ) in the correct spot, I have to copy an existing ) and paste it in place instead of just being able to type )


I'm guessing it gets easier to use with time, but transitioning from any other editor (including other IntelliJ based editors), it's really counter-intuitive.


Is there a setting I can use to turn that "smart" behavior off?


@chrisbroome In the bottom right corner there is “Paredit” (or “Parinfer”). If you click that and select “Structural Off” it will turn off this “smartness” and let you insert stuff wherever you want.


awesome thank you!


it was set to Paredit


I find that if you’re doing structural editing you cannot really mess things up but I sometimes hit the backspace instead of killing an S-expression as well and occasionally mess things up.


Mind you I also use IdeaVim so that adds to the complexity since Paredit does not really prevent you from x-ing a symbol (i.e., deleting a character in normal mode by hitting the “x” key).


lol yeah that would be "fun"


ESC d$... woops


I think if you take the time (and it’s not a lot fortunately) to familiarise yourself with structural editing and learn the keybindings you’ll experience a massive productivity boost. That’s one of the awesome things of coding in a Lisp.


you're probably right


need to think more in data structures since that's what the language is defined in


i think a pretty normal flow is to bind the hotkey for toggling structural editing and toggling to fix small issues, but for the most part stay in some structural form


that being said, i don't do that. i do think its a good flow though


ah that would make sense


@wilkerlucio @mfikes That’s very strange. What’s odd is that it’s reporting the wrong arity (that form pretty clearly has args), if it were an indexing problem I’d expect the reported arity to be correct.


@cfleming Last time I saw it (earlier today), I first typed (defn) which starts off in an invalid state, and is properly marked as such. Then I proceeded to fill in the the function definition, but the markings stayed. My best guess is that I have other things running on my box, which are taking up sufficient CPU to delay background marking task. (My son has me rendering some 3D animations for him.) Otherwise, it might actually be the case that the background thread died. If I see it again, I’ll be sure to open the Event Log.


@mfikes Hmm, that could be - that seems pretty seriously delayed though, especially in the screenshot Wilker posted.


Yeah, I agree @cfleming. I’d be more satisfied if the root cause was a static analysis error earlier in the file that derailed things.


I’d be interested to know if either of you have errors in your log when it happens (Help-&gt;Show log in Finder…)


Cool. I’ll check there if it happens again.


sure, if I get that again I'll get the log


A few days ago I went through a period of 2 or 3 days where IntelliJ and/or Cursive was completely locking up every 2 to 3 hours, and I had to force kill it. Those problems have since gone away. (I changed nothing to make it arrive, and nothing to make it go away.)


@mfikes are you on IntelliJ 2017.2?


ok, just a guess, because I started seeing the issue after upgrading yesterday, but might be a coincidence


@cfleming unrelated question: today I added a dependency that was installed via lein install (not a deployed one), but when I try to compile my JS it's not finding the dependency, I noticed this dependency is not on the classpath on launch, but it is present at the External Libraries when I look there, you have an idea what can be going wrong here?


also, compiling via terminal works fine, just when launching from cursive it's missing


@cfleming I see quite a few of these

2017-07-19 11:16:00,235 [  38653]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: core.cljs 
2017-07-19 11:16:00,235 [  38653]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: core.cljs 
2017-07-19 11:16:00,236 [  38654]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: core.cljs 
2017-07-19 11:16:00,236 [  38654]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: state.cljs 
2017-07-19 11:16:00,236 [  38654]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: state.cljs 
2017-07-19 11:16:00,236 [  38654]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: state.cljs 


@mfikes A few users have reported the slowdown issue, and I believe it’s due to the indexes being slow for CLJS interop. I have a fix for that as part of a longer project to improve that side of things, it should be out soon. Hopefully that helps.


@wilkerlucio Does lein classpath show it?


@mfikes Are those the ClojureScript core files?


Some of them were


They’re pretty big, which might be why the indent detection times out.


I ignored the ClojureScript ones (they are a little unfair to Cursive), but the ones I pasted above are not, they are small ones from my own code.


@wilkerlucio If you look at your Project Structure (Cmd-;), and then look at your module, is that lib in your deps?


the files on my machine on the issue were small, but my home machine (where I got the arity issue) is currently being slow in general, and for some reason IntelliJ was constantly using 200% of my CPU (even I was not doing anything with it)


@mfikes Do those files contain interop? If you were experiencing this interop problem the other day, that might have caused it too.


@wilkerlucio I wonder if that is the CLJS indexing issue too.


@cfleming The files I’m working on have a decent amount of React Native interop calls as well as quite a few #js literals


@mfikes @wilkerlucio If you’d like to try out the CLJS change, go to the plugin repo here:, then click on “dev” to see the dev channel, and download the 1.6.1-snapshot2 build corresponding to your IntelliJ version.


@cfleming interesting, when I checked my modules, it had 2 different modules, one of then was missing the library


Cool. I’ll give it a try.


@wilkerlucio Hmm, that is strange. Is this a lein project?


Did you have modules like module and module_1?


module-1 to be more precise


Somewhere recently something broke in the lein importing, and sometimes modules get duplicated. If you remove the duplicate (module-1) and refresh, hopefully that might help.


ha, after removing the one with bad dependencies it's now working again