FrigoEU / psc-ide-vim

Vim plugin for psc-ide
96 stars 36 forks source link

nvim: build a buffer on stdout and flush on exit #129

Closed matthewleon closed 6 years ago

matthewleon commented 6 years ago

Solves https://github.com/FrigoEU/psc-ide-vim/issues/128

When dealing with large messages from "purs ide", the async on_stdout handling was splitting returned JSON into two separate events, causing failed JSON parsing.

We modify the handling of on_stdout to instead build a buffer for the returned strings, which we flush when we reach on_exit.

matthewleon commented 6 years ago

Please forgive any infelicities here, this is my first PR on a VimL project.

coot commented 6 years ago

Thanks for the PR!