Show errors in quickfix window #216

Closed
MasseR opened this Issue May 13, 2013 · 2 comments

Projects

None yet

2 participants

@MasseR

Currently the errors are shown in location list (:lopen). More common place for errors is the quickfix window (:copen). You can also then use :cnext to get to the next error.

@ervandew
Owner

Currently the errors are shown in location list (:lopen). More common place for errors is the quickfix window (:copen).

Are we talking about file validation errors here? The reason for placing those errors into the location list, rather than the quickfix list, is that the errors/warnings are specific to the current file, as is a location list. The quickfix list is a global stack of error, grep, etc lists, so if I were to run a vimgrep over my code base, which would populate my quickfix list, I wouldn't want the writing of a file to then overwrite those results (pushing them down the stack actually) with that file's errors/warnings. Same could be said of the file write overwriting the results of a :make call. I wouldn't want to have to run a :colder to get my list back after every file write.

You can also then use :cnext to get to the next error

The location list supports all the same operations as the quickfix list, just replace the c with an l (:lnext).

@MasseR

I see your point, especially on validation errors, and I'm willing to accept this solution. However concrete errors (the ones with red sign) would still semantically fit into quickfix list.

@ervandew ervandew closed this May 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment