Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to add new string to errorformat in init.lua#28151

Unanswered
fabz-fr asked this question inQ&A
Discussion options

Hello everyone,

I want to jump through Python backtrace in neovim quickfix list.
To do that, I added the following ex-command:set errorformat+=%.%#File\ \"%f\"\\,\ line\ %l%.%# and this command works well.
What I would like now is to add, this command in my init.lua, But when I add the previous line, neovim raises errors when I populate the quickfix List.
This is the command I added to my init.lua :vim.opt.errorformat:append { "%.%#File \"%f\"\\, line %l%.%#" }.

Here is the error when I populate the quickfix list :
Error detected while processing function AsyncRun_Job_OnTimer[12]..<SNR>24_AsyncRun_Job_Update[40]..<SNR>24_AppendText: line 33: E377: Invalid %- in format string

Do you know how to append a new string to errorFormat ?

Thank you

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

zeertzjq
Apr 1, 2024
Collaborator

This seems to be a bug invim.opt. It treats escaped commas as separators.

You must be logged in to vote
1 reply
@fabz-fr
Comment options

I think It is a normal behavior for errorformat to handle commas as a special characters.

The thing is, evenvim.opt.errorformat:append('foo%f') does not work which is weird

Comment options

Looks like this is actually an issue in neovim, and someone filed it a while back:#29061

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
3 participants
@fabz-fr@gibfahn@zeertzjq

[8]ページ先頭

©2009-2025 Movatter.jp