This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-18
Channels
- # alda (8)
- # aws (1)
- # bangalore-clj (1)
- # beginners (55)
- # boot (114)
- # capetown (2)
- # cljs-dev (51)
- # cljsjs (1)
- # cljsrn (14)
- # clojure (119)
- # clojure-belgium (6)
- # clojure-brasil (9)
- # clojure-conj (2)
- # clojure-greece (1)
- # clojure-korea (2)
- # clojure-poland (12)
- # clojure-russia (64)
- # clojure-spec (12)
- # clojure-uk (60)
- # clojurescript (159)
- # code-reviews (2)
- # component (4)
- # core-matrix (2)
- # cursive (79)
- # datascript (7)
- # datomic (2)
- # defnpodcast (4)
- # events (2)
- # hoplon (13)
- # jobs (2)
- # lein-figwheel (1)
- # off-topic (10)
- # om (42)
- # onyx (60)
- # pedestal (5)
- # perun (7)
- # rdf (4)
- # re-frame (4)
- # reagent (21)
- # ring-swagger (25)
- # schema (1)
- # spacemacs (52)
- # specter (1)
- # utah-clojurians (1)
- # yada (5)
Do I still have to use this page : https://slack-redir.net/link?url=https%3A%2F%2Fgithub.com%2Fboot-clj%2Fboot%2Fwiki%2FFor-Cursive-Users&v=3 to use boot with cursive ?
@cfleming I'm not sure why i can't rename an alias like you said but it might be because of my first problem, which is I use alias
override from a lib instead of clojure.core, and cursive doesn't resolve that function.
@yonatanel So you have another alias function which uses alias under the hood?
Thanks. In addition, I now tried to use the core alias
and renaming 'a to 'aa didn't change all the specs that use it. I have a bunch of (s/def ::a/some-spec (s/and ...
that wasn't changed to ::aa/some-spec.
It does work when I change the :require ... :as
part when the namespace actually exists, but for specs I use non-existent namespaces just for organizing the specs.
@cfleming Are you supporting java 6 for cursive as now mentioned over at #clojure ? I think the newer intellij already requires java 8.
I see - yes, I suspect that is correct. I’ll have to fix the support for alias
to ensure that that symbol correctly refers to the alias.
Yes, I am. Java 8 is only required for v2016+, currently I support v14, v14.1 and v15 as well. I’m about to drop support for v14 and v14.1, but v15 will be supported until next year.
@cfleming re alias
, how do you do that? Do you link the aliased symbol only to its occurrences after the alias call?
For some v15 users on a Mac, Apple JDK6 is still the best JDK to use for running IDEA.
@yonatanel Re: alias, right, I add support for clojure.core/alias
which says that the first symbol actually refers to the namespace alias. I’ll also add support saying that com.gfredericks.schpeck/alias
works like the core one.
@cfleming Would it be crazy to link symbols from anywhere and not just in alias calls to keyword namespaces?
I'm trying to think of a way you don't have to support a new lib that impersonates alias when someone else decides to write one.
Or maybe when renaming a namespaced keyword like ::a/k to have the option to change only the alias. The more I think about it it seems to much to support. Never mind.
Nice, ctrl+shift+quote
maximizes any tool window including the REPL if you're in it.
@bfabry When you’re getting REPL slowdowns, are you printing a ton of output in the REPL?
Actually, @imre as well - are you printing a lot of output when seeing these slowdowns?
I'm on: IntelliJ IDEA 2016.2.5 Build #IC-162.2228.15, built on October 14, 2016 JRE: 1.8.0_112-release-287-b2 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
@cfleming sometimes there can be a lot of output due to test being executed resulting in exception stack traces
When I say a lot of output, I’m starting to see memory issues at around 256k lines of output.
I’m not sure. I’ll try that for the problem I’m seeing and see if it works. If it does, I might limit scrollback to 50k lines (configurable) or something.
@cfleming Do I also have boot run with a run configuration or must I open a terminal for it ?
@cfleming thanks. just to make sure this part of the problem doesn't get lost - when my repl slows down, the entire ide slows down. Even moving the caret around in the editor window becomes painful
@imre Can you check the memory usage? I always turn the indicator on: Settings->Appearance & Behaviour->Appearance->Show memory indicator. You can click on that to perform a GC. If the slowdown is GC thrashing, the memory will be nearly all used, and clicking will free very little.
@cfleming Do you know how to change the upper limit on the RAM? I have tried editing Help > Edit Custom VM Options but the Xmx
number does not reflect the number shown in the UI bar.
@kenny That should be it, see https://intellij-support.jetbrains.com/hc/en-us/articles/206544869-Configuring-JVM-options-and-platform-properties
I guess that unless you set the min and max to the same value, it’s possible that the JVM will initially allocate less, and then expand it on demand - that might be what you’re seeing.
The min is at 1g right now but the bar shows "287 of 725M". Shouldn't it be "287 of 1024M" or something closer to 1g, not 725M?
I see 725M too, and I’m pretty sure I have it set to 1G. I don’t know what the difference is due to - possibly that’s what used to be the permgen?
I know the JVM usually has a fairly high constant overhead too, perhaps IntelliJ is factoring that out?