nvim-lua / plenary.nvim

plenary: full; complete; entire; absolute; unqualified. All the lua functions I don't want to write twice.
MIT License
2.8k stars 286 forks source link

Cannot load quickfixlist with tests results #162

Open eruizc-dev opened 3 years ago

eruizc-dev commented 3 years ago

TLDR:

The way failed tests are notified makes it hard to load them into quickfixlist.

Description

I use vim-dispatch to run tests, which runs a makefile and loads output to quickfixlist. The problem is that Plenary seems to prepend 3 dots (...) to long paths creating a non-valid path for quickfixlist to follow.

As you can see in the following quickfixlist, it's filled with invalid paths and noise

It may be related to issue https://github.com/nvim-lua/plenary.nvim/issues/73, but one is for human readability and this one is for parsing

Repro steps

  1. Install plenary.nvim and vim-dispatch
  2. Create a lua project with a makefile like the previously mentioned (or you can also clone mine)
  3. Run :Make command
  4. See the resulting quickfixlist with :copen
tjdevries commented 3 years ago

We should add a different output format maybe that is JSON or something and you could just put in qflist programmatically