Skip to content

Conversation

@vodchella
Copy link

When I redirected the output of the Checkstyle utility to the quick-fix window, an error occurred:

Error executing vim.schedule lua callback: ...e/pack/packer/start/quicker.nvim/lua/quicker/display.lua:558: Invalid 'col': out of range
stack traceback:
        [C]: in function 'nvim_buf_set_extmark'
        ...e/pack/packer/start/quicker.nvim/lua/quicker/display.lua:558: in function <...e/pack/packer/start/quicker.nvim/lua/quicker/display.lua:535>

Fixed :)

@github-actions github-actions bot requested a review from stevearc November 18, 2025 19:45
Copy link
Owner

@stevearc stevearc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmmmm...I agree this will fix the immediate error, but this means that if the col is out of range we won't populate the idmap, which means that if we attempt to make some changes on that line we won't have the mapping to transform it back to the correct quickfix item.

Have you been able to discover why the col is out of range? Are we rendering a line incorrectly somehow? Is the line only partially rendered and we need to try again later like we do on line 541?

@github-actions github-actions bot requested a review from stevearc November 26, 2025 11:24
@vodchella
Copy link
Author

The point is that the lines output by the Checkstyle utility may simply not contain references to a specific position in the text. That’s why col is not initialized.
2025-11-26_16-27

@stevearc
Copy link
Owner

Right the text doesn't extend to that specific col, but my question is why? Sure we can hack this fix in, but it only fixes the immediate issue and leaves other bugs in place. If we can figure out why the col doesn't match the text then we might be able to solve the root issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants