-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use taskkill for win32 #936
Conversation
@Yunuuuu Would you like to try the latest build here? It seems sub-process created by |
I test it on Windows and it works nicely. |
Thanks you, @renkun-ken, I have built it and tested it following the My tests (maybe wrong, I'll test it again if the I have searched
I really appreciate you and your great help in maintaining such excellent extension. |
You might need to manually clean up the existing orphan processes, download the build, install it and restart vscode, and test it. |
As for the |
Thanks a lot @renkun-ken, I tested it again and I have re-boot my computer, |
It seems this didn't kill the child-process as the R.term ( |
It is quite strange that it works perfectly in my azure Windows environment but not in yours. |
@renkun-ken, this can work!! But we should change the vscode-r setting and abandon |
I test on an azure Windows environment with |
And in vscode-R, we use Therefore, I'm actually testing with |
Really appreciate you @renkun-ken ! I tested the latest |
I didn't register my R version in my registry key since I sometimes need different R version to reproduce my previous work. |
I revert to using I tested it and it works well too. |
@beansrowning Would you like to test the build from this PR by downloading the artifact at https://github.com/REditorSupport/vscode-R/pull/936/checks? |
This can work for me |
Then I think we could merge this now. |
Thanks for your efforts. |
Thanks for your efforts. As I just tried the artifact from here and it still didn't work just for clarification: Do I have to set (My installation of R is also not registered within the Windows Registry but I manually added the executable's path to the |
@leo-liar In my testing, it looks like it might not work properly once the downloaded build is installed and even after a restart. You might need to restart vscode and try again?
In my testing, I just use the default behavior: not setting |
Sigh. Tested the artifact and here it doesn't work. Shall I help you? |
@renkun-ken Thanks. Unfortunately it doesn't work, wether I configure the |
@leo-liar, Try to use |
This actually works!! (At least while using the artifact.) Opening an When I open an |
From the documentation:
I don't see an explanation about the difference between |
Maybe we should default to using |
I don't know the reason, but we can only make it work when using |
Yes, this is exactly what I always observed. I just don't understand why the detaching happens. But setting |
It is quite strange. In my case, I use straight |
I'm on 4.4.1 ("Kick Things") ... |
@Yunuuuu does the latest build here work for you if you don't use |
I tested again, it doesn't work. my R version is |
I confirm Rterm.exe in r.rpath.windows works:
My context:
|
I found some discussions (r-lib/callr#34 and r-lib/processx#96) which looks like similar to this
|
when we use |
I tried typing When I type |
Yes, I also tested |
I am sorry, but after letting vscode running few minutes (until now since last try) I saw those processes "outside" vscode and when I close the ide, those processes are not closed. Really really weirdly. |
@Yunuuuu @albertosantini @leo-liar I open a new PR #941 where |
@albertosantini I let VSCode running for roughly 30mins now and I could not observe this behaviour.
Another question: From the documentation: At the Windows command-line, |
What problem did you solve?
tree-kill
still sometimes does not work in Windows. This PR follows the suggestion at #918 (comment) and usetaskkill
to kill spawned subprocesses.