-
Notifications
You must be signed in to change notification settings - Fork 82
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
edts-find-source-under-point
does not find local functions...
#32
Comments
Yes, that is weird. Do you get an error message? |
when looking for local |
Nice! That sounds like an actual bug:) Would it be possible for you to provide a minimal working example to reproduce the bug? What do the clauses of foo/1 look like? |
Hmm, I can describe it, sure, but the problem is that ANY local function is not found. Simply like that. No matter it's exported or not. Any arity. Any name. |
Ok, it may be a clue: personally I put SPACE after function name, like this:
|
Yep. This is it. The SPACE... Removed and search worked. But, it's still a bug ;) |
Should be fixed now. Thanks for your time! |
Let me guess: the bug still exists for local functions with space after name AND arity /= 1? ;) In my case, when the cursor is on "foo/1" the function will find "foo/0" definition. |
haha, yes. Who would put a space there?? :D |
I don't know...people are strange ;) |
Fixed |
Nop. Try this:
And try to find abc/4. |
Hm. No end to the issues it seems and I'm to tired to write unit tests for this right now which I really should, but I think it works now. |
Rewrote the "parsing"-function entirely. Can you confirm that it works as expected now? |
Yep. For me it works well. |
Sorry, for reopening: I got to check it on my second box ;) |
Success confirmed. |
... which is weird 'cause
edts-find-local-function
works just fine.The text was updated successfully, but these errors were encountered: