This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-09
Channels
- # beginners (20)
- # boot (4)
- # cider (2)
- # cljs-dev (25)
- # clojure (45)
- # clojure-dev (1)
- # clojure-greece (5)
- # clojure-italy (20)
- # clojure-nl (12)
- # clojure-russia (11)
- # clojure-uk (256)
- # clojurescript (176)
- # data-science (33)
- # datomic (47)
- # docs (1)
- # duct (13)
- # fulcro (54)
- # graphql (24)
- # hoplon (3)
- # jobs (1)
- # leiningen (32)
- # luminus (3)
- # midje (1)
- # mount (2)
- # off-topic (3)
- # onyx (5)
- # overtone (1)
- # parinfer (12)
- # pedestal (4)
- # re-frame (60)
- # reagent (11)
- # reitit (3)
- # ring-swagger (21)
- # rum (1)
- # shadow-cljs (16)
- # spacemacs (23)
- # tools-deps (19)
- # vim (79)
Hey! Does anyone have specific workarounds for pinning cider version? I was working on cljs/shadow-cljs project - my emacs/cider worked, but right now I work on clj/lein so it doesn’t work 100%.
I fiddled with this for ages, and tried a whole bunch of things from different spacemacs issue threads. Eventually, this is what worked for me in dotspacemacs/init
:
;; stable packages
(add-to-list 'configuration-layer-elpa-archives '("melpa-stable" . " "))
(add-to-list 'package-pinned-packages '(cider . "melpa-stable") t)
@U15603AQZ You'll have to delete the existing version installed by spacemacs out of your elpa store first, i think
and where did you put it? I tried in dotspacemacs/init as it described in that issues thread but it didn’t work
If you put the version directly in your profile for lein, will that do it?
> there’s quite a lot of combinatoric variations of how to make everything work That’s for sure Looks like pinning versions in general for Spacemacs might be an outstanding issue https://github.com/syl20bnr/spacemacs/issues/2057
Hi everyone! How do you guys navigate through *.jar
s? Say I would like to grep/ack/ag/... the files in the jar
from emacs, is there a way 😜?
Did you try just opening the jar in Emacs. It should let you navigate through the directories and view the files. Not sure about search though.
@U7MHWDLD8 you can try zipgrep
. Although it's not the most ergonomic "solution" i'm not aware of anything else. As @U05254DQM mentioned, showing the list of all files in jar is easy - just open the file. Then you can execute eshell
and you will end up in you local m2 repo dir where the jar is located.
I typically use it like this:
cider-open-classpath-entry
<jump to the selected jar; e.g. clj-http>
eshell
zipgrep 'GET' clj-http-3.7.0.jar
unzip it first 😉
jars are zip files with special structure
yeah, that's what I did--new to emacs, clojure etc--I thought maybe there is some other way, what gave false hope I guess was that I could browse through with dired
without manual unzip
there might be …
That workaround https://github.com/syl20bnr/spacemacs/issues/2057#issuecomment-137960576 doesn’t work for me 🙁 it says that “package is unavailable”
@dev964 found this to be quite helpful: https://stackoverflow.com/questions/1431351/how-do-i-uncompress-unzip-within-emacs#1432116 essentially letting dired
know that jar is a compressed file and I can then uncompress with Z
neat, cheers!