Closed klajo closed 5 years ago
Made a new stdio reader.
Thank you @klajo! It looks good, will try to merge it as soon as I get some time for it.
Regarding the debug printouts, I'm considering making them go to stderr instead. Only being able to enable them for all modules or for none is a little too coarse.
I force-pushed an update to the branch, where I changed the debug/trace to only comment out the defines. I.e. this PR now contains commented-out defines and the stdio reader fix. The original "rebar3 as debug compile" change is here.
Thanks for merging!
Sure, I have to thank you more for the fix! Sorry that it took a while, I was on vacation.
No worries.
Make DEBUG/TRACE optional at compilation time (off by default). If lsp-mode for emacs is run with sourcer in stdio mode (not tcp) then lsp-mode will fail like on text that is not part of the proper LSP jsonrpc texts:
Instead of having these (same for TRACE macros) in the source code:
... use rebar3 profiles to enable DEBUG/TRACE builds. From README.md: