-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Dynamic font-locking is broken #1889
Comments
@Malabarba any idea what might be causing this? I don't think we've done any changes to the related logic in quite a while. |
I'm reading into this issue and learning about font-locking in emacs. Can you post a screenshot of your example? Everything looks pretty good to me, but I think i'm seeing mainly static font locking mostly instead of the dynamic stuff. |
@dpsutton See my slide deck here - https://speakerdeck.com/bbatsov/cider-inside-the-brewery (The section about 0.10 features). |
So this is the function that does most of the work in
And as far as I can tell, the |
And this is certainly bad:
|
I'm not really familiar with this code, as @Malabarba wrote it and was maintaining it. I've been super busy lately, just noticed the functionality stopped working, which means we broke it by accident recently and opened the ticket hoping someone would have time investigate. But yeah, this certainly looks bad... |
So, it's not really working. At least not completely. :-) |
haha yeah. I just meant to point out that the mechanism is fine, we are just missing information. this info gets added in cider-nrepl so i'm looking through clojure code to find out why that's missing |
Great! Hopefully you'll manage to sort this out. |
So in cider-nrepl, we have the following line that should add clojure.core to the ns-cache:
While its tough to debug middleware, just adding
I'm wondering where this assumption changed? Has the loading of |
Great! 👍 |
Sorry I couldn't help here. I've been gradually getting more responsibilities at work, which has somewhat extinguished my time for OSS. 😢 Anyway, thanks for taking the time to debug and fix it @dpsutton. |
On a lighter note, @dpsutton what's your color theme? I've been wanting to change mine for a while now. |
@Malabarba this is 'brin from https://github.com/owainlewis/emacs-color-themes/blob/master/resources/previews/brin.png except that I've modified it a bit. I spent some time on the highlight bar as well to make comments readable underneath it. |
I've recently noticed this regression while I was doing a CIDER demo at a conference.
Expected behavior
Identifiers are font-locked dynamically when some bit of code is evaluated.
Actual behavior
Nothing really changes.
Steps to reproduce the problem
Just evaluate any Clojure namespace.
Environment & Version information
CIDER version information
Emacs version
25.1
The text was updated successfully, but these errors were encountered: