Fork me on GitHub
#cider
<
2018-06-22
>
richiardiandrea00:06:37

maybe not that we have expound we could improve the print out of exception info?

1. Unhandled clojure.lang.ExceptionInfo
   "could not start [#'ep-cloud.config/options] due to Error: Spec assertion failed\n-- Spec failed
   --------------------\n\n {:aws {:definition-bucket nil, :s3-region ...},\n ^^^\n :azure
   ...}\n\nshould satisfy\n\n string?\n\n-- Spec failed --------------------\n\n {:aws
   {:definition-bucket ..., :s3-region nil},\n ^^^\n :azure ...}\n\nshould satisfy\n\n string?\n\n--
   Spec failed --------------------\n\n {:aws ..., :azure {:definition-blob nil}}\n ^^^\n\nshould
   satisfy\n\n string?\n\n-------------------------\nDetected 3 errors\n"

manuel05:06:32

re-installing from MELPA gives me:

Error (use-package): Failed to install cider: cider-interaction.el:0:0: error: scan-error: (Unbalanced parentheses 63119 87569)
Error (use-package): Failed to install cider-mode: cider-interaction.el:0:0: error: scan-error: (Unbalanced parentheses 63119 87569)
Error (use-package): Failed to install nrepl-client: cider-interaction.el:0:0: error: scan-error: (Unbalanced parentheses 63119 87569)
Error (use-package): Failed to install cider-repl: cider-interaction.el:0:0: error: scan-error: (Unbalanced parentheses 63119 87569)
Error (use-package): Failed to install cider-interaction: cider-interaction.el:0:0: error: scan-error: (Unbalanced parentheses 63119 87569)
Error (use-package): Failed to install cider-stacktrace: cider-interaction.el:0:0: error: scan-error: (Unbalanced parentheses 63119 87569)
Error (use-package): Failed to install cider-util: cider-interaction.el:0:0: error: scan-error: (Unbalanced parentheses 63119 87569)
Error (use-package): Cannot load cider-util
Error (use-package): Failed to install clj-refactor: cider-interaction.el:0:0: error: scan-error: (Unbalanced parentheses 63119 87569)

dpsutton05:06:44

this has been fixed already. not sure when it will appear on melpa but should be soon (TM)

bozhidar05:06:50

Sorry about the breakage, guys! I copy/pasted this and I was too tired to test it. Hopefully the new build will be out soon. If you’re in a hurry there’s always this option

manuel06:06:52

no problem, here. I can safely wait. Thanks for the prompt fix!

bozhidar06:06:07

You’re welcome!

kah0ona08:06:55

Hi people, I’ve updated cider to 0.18 snapshot, and when i do cider-jack-in-clojurescript i only get one cljs repl, before it also started a clj repl. Is this a bug or a feature/

kah0ona08:06:12

or should I now do first cider-jack-in, and then cider-jack-in-clojurescript

manuel08:06:40

I think it's a feature now

manuel08:06:06

I use both commands for projects which involve clj and cljs

kah0ona08:06:36

only disadvantage is now that i need two extra keystrokes, but that’s ok 🙂

manuel08:06:02

on the other hand, for cljs-only projects you get one REPL only now 😉

kah0ona08:06:14

yeah I see the trade-off

bozhidar08:06:05

@kah0ona The old command still exists - it just has a different name now (`cider-jack-in-clj&cljs`).

bozhidar08:06:26

There’s no real trade-off, we just made the commands more granular.

manuel08:06:45

oh I missed the different name

kah0ona09:06:56

soo, since i’m fairly new to emacs (i actually use spacemacs), I always do a jack-in with `, “' key combination

kah0ona09:06:22

and when I press only , I see a list of available commands

kah0ona09:06:27

is that spacemacs or emacs specific?

kah0ona09:06:52

anyway; the cider-jack-in-clj&cljs is not enlisted there, whilst cider-jack-in and cider-jack-in-clojurescript are

kah0ona09:06:16

on the bottom pop-up of the editor

kah0ona09:06:35

not familiar with all the emacs terminology to know what ‘thing’ does that, lol

manuel09:06:39

I don't use spacemacs, but if you do C-c M-x or M-x cider you should see the list of commands available. Among them, cider-jack-in-clj&cljs.

kah0ona09:06:37

yeah it’s there

kah0ona09:06:45

so if you do only C-c

kah0ona09:06:06

do you see a popup in the bottom enlisting what hotkeys are available?

kah0ona09:06:52

if so; is that an emacs specific thing, or some package that does that? (since spacemacs comes with ‘batteries included’, a lot of features i don’t know where it comes from, if it’s a package or something standard or whatever :-))

manuel09:06:44

I have a popup, yes, I am using which-key (https://github.com/justbur/emacs-which-key).

kah0ona09:06:41

aah which-key

kah0ona09:06:02

so if you press , then in a .clj file, does something happen? (if not i presume it’s a spacemacs thing showing a which-key dialog)

manuel09:06:25

no, must be something on your side. 🙂

kah0ona09:06:31

aha okay thank

kah0ona09:06:07

well there the cider-jack-in-clj&cljs is not (yet) listed, so i’ll look further to figure out which open source project should be contacted to reflect this command 🙂

👍 4
bozhidar09:06:43

@kah0ona Listed where? Docs/menus? Unfortunately they are not yet updated after the changes, hopefully this will happen over the weekend.

bozhidar09:06:06

M-x cider-jack-in-clj&cljs should fine, though.

bozhidar09:06:11

I think it’s not in which-key because it doesn’t have any keybinding associated with it.

bozhidar09:06:48

Btw, there’s now also M-x cider which is a wrapper around all jack-in commands. I’d advice most people to simply use it. C-c M-x.

kah0ona09:06:48

what does that for you?

kah0ona09:06:28

for me it gives the same which menu as I talked about before, but againn, not sure if it’s spacemacs specific…

bozhidar09:06:52

That’s certainly not a standard Emacs keybinding.

bozhidar09:06:12

And I’ve never used Spacemacs, so I can’t tell you more on the subject.

kah0ona09:06:25

skip to 8:55

bozhidar09:06:27

Except maybe use C-h k to see what this is bound to.

kah0ona09:06:27

to see what i mean

kah0ona09:06:58

ah ok if it’s spacemacs specific, then n/m of course

kah0ona09:06:06

just wondered if it was 🙂

kah0ona09:06:07

but anyway; someone made that (or it is auto-generated), and it doesn’t list cider-jack-in-clj&cljs yet, so i’ll ask in #spacemacs or something 🙂

bozhidar09:06:07

Which like which-key to me.

bozhidar09:06:23

I normally use it with a timer, maybe they just bound it to some key.

andre.stylianos10:06:31

@kah0ona that's spacemacs specific, it's configured in the clojure layer

kah0ona10:06:41

Ah thanks!

kah0ona10:06:03

I have a bit of trouble with the new Cider version. Sometimes if I evaluate something in a .clj file, it sends it to the cljs repl somehow

kah0ona10:06:15

and then it of course crashes since it doesn’t compile

kah0ona10:06:36

anyone experiencing the same?

kah0ona11:06:45

it seems like both repls are of type [clj] as well, used to be 1 [clj] and one [cljs]…

kah0ona11:06:49

not sure if that is related

bozhidar11:06:47

@kah0ona What’s the cljs repl you’re using?

bozhidar11:06:05

although the auto-detection should be working fine for figwheel (don’t have time to test it now, though)

bozhidar11:06:34

You can use the work-around I’ve mentioned in the end - it’s possible to stop the auto-detection of the REPL type and just manually set it.