Skip to content

Proposal: Support end_lnum (%e) and end_col (%k) with errorformat#9624

Closed
haya14busa wants to merge 1 commit intovim:masterfrom
haya14busa:end-lnum-col
Closed

Proposal: Support end_lnum (%e) and end_col (%k) with errorformat#9624
haya14busa wants to merge 1 commit intovim:masterfrom
haya14busa:end-lnum-col

Conversation

@haya14busa
Copy link
Contributor

As described in #8393, modern tools may be able to specify range when outputting the location of the source code.

While #8393 added end_lnum and end_col support to quickfix entry, errorformat did not support parsing end lnum/col. This PR added end_lnum (%e) and end_col (%k) errorformat support.

Example: gopls (Go Language Server) CLI interface support outputting locations with the following format.

<file-name>:<lnum>[-<end_lnum>]:<col>[-<end_col>]: <message>

Actual message example:

/path/to/reviewdog/reviewdog/reviewdog.go:39:9-26: Sprintf format %s reads arg #1, but call has 0 args

What do you think?

@bfrg
Copy link
Contributor

bfrg commented Feb 3, 2022

Isn't there an end virtual column number item missing?

@brammool
Copy link
Contributor

brammool commented Feb 8, 2022

Did anyone try this? Any comments?

@codecov
Copy link

codecov bot commented Feb 8, 2022

Codecov Report

Merging #9624 (1128a70) into master (85b6747) will increase coverage by 0.00%.
The diff coverage is 66.66%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #9624   +/-   ##
=======================================
  Coverage   83.51%   83.51%           
=======================================
  Files         154      154           
  Lines      174602   174618   +16     
  Branches    39271    39276    +5     
=======================================
+ Hits       145823   145839   +16     
  Misses      16675    16675           
  Partials    12104    12104           
Flag Coverage Δ
huge-clang-none 81.89% <66.66%> (-0.01%) ⬇️
huge-gcc-none 82.25% <66.66%> (+0.01%) ⬆️
huge-gcc-testgui 80.71% <66.66%> (+<0.01%) ⬆️
huge-gcc-unittests 2.03% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/quickfix.c 87.53% <66.66%> (-0.10%) ⬇️
src/if_xcmdsrv.c 77.23% <0.00%> (-0.36%) ⬇️
src/drawline.c 80.91% <0.00%> (-0.20%) ⬇️
src/version.c 83.82% <0.00%> (ø)
src/ex_cmds.c 85.72% <0.00%> (+0.01%) ⬆️
src/normal.c 90.53% <0.00%> (+0.03%) ⬆️
src/netbeans.c 72.50% <0.00%> (+0.07%) ⬆️
src/os_unix.c 68.69% <0.00%> (+0.21%) ⬆️
src/sound.c 88.46% <0.00%> (+2.88%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 85b6747...1128a70. Read the comment docs.

Copy link
Member

@yegappan yegappan left a comment

Choose a reason for hiding this comment

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

The changes looks good to me.

@brammool brammool closed this in e023d49 Feb 8, 2022
@haya14busa haya14busa deleted the end-lnum-col branch February 9, 2022 04:04
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Feb 9, 2022
…orformat'

Problem:    No support for end line number and column in 'errorformat'.
Solution:   Add %e and %k. (closes vim/vim#9624)
vim/vim@e023d49
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Feb 9, 2022
…orformat'

Problem:    No support for end line number and column in 'errorformat'.
Solution:   Add %e and %k. (closes vim/vim#9624)
vim/vim@e023d49

Use "\t" to represent a Tab as it looks better.
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Feb 9, 2022
…orformat'

Problem:    No support for end line number and column in 'errorformat'.
Solution:   Add %e and %k. (closes vim/vim#9624)
vim/vim@e023d49

Use "\t" to represent a Tab as it looks better.
zbirenbaum pushed a commit to zbirenbaum/neovim that referenced this pull request Feb 11, 2022
…orformat'

Problem:    No support for end line number and column in 'errorformat'.
Solution:   Add %e and %k. (closes vim/vim#9624)
vim/vim@e023d49

Use "\t" to represent a Tab as it looks better.
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.

4 participants