Skip to content

"Go to definition" not working #54

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

Closed
iteron-yasir opened this issue Mar 17, 2020 · 8 comments
Closed

"Go to definition" not working #54

iteron-yasir opened this issue Mar 17, 2020 · 8 comments

Comments

@iteron-yasir
Copy link

iteron-yasir commented Mar 17, 2020

My system config,

Ubuntu - 18.04
VS Code - 1.43.0
Elixir 1.9.2

I've the docker elixir project and I'm using "bitwalker/alpine-elixir:1.9.2" image.

When I click F12. It's only showing "No definition found". It's not working. When I try Ctrl + Shift + F, I can able to find the function.

@axelson
Copy link
Member

axelson commented Mar 23, 2020

None of the maintainers use docker with elixir so it's not fully supported, but if you can provide a reproducible example of the problem (with the necessary setup steps) then I can take a look.

@Korbin73
Copy link

Korbin73 commented Apr 7, 2020

I'm getting the same issue without docker just on my mac.
VS code: 1.43.2
Elixir 1.9.2
MacOS: 10.15.4

@axelson
Copy link
Member

axelson commented Apr 7, 2020

@Korbin73 what docker image are you using? Does it have bash? If not try installing it. That worked for another user over at #66 (comment)

@Korbin73
Copy link

Korbin73 commented Apr 7, 2020

@axelson I'm actually not using docker. However, I just realized that go to definition works if the function is in the same file, but fails if it is in a different module, is this a limitation of go to definition?

@axelson
Copy link
Member

axelson commented Apr 7, 2020

@Korbin73 sorry about that. Go to definition should work for any module in your project. Can you open a new issue and attach any relevant logs? And even better would be if you could provide a reproducible example.

@iteron-yasir please let me know if the workaround in #66 (comment) does not work for you and we can investigate further.

@axelson axelson closed this as completed Apr 7, 2020
@raphaklaus
Copy link

raphaklaus commented May 15, 2020

I have the same problem. Maybe the fact that I am using Elixir 1.9 installed from asdf? 🤔

@axelson
Copy link
Member

axelson commented May 15, 2020

@raphaklaus Asdf installations are fully supported and go to definition should work for any module in your project (besides ""Go to definition" does not work within the scope of a Phoenix router"). Can you open a new issue and attach any relevant logs? And even better would be if you could provide a reproducible example.

@Korbin73
Copy link

In my case I was trying to go to definition in an umbrella project which didn't work but worked as intended in a normal project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants