Skip to content
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

:InteroGoToDef finds definition but doesn't jump there #132

Open
zong-nec opened this issue Jan 2, 2018 · 2 comments
Open

:InteroGoToDef finds definition but doesn't jump there #132

zong-nec opened this issue Jan 2, 2018 · 2 comments
Labels
better-docs This issue reports expected behavior, but the documentation and/or error messaging could be better

Comments

@zong-nec
Copy link

zong-nec commented Jan 2, 2018

I have a Stack project where :InteroGoToDef results in the source location being shown in the Intero terminal window, like so:

λ> :loc-at Atlas.Server.API.Actions 59 31 59 51 DB.loadDatasetsByIds
/Users/zong/workspace/my-project/src/MyProject/Database/Queries.hs:(60,1)-(60,18)

That is indeed where I would like to jump to. However, I remain in the same buffer, and no jumping happens.

Using stack new to create a bare-bones Stack project, however, doesn't have this issue on my setup, but I haven't got around to narrowing down where the issue is yet. I'm filing this issue to keep track and to see if anyone else has the same problem.

@zong-nec zong-nec changed the title :InteroGoToDe finds definition but doesn't jump there :InteroGoToDef finds definition but doesn't jump there Jan 2, 2018
@parsonsmatt
Copy link
Owner

This is the expected behavior when you the definition you're jumping to does not exist in the targets you're currently working with. Can you verify that the target for that is in :echo g:intero_load_targets?

@parsonsmatt parsonsmatt added the better-docs This issue reports expected behavior, but the documentation and/or error messaging could be better label Apr 21, 2018
@Utagai
Copy link

Utagai commented Nov 7, 2019

For what it's worth, I'm also having this problem but my targets include the definition I'm trying to jump to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
better-docs This issue reports expected behavior, but the documentation and/or error messaging could be better
Projects
None yet
Development

No branches or pull requests

3 participants