Open Deanseo opened 4 years ago
Any motion on this? I'm experiencing this issue too, with Emacs 26.3 and the latest Prelude c951f8e. I'm happy to be a guinea pig if there's a way I can trace what's happening.
In case it's a clue, here's what rc -m --elisp
says when I add a non-existent function to my source file.
(list 'checkstyle (cons "/Users/bclaywel/workspace/fringe/main/main.c" (list (list nil 16 5 nil 'error "Semantic Issue: implicit declaration of function 'bad_function' is invalid in C99: -Wimplicit-function-declaration" nil) (list nil 29 26 nil 'error "Semantic Issue: use of undeclared identifier 'false'" nil) (list nil 38 12 nil 'error "Semantic Issue: use of undeclared identifier 'true'" nil))))
(list 'checkstyle (cons "/Users/bclaywel/workspace/fringe/main/main.c" nil))))
The line clearing all the highlights appears immediately after the line including the errors. I don't know why rc
would immediately send another line that clears the errors like that.
I saw similar issues after rebuilding rtags with '--build-clang' configure option, where clang 5.0.0 is used by default. It seems solving my issue by changing the version to 8.0.0. So maybe this is some clang incompatibility issue. Maybe you can try with 8.0.0?
In addition, i don't think this is a lisp only issue. I can already see the suspicious error (the last list expression clearing all previous errors) coming from 'rdm' output. So probably some parsing issue inside rdm.
Just letting you all know that I'm still experiencing this issue and haven't found a good workaround either yet.
Hope it'll be fixed soon enough. 🤞
I am also encountering this issue, with both g++ and clang++ builds. I'm using the rtags 3.43 package from melpa. The issue seems to be related to the rtags-diagnostics buffer being deleted/refreshed constantly.
This probably is because you install more than 1 LLVM toolset. In my case, I have llvm11 and llvm13.
my rdm is compiled and running with llvm11, and I build my compile_commands.json with llvm13, then I run into this issue. after I reset my rdm with llvm13, the issue gone.
How to setup rdm with given llvm version, just FYI.
Describe the bug Let's say I make some invalid syntax error on purpose. Then
rtags-diagnostics
properly shows the compile errors just for a few seconds, then they all disappear.Not only in
*rtags-diagnostics*
but also the buffer where you write code also loses all special fonts such asrtags-errline
.To Reproduce
CMakeLists.txt
and make sure everything compiles fine.*rtags-diagnostics*
, and disappear all of sudden in a few seconds.rtags-errline
to disappear along with it.Expected behavior The error messages and those error face should stay.
Environment (please complete the following information):
Additional context It seems like there's another overlay that erases the diagnostics, but at this point I'm at a loss how to dig deeper.
My relative C++ environment in
init.el
is as follows: