-
Notifications
You must be signed in to change notification settings - Fork 1.1k
vim-go uses location lists now #1650
Comments
Right, and there's no way to turn that off. grumble Ok, I updated the manual in 91814d6. However, I'm not sure setting |
Actually when using vim-go and Syntastic I cannot view any Location Lists that vim-go opens when using it without Syntastic. |
What happens if you set |
Location list doesn't open. |
The same happens when |
Then perhaps it's time to ask |
@fatih what do you think about? |
I don't know what |
@fatih "Play nicer" means vim-go not assuming it has exclusive control over location lists. Syntastic has such a mode: if you set |
Can you please expand this. What do you mean by old location lists? The same can be applied to syntastic too. Btw, I've abstracted all my list operations and I'm easily able to disable/change it to quickfix and do many other things. I'm just trying to learn what still the problem is. |
@fatih There's actually a stack of location lists (and quickfix lists). Syntastic does something like this when it runs a checker (simplified): lgetexpr some_lines
let local_loclist = deepcopy(getloclist(0))
lolder It then uses the local copy However, if This is further complicated by the fact that Vim API has no function to get the window owner of a location list. Syntastic tries to work around this by calling
With vim-go using location lists, there is a mutual exclusion: either syntastic or vim-go needs to leave alone location lists. As I said above, if
For what it's worth, syntastic can't do the same because of the logic around automatic closing of the error window. That can't be made robust because of limitations in Vim's API. Automatic opening and closing the error window is by far the most messy feature of syntastic. Removing it would solve most known bugs, but it's of course way too late to do that now.
I can't seem to reproduce the problem with the latest syntastic (17a4c01) and the latest vim-go (eec4e3e). Perhaps @nothingelsematters7 can describe in more detail what still doesn't work. |
I take it the problem is solved then? Feel free to reopen this if it isn't. |
As mentioned in 7.10. section of documentation
It uses Location lists now, so it needs to be resolved somehow.
The text was updated successfully, but these errors were encountered: