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
Problem with make and quickfix list. #87
Comments
Having Similar problem when using |
I'm facing the exact same problem as @rajprakharpatel mentioned above, but i'm using |
Same problem with My guess is that this happens whenever there's no exact line number or position associated with a given error, and then Trouble fills in a default value of The troublesome line is marked as "BAD". When the cursor is hovered over it, everything goes haywire and the cursor starts moving right all on its own. |
folke#336. Skip preview for non-existing buffer (`bufnr == 0`). The vim docs say: ``` getqflist() Quickfix list entries with a non-existing buffer number are returned with "bufnr" set to zero (Note: some functions accept buffer number zero for the alternate buffer, you may need to explicitly check for zero). ``` This causes trouble for the "`Trouble`" file section: ![](https://user-images.githubusercontent.com/721196/260180476-286d5945-2f53-4f2c-aedc-af793c0e96db.png) To fix, we simply do: ```lua function View:_preview() ... if item.bufnr == 0 then return end util.debug("preview") ... end ```
…338) Skip preview for non-existing buffer (`bufnr == 0`). The vim docs say: ``` getqflist() Quickfix list entries with a non-existing buffer number are returned with "bufnr" set to zero (Note: some functions accept buffer number zero for the alternate buffer, you may need to explicitly check for zero). ``` This causes trouble for the "`Trouble`" file section: ![](https://user-images.githubusercontent.com/721196/260180476-286d5945-2f53-4f2c-aedc-af793c0e96db.png) To fix, we simply do: ```lua function View:_preview() ... if item.bufnr == 0 then return end util.debug("preview") ... end ```
Greetings,
Running
:make
and then:Trouble quickfix
ends up opening more than on Trouble.nvim buffer(in which the cursor starts moving by itself, following the lines of the qflist) and, after closing, gives error:The text was updated successfully, but these errors were encountered: