Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Call flow with --json #15

Open
mroch opened this issue Aug 17, 2015 · 2 comments
Open

Call flow with --json #15

mroch opened this issue Aug 17, 2015 · 2 comments

Comments

@mroch
Copy link
Contributor

mroch commented Aug 17, 2015

If possible to parse JSON in vimscript (or via a wrapper script?) it would be better to call flow with --json and format errors appropriately within vim-flow. The CLI format is lossy compared to JSON, especially in the presence of traces, so we can probably parse it more accurately starting from JSON.

@ryyppy
Copy link

ryyppy commented Aug 17, 2016

(or via a wrapper script?)

I built a wrapper script, which does exactly that: https://github.com/ryyppy/flow-vim-quickfix

My goal was to get nicer one-liner messages, since errorformat doesn't really work with multiple lines... is a node-script too heavyweight? At least In async neomake with shell spawning the performance is superb.

I really miss the autocomplete feature of this project (using deoplete right now), would be cool to merge efforts and get the best of both worlds.

@danihodovic
Copy link

Vim 8 and neovim allow decoding json via json_decode(). See #11 (comment) for a possible fix for the quickfix list.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants