-
-
Notifications
You must be signed in to change notification settings - Fork 647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jack-in disables clojure-mode #1317
Comments
Could you verify your cider-nrepl version? |
Yes. 0.10.0-SNAPSHOT |
@blueberry I can't reproduce this. Can you clone this repo and run That Make task implicitly depends on Cask (dependency management for emacs) already being installed. If you don't have cask installed you can install it with
|
Do you get any messages indicating what might have happened? |
I have tried make run-cider, but it shows plain vanilla emacs that shows all parens in black anyway. That's why this can't be reproduced, or can, but cannot be seen on the screen. My emacs is basically emacs 24.5.1 with prelude and very minimal personal setings (literally a few lines setting a few keybindings unrelated to clojure). I commented out everything from the personal configuration and the problem is still there after restarting emacs. |
As for messages, this is the contents of Messages buffer after starting the REPL (seems normal to me): Making nrepl-create-client-buffer-function local to nrepl-server cider-bug while let-bound! |
Aight, then this is a problem with your config and not a bug related to CIDER. CIDER isn't involved in coloring parenthesis, and neither is clojure-mode. Likely you have something like rainbow-delimiters-mode which is applied in the clojure-mode-hook. Something goes wrong when your custom hook code runs, sometimes, causing it to not get to the rainbow delimiters part. When you do |
You can do do |
But I have coloring and everything with my PLAIN VANILLA emacs. My hook code (and the whole custom.el) is literally only this: (load-theme 'cyberpunk) ;;recognize OpenCL *.cl files as c source code (custom-set-faces )I identified that this option from cider is the problem, and everything works fine if I set: Of course, then there is a problem of font locking not working... |
And to add about the clojure-mode-hook:
So, that value is the same. |
It's possible we're doing something incompatible with |
I do not insist on rainbow-delimiters-mode - any alternative that works for you is fine for me. Can you please share a relevant part of your own configuration that works? |
Perhaps it's something similar to #749? |
@blueberry This whole conversation was slightly confusing. Could you show us a screenshot of the problem? I just want to see what your clojure buffers look like when this issue happens. |
To sum it up: Why I think it is not due to my custom configuration: Since I have found a (clunky) workaround, It is not something urgent. Thank you for providing such an excellent tool with prompt support. It seems to me I have to find time to read the elisp book, so I can investigate such problems in more detail when they arise. You can close the issue if you think it does not affect other users, although I'd be surprised if it is so since I've tried a fresh prelude install and the problem is still here... |
@blueberry It's likely that other users are affected by this. Both What was your workaround? Perhaps that gives some indication as what went wrong. |
The workaround is adding this line to the custom config: (setq cider-font-lock-dynamically '()) Of course, it is clunky because it disables font locking for macros and core... |
I am having this same issue with rainbow-delimiters-mode, after connecting to cider some other modes no longer seem to work. Thanks for the workaround for now though..... |
I just installed rainbow-delimiters and can verify this happens as well.
@Fanael Do you think that could be the cause? Is there an appropriate way to change a buffer's font-lock-keywords without screwing with |
Hm, I think I see the problem. Rainbow-delimiters sets the I'm not sure, but it's the only thing I can think of. |
That was it. Should be fixed now. |
it works ok now. thank you. |
After upgrade from 20150910 to 20150911 clojure-mode gets disabled each and every time something from a clojure buffer is evaluated in the repl. All clojure code loses syntax highlighting (for the clojure parts and parens).
After M-x clojure-mode, the highlihgting gets back. New evaluation disables it again.
Steps to reproduce:
result: no parens coloring in project.clj
The text was updated successfully, but these errors were encountered: