Skip to content

fix: quickfix parser breaks on Windows paths with drive letters#178

Open
seesee010 wants to merge 3 commits into
ThePrimeagen:masterfrom
seesee010:fix/windows-quickfix-path
Open

fix: quickfix parser breaks on Windows paths with drive letters#178
seesee010 wants to merge 3 commits into
ThePrimeagen:masterfrom
seesee010:fix/windows-quickfix-path

Conversation

@seesee010

Copy link
Copy Markdown

Fixes #155

The quickfix parser used a greedy : split which breaks Windows paths
containing drive letters (e.g. C:\...). The C: part was mistaken
for the first separator, causing the filepath to be wrong.

Fix: match numeric line/column fields explicitly so the full path is
preserved regardless of OS.

Comment thread lua/99/ops/qfix-helpers.lua Outdated
Remove stale  variable from nil-check in M.parse_line().
The regex was updated to capture col_raw directly, but the guard
still referenced  (always nil), causing parse_line() to
unconditionally return nil and breaking quickfix entirely.
Comment thread lua/99/ops/qfix-helpers.lua
@Spencer1O1

Copy link
Copy Markdown

I commented an additional repro in issue #155. This pr should fix the problem.

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.

QuickFix parsing breaks on Windows paths

2 participants