haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 211 forks source link

"Go to Symbol in Workspace" (Ctrl+T) lookup not working? #1123

Open istathar opened 5 years ago

istathar commented 5 years ago

I'm reasonably sure I followed the instructions well; most other features of hie are working great. But for some reason symbol lookup in VScode, from the Go menu under Go to Symbol in Workspace (Ctrl+T) isn't populated with any symbols. Interestingly the Outline feature in the file Explorer is populated.

Do I have to separate a separate ctags file? I somewhat thought that with intero in the background that wasn't necessary.

There weren't any references to this in the README, so I thought I would file an issue. If it is something that (is supposed to) work and merely needs FAQ or instructions added, I'll send in a pull request adding it if you want.

Any help figuring this out appreciated.

istathar commented 5 years ago

Minor update: it turns out the "outline" feature shown in the file Explorer view (Ctrl+Shift+E) is populated. Huh! But whatever the action is that populates individual files' symbols (sic) into a global (that is, workspace) list of symbols seems to be missing.

istathar commented 5 years ago

... and I just realized I've filed this in the wrong place. Re-reporting in vscode-hie-server. Sorry.

jneira commented 4 years ago

It seems it should be implemented in hie, from https://github.com/alanz/vscode-hie-server/issues/138#issuecomment-517220069:

I think this needs to be implemented in HIE, not in the VS Code extension.

Both features (the symbol outline and "Go to Symbol in Workspace") come from LSP: