-
-
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
cider does not show proper font face #749
Comments
I can't understand what you mean. Please, provide more details, examples, etc. |
Usually repl output is displayed with a color, now it doesn't. Is there anything I can check. Everything was just fine for me before the upgrade. Now I have to start tracking where the colorless output is coming from. Also when I jack in to a headless connection I get the message:
when I can confirm that I have cider-nrepl 0.8.0-SNAPSHOT on my path. Hope that's clear enough? I wish I can explain it any better. Maybe you can give suggestion of what you'll like me to report back. |
How are you using |
I have something like this in my project.clj. Is that what you mean?: :dependencies [[cider/cider-nrepl "0.8.0-SNAPSHOT"]]
:repl-options {:nrepl-middleware
[cemerick.piggieback/wrap-cljs-repl
;;bizlogic.nrepl.middleware.debug-nrepl/wrap-debug-nrepl
cider.nrepl.middleware.classpath/wrap-classpath
cider.nrepl.middleware.complete/wrap-complete
cider.nrepl.middleware.info/wrap-info
cider.nrepl.middleware.inspect/wrap-inspect
cider.nrepl.middleware.stacktrace/wrap-stacktrace
cider.nrepl.middleware.trace/wrap-trace]} |
The reason you get a warning is that you haven't enabled all the middleware (see cider-nrepl's readme). Using the |
Investigated and debugged this a bit - everything seems to be executing fine, but no text properties get applied in |
I don't see any color problem. All colors are in place for me. Which emacs is this? |
The font faces were applied properly in the REPL before the nrepl-client refactoring, so the two must be related somehow, although I cannot see how. |
Here is I also find it hard to understand why nrepl refactoring would impact fontification; Is this normal? When cider-pretty-printing is on then no colors are there, but that always was the case: |
@Vitoshka Are you sure you're running the latest code? On two separate computers I get this: |
@bbatsov that's exactly the output I get. Also notice how the Java version is not recognized. But If you upgrade to nREPL 0.2.4 the Java version appears but you loose your println. Some rought edges to tidy up there. Well done guys, you are doing a great job! |
I am pretty sure, admitedly with a slight confusion. I have a disabled MELPA version and I still see (package: 20140424.1313) in the header. From your screenshot I see that you are probably doing the same. I will check tomorrow again. |
I always install the latest MELPA package to check if I didn't break it accidentally. |
Might be some byte-compilation issue. Those are often very hard to track down. |
For some reason when CIDER is loaded from MELPA my customization doesn't get into effect. So |
What to do is not clear. |
I've just set that variable to t, restarted emacs and yet no sign of color. I can also confirm from ielm buffer that |
This var is not related to the prompt font-locking at all. Whatever the problem is - it's not config related. |
People interested to help debug this should look into functions like |
It's worth noting that this issue does not only affect output values. Font lock when typing input is really not like that for |
I am afraid I cannot help with the issue. It works for me whatever I do. Both with I think this entire fontification in repl part must be rewritten anyways to use standard emacs jit-lock engine. It's faster, works at idle time and you won't have to type without color anymore. I will do that once I figured out the comint part. |
In my tests even the REPL prompt and the results are not properly font-locked. Guess I'll continue investigating this.
No comint mode I've used does this, so I'm guessing it's not easy. |
I'm currently using Especially the |
Possible suspect: PARENFACE! The guys over at parenface love us and have helped us include their wonderful parenface font lock keywords to the Two possible solutions:
I prefer the former of the 2nd choice because fontification is on while I type whereas with Cheers! |
The only issue I have now is how to customize my prompt when going the |
I don't use it, so this can't be the root of the problem. |
Make sure there are no surprises from other packages by checking your cider-repl-mode-hook. That's was where I tracked down my own problem. |
Seems to me the problem is caused by |
I am also using it but haven't updated for months. This is probably why |
We should probably report this on |
I haven't got |
@Zebrah Other minor-mode might interfere as well. @johnbendi suggested that parenface was causing problems as well. Try running cider without anything in |
@bbatsov The only thing I have is |
Can't imagine how you can have the same problem then. Can you post a screenshot of your REPL buffer? |
Do a |
Only pretty-mode seems like a potential culprit to me, but I can't be certain. |
That's correct, check my edit :) |
Glad to hear that. Now we have to understand why those modes interfere with the our font-locking technique... (which will probably take a while) |
The font face after upgrading to cider 0.8.0-snapshot does not display properly. I only get white text.
Also cider reports that cider-nrepl is not 0.8.0-snapshot when I already have 0.8.0-SNAPSHOT in project.clj.
The text was updated successfully, but these errors were encountered: