-
Notifications
You must be signed in to change notification settings - Fork 645
Docs for all functions of the same name in the package are combined in hover and auto-completion feature #2404
Comments
Thanks for reporting @SmallRoomLabs
|
No language servers, not what I know of anyways. I've disabled all plugins except the go. I've removed all user/workspace/folder settings. Yes, go modules are enabled for this project It happens consistently over reloads and restarts of vcs. But I think I've possibly found the root cause here. Looking (in the terminal) at the godoc for testing.Errorf it shows the docs for both the Test, Benchmark and Main variants of Errorf. Docs for all three are identical which in the popup looks as it's just repeated three times. The same thing happens with the longer descriptions like for the testing.Run The popup displays all three sections of this text, but removes the non-indented "headers" So the bug here is not that the description is repeated, but rather that the popup removes the headers for the three different functions/methods from the godoc. I guess the title of this issue should be renamed to something more appropriate. |
Thanks for all the details @SmallRoomLabs, that is very helpful. The issue is that while fetching docs, we only have access to package name and the symbol name (in this case the function name). If the same function name is used across multiple receivers, we don't know which receiver should we be using. This is being tracked in #2107 The last we checked this, the wrong function's docs were shown. @segevfiner, Do you recall that the docs for all the variations got combined? |
Yeah it often combines the docs of several functions of the same name into one. We fixed this for auto complete, and we are still waiting on the |
Great, I see that you got a handle on the situation already. My job here is done. ;-) |
Thanks @segevfiner @SmallRoomLabs I'll close this issue in favor of #2107 |
On VCS 1.26.1 with go plugin 0.9.2 on go1.12.1 darwin/amd64 I get the text in the quick info-popup repeated three times as shown in this screenshot-photo (I couldn't figure out how to make a screenshot without the popup closing).
The same thing happens also for longer doc-texts so it's not caused because it's a single liner.
The text was updated successfully, but these errors were encountered: