-
-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
"No comment syntax is defined. Use: " in minibuffer when compiling after test/error #2105
Comments
Seems related to, but perhaps slightly different from: #1779 |
Any updates/workarounds for this? I think I'm having the same issue. Here's a backtrace after following the instructions in #1779, produced via "Steps to reproduce the problem" in the issue description.
I'm using CIDER |
Some minimal repro case would be useful. It's pretty hard to guess what's going wrong with one. |
@bbatsov - The original 5 "Steps to reproduce the problem" are pretty minimal. Would it help to make a project with a test with an error in it? Or something else? I am happy to do more to help here, I encounter this issue every day. :) |
I've found steps 3/4 above to be unnecessary. Even simpler:
FWIW a workaround I've found is to comment out https://github.com/clojure-emacs/cider/blob/master/cider-interaction.el#L1602 (I feel like there used to be a configuration option for this but I can't find it at the moment..) |
@calvis This seems to work just fine for me. Regarding 2) I tried both compiling the buffer again, and running |
(2) means click on the link that opens the But I apologize, (1) should have said "run a test" like the original, not just load the a buffer. I don't think it happens unless the
(deftest assert-test
(assert false)) and
|
Cannot reproduce w/ @calvis's instructions on:
|
@calvis instructions reproduce for me on:
Perhaps there is something coming in |
FWIW, I'm still encountering this in 0.18.0. |
I'm still encountering this on 0.18.0 Again steps to reproduce:
A small repro file is: (ns cider-bug
(:require [clojure.test :refer :all]))
(deftest test-for-bug
(is (assert false))) Load/test that buffer, click this link that I have highlighted: Don't close the test or error window. Go back to the This happens when my The workaround to comment out this line still works: Line 1060 in 3a520ec
|
I'll update the tagging of the bug, but I'm not sure if I'll be able to tackle it soon. I guess something gets messed with the focus when the error buffer is closed. I guess someone should check what exactly can go wrong in it. |
…oading buffer after running failing test
(Thanks, as ever, for CIDER. It's the best and you're the best)
Expected behavior
File compiles fine, no buffers move or close, minibuffer is not focused, workflow uninterrupted.
Actual behavior
*cider-error*
buffer is buried, minibuffer is focused and saysNo comment syntax is defined. Use:
, file may or may not be compiled.Steps to reproduce the problem
cider-test-run-test
) that has an error (throws)*cider-test-report*
buffer appears (as expected)error:
link at the bottom of the buffer*cider-error*
buffer appears w/ stack-trace in it (as expected)C-x C-s
C-c C-k
to save the file and compile the new (hopefully fixed) codecider-error
buffer weirdly is buried, minibuffer is focused and saysNo comment syntax is defined. Use:
...Environment & Version information
GNU Emacs 24.5.1 on Linux gibson 4.8.0-59-generic #64-Ubuntu SMP Thu Jun 29 19:38:34 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
CIDER version information
Lein/Boot version
The text was updated successfully, but these errors were encountered: