-
Notifications
You must be signed in to change notification settings - Fork 202
eglot with ccls: M-. can only find and jump to func definitions if they are in buffers #663
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
Comments
I believe this is a problem with ccls and @MaskRay could help you with that. As an Eglot issue, this is missing many elements pointed to by the template that you probably deleted. I've reworked that template: if you try to create a new issue in Eglot you should be presented with more clear instructions on how to make an issue that I can help you with. It'll help you find the Events transcript and other important elements. Until then, I'm going to close this one, but we can keep discussing. |
The likely issue is that you do not provide a That seems like a usage error, unrelated to eglot. |
Thanks @MaskRay. |
@joaotavora Thanks! Will try @MaskRay 's suggestion later:-) |
Hello @MaskRay ,
I'm very new to eglot and ccls. Is there any link to explain what they are and how to configure/make them?
Thanks! But, I do follow the doc: https://github.com/MaskRay/ccls/wiki/eglot |
https://github.com/MaskRay/ccls/wiki/Project-Setup#ccls-file |
See: https://github.com/MaskRay/ccls/wiki/Project-Setup#ccls-examples clang
%c -std=c11
%cpp -std=c++2a
%h %hpp --include=Global.h
-Iinc
-DMACRO Thanks! |
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
I'm excited that eglot+ccls works for my C project (linux kernel). It's much more convenient than TAGS, but after a while I found it fails to find func definitions that is not in current buffer, or not in other buffers (opened C/header files).
My config for c-mode in init.el:
I commented out
projectile
functions, otherwise emacs reports error thatprojectile-project-root
is void.According to ccls eglot doc:https://github.com/MaskRay/ccls/wiki/eglot), ccls defaults to use builtin project, so I think it probably doesn't matter.
I googled a lot, still fails to solve the problem. Am I missing something? Please help give some directions:-) Thanks!
The text was updated successfully, but these errors were encountered: