Fork me on GitHub
#spacemacs
<
2018-07-09
>
troglotit15:07:30

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%.

callum00:07:36

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)

callum00:07:38

@U15603AQZ You'll have to delete the existing version installed by spacemacs out of your elpa store first, i think

troglotit06:07:04

and where did you put it? I tried in dotspacemacs/init as it described in that issues thread but it didn’t work

troglotit08:07:16

Oh, it’s a bit different, it worked when I put it in dotspacemacs/init. Thank you!

Roy Truelove15:07:58

If you put the version directly in your profile for lein, will that do it?

troglotit15:07:41

yeah, I pinned it there, but I need to pin it in emacs config too

troglotit15:07:13

and as I far as I remember tools.nrepl is not required in new version of cider

troglotit15:07:38

so there’s quite a lot of combinatoric variations of how to make everything work 🙂

troglotit15:07:15

and also, I’m using spacemacs, which has it’s own quirks

Roy Truelove15:07:16

> 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

prnc15:07:23

Hi everyone! How do you guys navigate through *.jars? Say I would like to grep/ack/ag/... the files in the jar from emacs, is there a way 😜?

practicalli-johnny10:07:46

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.

jumar14:07:25

@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

👍 4
Aleksander15:07:04

unzip it first 😉

Aleksander15:07:20

jars are zip files with special structure

prnc15:07:03

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

Aleksander15:07:19

there might be …

prnc15:07:49

there always is 😉 thanks anyway!

troglotit15:07:58

That workaround https://github.com/syl20bnr/spacemacs/issues/2057#issuecomment-137960576 doesn’t work for me 🙁 it says that “package is unavailable”

prnc16:07:34

@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!

Bravi20:07:40

hi everyone. is there a way to clear recent files and projects list in home buffer?