-
Notifications
You must be signed in to change notification settings - Fork 154
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
dumb-jump not finding declaration in extremely simple C example #128
Comments
Thanks for the report. Using this gist which has your example:
It works fine for me, but when cloned it will create a Please try adding an empty |
Okay, thanks for that. I couldn't get it to print any debug info, so I tried deleting and re-installing dumb-jump, which solved the issue and it now works as expected. I have no idea how my dumb-jump package got broken like that, but it's fixed now. Thanks! |
Hello @jacktasia Just for the record. I tried this example and didn't work, my Mesages were showing with rg that was not working because the build I had didn't support PCRE2. So I tried with grep but this version of grep didn't have the --include option. After trying I found that the ag (the silver searcher) is working now. I am using OpenBSD -current. So maybe if someone else is using OpenBSD might find this useful. Thanks.
|
It's likely this is a problem with my setup, but I can't get dumb-jump to work for C at all.
Here's what I'm trying to get working. I have a folder with just two files in it,
test.c
andtest.h
.This is
test.c
:And this is
test.h
:If I navigate to
some_function()
intest.c
and doM-x dumb-jump-go
or any otherdumb-jump
command, it fails to find the declaration ofsome_function
intest.h
. Changing the whitespace around doesn't seem to change anything.Can anyone reproduce this? It seems like the simplest possible use case for the program. I'm convinced it must be a problem with my setup, but I don't know.
Thanks.
The text was updated successfully, but these errors were encountered: