-
Notifications
You must be signed in to change notification settings - Fork 113
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
Output is not matched by errorformat
, which is defined by :compiler
command
#16
Comments
could you please provide an instruction to reproduce ? |
My vim version:
|
ok, I will have a look at it asap |
asyncrun uses why doesn't currently, there is nothing I can do to fix the behavior of :set &g:errorformat = &l:errorformat |
It seems that tpope/vim-dispatch can handle it correctly. |
because So you can't read information in realtime with It simply use a
|
OK, I updated a new version, in the latest version of asyncrun, you can use: let g:asyncrun_local = 1 this will tell asyncrun to use local errorformat rather than the global value by temporarily The reason to make it an option but not the default behaviour is that: would you please try out the latest version and give me some feedback ? |
Fortunately, cargo supports output json format : Add --message-format flag And then we can write a output filter to translate the cargo output to editor friendly format. How to pass options from |
figured it out: set the environment variable named "RUSTFLAGS" to "--error-format=json" then |
虽然不太懂,但我也意识到这是个问题,本来cw只是列出错误的,但现在和copen一样。 |
嗯,是的,rustc的输出对编辑器不是特别友好。 |
那先关闭了吧。 |
It works. Thanks for your quick response. |
I am using rust-lang/rust.vim plugin which defines a
cargo
compiler with itserrorformat
.After I typed
:compiler cargo
, I run:AsyncRun cargo build
. Its output in quickfix list is not matched correctly.But, by typing
:make
, the output in quickfix list is matched correctly.The text was updated successfully, but these errors were encountered: