-
Notifications
You must be signed in to change notification settings - Fork 103
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
goto-definition-at-point dosen't work on aliases #195
Comments
now i look at the alchemist code, it seems like it takes aliases into account in some way - but it does not work when i try it. Maybe i have something setup wrong? |
Thanks @TheoAndersen I'll have a look at it as soon as possible 👍 |
Now i have an example where M-. can't find its way into on the first i get an |
I have the same problem and I am working in a project located in an umbrella. |
Just tried debugging the problem - and it seems to happen at the call to the elixir backend - i can't figure out why though :) (stumbling my way around here) Now I'm a total ELisp newbie, so don't take this the wrong way - i think this project is excellent and you do great work. But looking at tests, they seem very unit testy (small / focused). Wouldn't it be cool to include some broader tests, which would test all the way though to the server and back? This way you could hopefully have more accept-like tests of bigger features? (I've seen some project use ecukes for this kind of tests, but thats just a framework) |
Hey @TheoAndersen and @gausby Thanks guys for having a deep look at this issue so far. My apology for responding a bit late to this issue. I really had some busy holidays and my kids were ill too. But it looks like everything getting better and I try to get back in shape with my projects. 👍 @TheoAndersen about the test suite I think you're right, I'll start adding integration tests for covering the work between alchemist and the server. @TheoAndersen About the issue now, I'll have a look at it right now and will get back to you about it as soon as possible. Thanks a lot for your patience. |
@TheoAndersen What Elixir version are you using? And it is possible to get the source of your codebase? I tested it in my own environment and codebases, and it always works. So I need some codebase to test it. |
@TheoAndersen is it possible to catch you on #elixir-lang irc channel or slack? |
Hi @tonini Np with the timing. I have kids as well and the holidays are always busy busy :) I'm running Elixir 1.1.1. And the codebase I'm working on are the examples from the Programming Phoenix book. And my emacs config is here if that's relevant. https://github.com/TheoAndersen/.emacs.d I haven't been that much on irc or slack - but Ill try to improve that. Whats most people on? both? |
@TheoAndersen there are elixir emacs related channels on both Slack and IRC. I don't know much about slack but we are hanging out at #emacs-elixir on irc.freenode.net—We are not the lively at the moment, but I hope that we can improve that :) |
Hi @TheoAndersen, I guess the convention you have used for naming the modules 'Rumb1' instead of 'Rumbl'(as per the directory structure) isn't helping alchemist to resolve the alias. |
:) it was a typo that i didn't bother to fix. I'll try it and see if it dosen't help it. By the way, should the go-to defintion be able to hop down to the code in deps as well? - its sometimes helpfull to be able to jump inside phoenix code to see how it works in there. |
I have pushed a fix to my Rumbl project so that it now is Rumbl and not Rumb1, and now the part where User was aliased in user_controller seems to work. In the same file theres a reference to Repo (without using the Rumbl namespace) which dosen't seem to work. But that might be something i have done again - and maybe we're beginning to nitpick.. Only thing left was that @gausby also had similar problems in a another project of his? |
alias for Repo is injected from 'use Rumbl.Web', which is why go-to definition is not able to resolve it. Otherwise, go-to definitions can resolve code in deps/ as well. |
@TheoAndersen I tested it with the codebase of |
@TheoAndersen whats the status about that? |
I've updated to 1.7.0 of Alchemist and tested it again and it works. So for my point of view this issue is resolved :) |
The
alchemist-goto-definition-at-point
is great, but if you use an alias it can't find the definition of function calls. (Alchemist version 1.6.0)If i were more proficient at elisp i would take a go at this my self :)
/Theo
The text was updated successfully, but these errors were encountered: