parsonsmatt / intero-neovim

A neovim plugin for Intero, forked from ghcmod-vim
218 stars 28 forks source link

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

Open zong-nec opened 6 years ago

zong-nec commented 6 years ago

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.

parsonsmatt commented 6 years ago

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?

Utagai commented 5 years ago

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