-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClojureScript get's really slow #516
Comments
If you turn on Settings->Appearance->Show memory indicator are you seeing the IDE use a lot of memory? One other thing to check - do you have your CLJS compile target directory (where the generated JS gets output) in your project, or is it excluded? If you exclude that directory (right click->Mark as...->Excluded), does that help? What might be happening is when you switch back to IntelliJ it indexes all the new generated JS. |
I was checking the memory, it goes really high (from 102 to 500 in a few seconds, just after tab back). After you said, I excluded the "out" folder, but it still have the slow after switching the app. I also noticed the slowdown only occurs if I a recompilation happens (if I just keep alternating without nothing new compiled, it doesn't have the slowdown). I also noticed that I got a lot of errors like this (like 100+):
|
Hmm, there's definitely a bug there. However that stack trace shows that it's indexing javascript. Is your JS definitely being generated under |
Yes, I made the pre-compiled files go into |
That is weird. I'll try to reproduce this by working through the Om tutorial and see if I see the same problem. |
Ups, sorry, I did forgot to comment the compiled folder, now that I did the slowdown is gone :) Thanks very much for the quick support, I think at some point you should put this info about JS so other people remember to do it to avoid this slowdown. |
Oh, ok, awesome. Can you share the part of your |
Sure, here it is: (defproject captioneer-editor "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0-alpha2"]
[org.clojure/clojurescript "0.0-2322"]
[org.clojure/core.async "0.1.338.0-5c5012-alpha"]
[om "0.7.3"]]
:plugins [[lein-cljsbuild "1.0.3"]]
:source-paths ["src/cljs"]
:cljsbuild {
:builds {
:dev {
:source-paths ["src/cljs"]
:compiler {
:output-dir "resources/out"
:output-to "resources/compiled/main.js"
:optimizations :whitespace}}}}) |
That looks pretty straightforward. Ok, I'll double check how the exclusion works there. In the meantime I'll close this issue. |
Just one detail that worth noticing, in my project it actually generated the precompiled on 2 different places, |
Hmm, interesting. And Piggieback has no configuration in the One thing - you'll probably find that Cursive un-excludes your directories next time you sync your project. I just checked, and I'm not actually excluding those directories - I'm excluding whatever you have in your top-level |
Yeah, I have Piggieback setup on my Lein profile. Thanks. |
Hi,
I'm noticing here that everything I work on ClojureScript stuff the IDE get's really slow... Specially after I cmd+tab and get back... Every time I cmd+tab back on IntelliJ it takes about 3 ~ 4 seconds to the IDE get responsive again... This is very annoying specially for web development where you are alternating between the IDE and the browser constantly...
When working on pure Clojure projects this doesn't happens at all, but on ClojureScript any small project (here I'm talking about only 1 source file, plus the dependencies that usually are: core.async and Om).
Until this gets improved, there is a way for me to disable something that you would make my cljs development faster?
Thanks.
The text was updated successfully, but these errors were encountered: