spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
murtaza52 2020-12-17T08:34:31.204700Z

In spacemacs navigation on namespaced keywords is not working for me, SPC m g g does not take me to the definition of a ns keyword. How do I get it working ?

nmkip 2020-12-17T10:51:02.209Z

practicalli-john 2020-12-17T10:52:41.209400Z

@murtaza52 Hmm, I am assuming you are refering to keywords defined as Clojure specs, as keywords themselves are their own definition I havent found any CIDER commands that will jump to the location of spec definition, given a spec name. SPC m g s runs cider-browse-spec and shows the spec details, but does not jump to the location in the code where its defined. This command simply looks at the spec registry.

practicalli-john 2020-12-17T11:11:37.209500Z

CIDER roadmap suggests socket repl is not supported https://github.com/clojure-emacs/cider/blob/master/ROADMAP.md#socket-repl-support-and-potentially-unreplprepl-support-as-well From my own limited undertanding, Socket repl is a very simple streaming protocol and Cider uses nREPL client-server with a specific message protocol. They are both using standard 'network' protocols underneath, so can connect, but they don't understand how to talk to each other. See articles by Oliver Caldwell if you want to know more about Socket repl (there are several articles from 2019) https://oli.me.uk/exploring-repl-tooling-with-prepl/ As far as I know, only Chlorine (Atom editor) supports socket repl. Oh and now Clover which is a port of Chlorine to VScode. I've seen a few projects for Emacs and Socket repl, usually with unrepl. No idea if they work or what limitations they have.

practicalli-john 2020-12-17T11:12:33.209800Z

If you do find something that works, I would be interested to hear about the experience it provides. Thanks

jumar 2020-12-17T11:48:42.211300Z

@murtaza52 @jr0cket cider-find-keyword used to work for me to jump to a keyword in another namespace - I used it to jump to a spec definition quickly. But it got broken a long time ago - I'm not sure when....

nmkip 2020-12-17T11:52:12.211400Z

Cool thanks! I was trying reveal once again in emacs.

nmkip 2020-12-17T11:53:18.211600Z

I'll have to use vscode or cursive then 😞 In those editors I struggle a bit with vim and parens

nmkip 2020-12-17T11:53:29.211800Z

I have parens under control with vim and spacemacs

2020-12-17T12:57:26.213300Z

Anyone had problems with yasnippet disabling smartparens mode and not re enabling it?

practicalli-john 2020-12-17T15:02:22.215600Z

@shan I havent noticed that issue. smartparens mode is restored for me once I've cleared any tab stops from within yasnippet. (Spacemacs develop - updated a few weeks ago)

2020-12-17T15:03:20.215800Z

hmm, I'm on develop and updated it today. Also updated my packages. I think it might be due to using Using yas-hippie-try-expand

2020-12-17T15:05:29.216Z

There does seem to be some stuff that should be re-activating smartparens here: https://github.com/syl20bnr/spacemacs/blob/develop/layers/+completion/auto-completion/packages.el#L275

2020-12-17T15:08:30.216300Z

@jr0cket Can you check the *Messages* buffer after you use yasnippet and see if you have

Using yas-hippie-try-expand
Maybe I'm not exiting out of yasnippet correctly

practicalli-john 2020-12-17T15:24:23.216500Z

I dont see that command in the *Messages* buffer. I do get this though [yas] Committing snippets. Action would destroy a protection overlay. [2 times]

practicalli-john 2020-12-17T15:38:58.216800Z

My guess would be a change in the yassnippet package - there have been a few small changes it seems https://github.com/AndreaCrotti/yasnippet-snippets

👍 1