This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-19
Channels
- # admin-announcements (1)
- # arachne (3)
- # atlanta-clojurians (5)
- # beginners (6)
- # boot (37)
- # braveandtrue (1)
- # cider (128)
- # clojars (3)
- # clojure (224)
- # clojure-belgium (5)
- # clojure-boston (43)
- # clojure-czech (8)
- # clojure-france (2)
- # clojure-greece (17)
- # clojure-hamburg (4)
- # clojure-russia (285)
- # clojure-seattle (1)
- # clojure-uk (12)
- # clojurescript (209)
- # core-async (2)
- # core-matrix (8)
- # core-typed (1)
- # cursive (2)
- # data-science (2)
- # datascript (1)
- # datomic (18)
- # emacs (12)
- # events (2)
- # hoplon (15)
- # immutant (1)
- # jobs (1)
- # ldnproclodo (23)
- # leiningen (10)
- # mount (8)
- # off-topic (7)
- # om (126)
- # onyx (6)
- # overtone (2)
- # parinfer (5)
- # proton (24)
- # re-frame (16)
- # reagent (14)
- # untangled (105)
- # yada (1)
@malabarba: cider-nrepl is not needed as well?
Yeah, apparently I don't need any of those plugins anymore (I did a long overdue upgrade of multiple plugins last night) but tried it anyway in case something weirder was going on internally.
@rmuslimov: indeed. You don't need anything in your profiles.clj for a regular Jack in.
@aengelberg: @malabarba got it, thanks!
Even with nothing in profiles I'm still getting the issue.
Maybe I need cljx in my plugins? I'll try that when I get home
@aengelberg: Yes, you probably do. The point is that CIDER no longer needs you to add any plugins or dependencies. But you still need to use whichever are needed by your project.
@malabarba: The project.clj of my project does have cljx in :plugins
, which is why I'm surprised it doesn't work. Putting it in my profiles.clj
's :plugins
might solve it anyway.
@aengelberg: today I have some time to investigate cljx issue. sometimes it works for me, sometimes not
@aengelberg: {:repl {:dependencies []}}
in ~/.lein/profiles.clj
seems to fix the issue for me
@maio as in specifically make sure there's an empty vector, or you're just emphasizing there are no deps?
@aengelberg: that there is an vector (doesn't matter whether empty or not)
@maio: Hah! That fixed it for me too!
I suspect that update-in conj ...
somehow breaks it when cider jacks in and there is nil instead of vector, but that's just wild guess
my profiles.clj diff
{:user {:plugins [[lein-clojars "0.9.1"]
[lein-ring "0.8.10"]
[lein-4clj "0.1.0"]
[lein-try "0.4.1"]]
:dependencies [[pjstadig/humane-test-output "0.7.0"]]
:injections [(require 'pjstadig.humane-test-output)
(pjstadig.humane-test-output/activate!)]}
+ :repl {:dependencies []}
}
@aengelberg: good, thanks for test. I'll file an issue somewhere
thanks for the help!
Looks like it became cider-find-var
https://github.com/clojure-emacs/cider/blob/93651b7853eb9605fa49fcaa03c0314f9c6abc52/cider-mode.el#L280
I noticed a tiny delay when clicking on cider's buffers and it might be related to the new popup for symbols
I have to double check and try to switch it off (I am on version .12)
Will investigate
I see also that nrepl-current-connection-buffer
has been removed, what function can I use instead?
Ok found, flycheck-clojure
has the answer: https://github.com/clojure-emacs/squiggly-clojure/blob/c432f07dc8ba548043f3b02ecf0f23020e87ef04/elisp/flycheck-clojure/flycheck-clojure.el#L92
It seems like just 4 months ago that 0.10.0 was released at #ClojureX2015....oh wait...
I get this "Figwheel: Starting server at http://localhost:3449ā but then C-c C-e suggests I should attach a repl (already did)!
@zentrope: cider had no way of knowing that you started the app. You need to cider-connect to it
@malabarba: I did the cider-jack-in-clojurescript. That doesn't do it?
Iām reading two sets of docs, ciderās and figwheelās. Itās not super clear whatās up. Hm.
Do you start figwheel (lein figwheel whatever) first? When I do that, I get a port conflict.
You could start figwheel separately and then call cider-connect (instead of Jack-in)
I added nrepl port and nrepl middleware to the figwheel config (as per fig wiki) but no changed.
Ah, connected, somehow, but the (js/Alert āfooā) locked up the repl, and that progress meeter REPL[ ===] is still going.
Okay, so, cider-connec to nrepl at 7888 (as per figwheelās suggestion), I get an stdin: prompt in the minibuffer. If I type stuff there, things work.
Yeah, the jack-in version doesnāt ever seem to connect to a clojurescript environment.
Maybe it has to do with there being no Clojure code at all in this project? Huh. Anyway.
I bet Ciderās not working for me, here, because somethingās messed up with Figwheel.
@zentrope: I actually have working figwheel with emacs-cider, just use figwheel-sidecar and start their command inside of it
something like (setq cider-cljs-lein-repl "(do (require 'user) (user/start-cljs) (user/repl-cljs))")
rmuslimov: I think I have some other problem. When I follow the instructions on the Figwheel nrepl wiki page, I canāt even get figwheel to read project.clj via (start-figwheel!).
hmm, weird, btw I had same problems too, because all that tutorials require to be familiar with. May be this working example may help with figwheel setup
So, itās trivial https://github.com/rmuslimov/logprocessor/blob/master/project.clj
Ah, youāre configuring it directly rather than relying on the stuff in project.clj, I see.
Just install that variable to emacs that I mentioned before and everything should works after
Seems like a good plan. Leave the āprodā build in project.clj, and the hackery over in user.
@zentrope: actually, not sure about if it is really good plan, however it is enough for me now it that project
@rmuslimov: Thanks again. Your plan works. ;)
@rmuslimov: @zentrope Great!
@malabarba: The issue turned out to be that I have several forms above my defproject form, and figwheel didnāt account for that.
I tried updating cider within EL and itās like āI KINDA KNOW WAHT IāM DOā¦ NOPE, NOPE, NOPE, GIT RESET"
@rmuslimov: With your cljs/user.clj set up, do you have issues reloading css?
@rmuslimov: I see āsending changed CSS fileā but no actual changes. Hm.
Adding the css-dirs to the options makes it to that a āloadingā message is displayed in the figwheel log, but thatās it.