cdelledonne / vim-cmake

Vim/Neovim plugin for working with CMake projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possibly wrong Quickfix list in narrow terminals on Windows

cdelledonne opened this issue · comments

Bug description

On Windows, ConPTY seems to be hard-wrapping lines that are longer than the PTY's width (possibly related issues: microsoft/terminal#405, mintty/mintty#971). Generating a Quickfix list of errors relies on error messages to be output on a single line, which is not the case for hard-wrapped error messages.

The effect is that the Quickfix feature does not work reliably.

We could try to work around this problem as mentioned in the issues linked above, but we're not sure whether that's feasible at all and what the complexity/maintenance cost would be.

To Reproduce

Run :CMakeBuild in a project with errors in a narrow terminal in Neovim on Windows, and observe that when error messages span multiple lines in the Vim-CMake console, the Quickfix list is incorrect.

Expected behavior

We would expect entire lines of output to be passed to the job's callback as single lines (e.g. ['This is a line of output', '']), not as multiple lines (e.g. ['This is a line', ' of output', '']).

Other info

  • OS: Windows
  • Vim/Neovim version: Neovim 0.8.0
  • Vim-CMake version (:echo cmake#GetInfo().version): 0.11.1
  • CMake version (cmake --version): 3.22.2