Conversation
|
Thanks for the work. If I remember correctly, we only use a file to receive the results of |
|
Personally, I prefer receiving small data (a file path, a small chunk of text, etc.) directly from stdout whereas large data (all aliases, all rmd template info, etc.) from a temp file. Here we use Does that make sense? |
|
If there are no issues with buffer overflows, are there advantages to using a file over stdout? We load the entire file into memory at some point, anyways, and using temp files always has some potential to cause problems with cleanup, access restrictions, or even performance (on very limited systems). |
|
It looks like
Do you mean we better use |
Yes, that's what I had in mind (assuming there is no buffer with the async version) |
|
Now I switch to using |
| this.rScriptFile | ||
| ]; | ||
|
|
||
| return new Promise((resolve) => { |
There was a problem hiding this comment.
Is there a reason that we show some errors to the user and log the errors in the childprocess/non-matching regex only to the console?
There was a problem hiding this comment.
Now an error message is shown to user.
I'm wondering if it makes sense to use a global output channel to show details of such information? But we already have multiple output channels: R Language Server, R Markdown, and VSCode-R-Debugger also has R Debugger.
What problem did you solve?
This PR makes use of
spawnandspawnSyncacross the entire project. In particular,getAliasesis updated to usespawnSyncto be consistent with others.