gkz / grasp

JavaScript structural search, replace, and refactor
http://graspjs.com
MIT License
1.28k stars 33 forks source link

Large output not correctly written to STDOUT on Ubuntu #116

Open adros opened 7 years ago

adros commented 7 years ago

When result from grasp query (run in CLI) is very large, it is not completely written out on Ubuntu. Problem is that grasp is calling process.exit, see those docs:

https://nodejs.org/api/process.html#process_a_note_on_process_i_o https://nodejs.org/api/process.html#process_process_exit_code

The solution could be replacing this line in bin/grasp

exit: process.exit,

for something like this

exit: (code) => { process.exitCode = code },

ainthek commented 6 years ago

is this closed by PR ? why not closing the bug report ?