Fork me on GitHub
#spacemacs
<
2017-10-19
>
eggsyntax01:10:21

I use magit pretty routinely, but I still do the complicated stuff at the command line. Force of habit, I guess...

ag01:10:40

@eggsyntax you know about existence of ! in magit-status popup - it's awfully nice

eggsyntax01:10:06

Oooh, no, very cool! That may get me to finally switch fully.

eggsyntax01:10:54

I'm gonna go read the magit documentation, I never actually have...

ag01:10:19

Well... to be honest I never have read it. Maybe I should do that too 😉

bja05:10:49

has anyone managed to get flycheck-clojure working with spacemacs?

bja05:10:28

err, apparently I have to explicitly pick a checker for SPC e b to work

andre.stylianos08:10:24

@bja I had some trouble getting flycheck-joker to work here for clj/cljs. Don't know if it's the same but what I needed to do was adding

(require 'flycheck-joker)
  (spacemacs/add-flycheck-hook 'clojure-mode)
  (spacemacs/add-flycheck-hook 'clojurescript-mode)
to my dotspacemacs/user-config

pesterhazy08:10:41

for me (require 'flycheck-joker) is sufficient

jumar11:10:01

@pesterhazy don't you have following in your config?

(add-to-list 'flycheck-global-modes 'clojure-mode)
  (add-to-list 'flycheck-global-modes 'clojurescript-mode)
https://github.com/pesterhazy/arena/blob/master/.spacemacs#L446

pesterhazy11:10:09

It turns out you know my spacemacs config better than me 😂 😂

pesterhazy08:10:54

it works great

andre.stylianos09:10:41

:thinking_face: I thought those last two were needed here to make it work but maybe not, I'll try later without the last two lines 😛

andre.stylianos09:10:58

btw, version 0.8.5 was released around two weeks ago, working nicely here

pesterhazy10:10:09

flycheck-joker gives an enormous productivity boost

andre.stylianos10:10:24

It sure does! It's hard to imagine going without it after I started using it

pesterhazy11:10:20

@andre.stylianos turns out you're right about those config lines

jumar11:10:16

I tried flycheck-joker a while ago and wasn't able to get it work properly. Now I tried again and it's great! Thank you, @andre.stylianos and @pesterhazy

mccraigmccraig13:10:02

hmm. just installed flycheck-joker and i get a bunch of errors for valid code... does it need teaching about custom binding macros ?

mccraigmccraig14:10:34

but no way of specifying new macros which have arbitrary bindings vectors 😞

Candid19:10:12

Joker allows to specify symbols that are introduced by a macro, i.e. {:known-macros [[riemann.streams/where [service event]]]}. Does it not cover your case?

mccraigmccraig11:10:35

i don't think so @U75LX44UA - these are macros which have arbitrary binding vectors - e.g. https://gist.github.com/1b6eefd2d7035a52a3347cdfca69f3fb - here the symbols org-id con-id and msgs are bound by the ddo macro (which is some thin sugar over the funcool/cats mlet macro)

Candid15:10:31

I see. I don't think this can be solved, unfortunately. Too much macro magic 🙂

Candid16:10:35

Oh, wait, I just realized that those bindings should work fine in Joker, as long as you add ddo (fully quialified) to :known-macros. I tested it locally and it works (that is, Joker doesn't complain about those bindings). Is it not working for you?

mccraigmccraig17:10:36

oh, right - i must have misread what is possible in the docs then - i'll try it out and report

mccraigmccraig10:10:43

it is now working for me - thanks @U75LX44UA

pesterhazy14:10:20

yeah I just ignore those errors 🙂

pesterhazy14:10:15

joker also seems not to recognize {:keys [:ns/kw]}

Candid19:10:26

This should work. Can you provide full example that's not working?

pesterhazy20:10:17

I tried to repro but couldn't

pesterhazy20:10:40

Will post an issue if I see it again

Candid00:10:23

looks like it was broken for cljs files but worked for clj. Will be fixed in the next release.

pesterhazy06:10:27

Ah yes, that must be it. Thanks for building this fantastic tool @U75LX44UA !

mccraigmccraig14:10:05

ha, i'm getting about 50% of lines with red-dots... it's pretty much unusable for me 😞

pesterhazy14:10:09

you must be a heavy user of macros

mccraigmccraig14:10:05

i have a few macros around which are very heavily used... mostly mlet from cats and some promise error-handling stuff which can't be done as a fn

ag22:10:50

joker is awesome, one thing I couldn't figure out how to make boot.core primitives to be ignored, I added them to :known-macros and tried adding them to :known-tags - they still get higlighted

practicalli-john23:10:03

@pesterhazy You can also see changed lines in a buffer using the fringe option in the Git layer (git :variables git-gutter-use-fringe t)