Comments (11)
Are you sure it's the same errorformat in both cases?
from vim-dispatch.
I ran :make then set efm? and :Make and set efm? and in both cases errorformat was set to the exact same thing. I'm not sure if that is correct way to check.
from vim-dispatch.
If you're sticking to :Make
and not :Dispatch
that's an adequate check. What's the value of efm?
from vim-dispatch.
Looks like the standard gcc efm:
errorformat=%*[^"]"%f"%*\D%l: %m,"%f"%*\D%l: %m,%-G%f:%l: (Each undeclared identifier is reported only once,%-G%f:%l: for each function it appears in.),%-GIn file included from %f:%l:%c:,%-GIn file included from %f:%l:%c\,,%-GIn file in
cluded from %f:%l:%c,%-GIn file included from %f:%l,%-G%*[ ]from %f:%l:%c,%-G%*[ ]from %f:%l:,%-G%*[ ]from %f:%l\,,%-G%*[ ]from %f:%l,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,"%f"\, line %l%*\D%c%*[^ ] %m,%D%*\a[%*\d]: Entering directory `%f',%X%*\
a[%*\d]: Leaving directory `%f',%D%*\a: Entering directory `%f',%X%*\a: Leaving directory `%f',%DMaking %*\a in %f,%f|%l| %m
from vim-dispatch.
Try :!make ... > tmpfile
then :cgetfile tmpfile
. Does that have the desired behavior?
from vim-dispatch.
No it doesn't. When I run :cnext
it treats every line of tmpfile as an entry to the error list.
from vim-dispatch.
Might have something to do with stderror, running :!make ... 2> tmpfile
has exactly the desired behavior.
from vim-dispatch.
Unless you're using csh the exact incantation should be :!make ... > tmpfile 2>&1
. Try that.
Also try and compare with :cfile
.
from vim-dispatch.
None of those work either. It seems like the :make
command either does some prefiltering on the 'makeef' file or doesn't run through the exact same path as :cfile
from vim-dispatch.
I guess this is a vim issue really.
Running :make
and then :clist
doesn't bring anything up.
Running :!make ... > tmpfile 2>&1
and then :cfile tmpfile
and :clist
brings up every line of tmpfile in the error list.
Most interestingly when I actually have compile errors running :!make ... > tmpfile 2>&1
and then :cfile tmpfile
and :clist
brings up only the lines from the file that contain valid errors and nothing else.
from vim-dispatch.
I still don't fully understand how Vim decides when to capture extraneous output. You can try using %+G
and %-G
to force the issue.
Closing under the guidance "this is a vim issue".
from vim-dispatch.
Related Issues (20)
- Vim hangs and process doesn't complete HOT 11
- Terminal strategy with debugger capability HOT 3
- Crazy characters from dotnet run inside tmux only HOT 1
- Cannot close last window HOT 4
- preemtively kill previous command before dispatching HOT 1
- ctrl-c of a ":Make" dispatched command immediately terminates command HOT 3
- Running dispatch in neovim opens quickfix list in vim pane not tmux HOT 2
- Running :Make resets `scrolloff` to 0 HOT 2
- The video on Vimeo is not rated. HOT 1
- [Question] Is there a configuration to jump from error to the existing buffer on a file? HOT 1
- Is one of the mappings supposed to run the last thing you dispatched? HOT 8
- [Feature Request] post hook for async commands HOT 1
- [Feature Request] customize exit_cb on terminal strategy HOT 8
- Have an option to use an interactive shell on :Dispatch HOT 3
- How check if the command succeeded? HOT 20
- Empty quickfix list with :Dispatch! and Make!
- Jump to errors produced by sanitizers and CTest
- How to properly filter output with errorformat HOT 1
- xterm/x11 strategy failing due to xterm which parses arguments badly argument parsing HOT 1
- Default flags for a command
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-dispatch.