gcc-output-parser icon indicating copy to clipboard operation
gcc-output-parser copied to clipboard

Live parsing

Open vjpr opened this issue 8 years ago • 2 comments
trafficstars

It seems like the lookback only works if all the stdout is given in one chunk.

Say I am parsing the input in real-time from the stdout...can the lookback be used if the messages come across the stdout callback below:

childProcess.stdout.on('data', data => {

})

vjpr avatar Jul 15 '17 14:07 vjpr

That's a great idea! It would definitely need to be reworked for live parsing. Probably by buffering chunks and parsing when a whole GCC message has been received. Currently, we only work on full output but if you want to take a swing at implementing this, go ahead!

suda avatar Jul 17 '17 11:07 suda

@Suda Cool, just wanted to check it wasn't already possible. I might have a crack at it when I have some time.

vjpr avatar Jul 17 '17 13:07 vjpr