Fork me on GitHub
#spacemacs
<
2020-12-17
>
murtaza5208:12:31

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 ?

practicalli-johnny11:12:37

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-johnny11:12:33

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

nmkip11:12:12

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

nmkip11:12:18

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

nmkip11:12:29

I have parens under control with vim and spacemacs

practicalli-johnny10:12:41

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

jumar11:12:42

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

Sam H12:12:26

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

practicalli-johnny15:12:22

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

Sam H15:12:20

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

Sam H15:12:29

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

Sam H15:12:30

@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-johnny15:12:23

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-johnny15:12:58

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

👍 3