This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # aleph (11)
- # aws (1)
- # beginners (14)
- # bitcoin (1)
- # boot (41)
- # cider (6)
- # cljs-dev (1)
- # cljsrn (13)
- # clojure (138)
- # clojure-italy (10)
- # clojure-nl (1)
- # clojure-poland (2)
- # clojure-russia (62)
- # clojure-sg (2)
- # clojure-spec (31)
- # clojure-uk (51)
- # clojurescript (109)
- # core-matrix (1)
- # core-typed (1)
- # cursive (63)
- # datomic (10)
- # emacs (9)
- # euroclojure (1)
- # hoplon (112)
- # immutant (16)
- # jobs (2)
- # lumo (5)
- # off-topic (14)
- # om (54)
- # onyx (17)
- # parinfer (23)
- # pedestal (2)
- # re-frame (41)
- # ring-swagger (23)
- # spacemacs (9)
- # specter (10)
- # uncomplicate (5)
- # vim (1)
@cfleming hello, not sure you saw this, I just updated IntelliJ for 2017.2, and now this is happening: https://www.dropbox.com/s/spf5hepegkvh5ud/Screenshot%202017-07-18%2022.27.23.png?dl=0
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.
@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.
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).
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.
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
@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->Show log in Finder…)
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.)
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.
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.
@cfleming The files I’m working on have a decent amount of React Native interop calls as well as quite a few
@mfikes @wilkerlucio If you’d like to try out the CLJS change, go to the plugin repo here: https://plugins.jetbrains.com/plugin/8090-cursive, 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
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.