The pause button doesn't work for running codes and the termination button cannot terminate parallel computing.
Describe the bug As described in the title.
To Reproduce For the fist problem, set a break point at the bottom line and run the following code. When the code is running, click the pause button. A message would show up saying that "An unknown error occurred. Please consult the log for more details".
s=1
for(i in 1:100000000){
s=s+1
}
print(s)
For the second problem, set a break point at the bottom line and run the following code. When the code is running into the parLapply, click the termination button. The debug console is closed as expected, but, in the system monitor, we would see that the R sessions used for parallel computing are still active.
library(parallel)
cumsum <- function(s){
s=1
for(i in 1:10000000000){
s=s+1
}
return(s)
}
clnum <- 8
cl <- makeCluster(getOption("cl.cores", clnum))
res <- parLapply(cl, 1:100, cumsum)
print(res)
Desktop (please complete the following information):
- OS: macOS Monterey 12.6
- R Version: 4.2.2
- vscDebugger Version: the newest
- vscode-r-debugger Version: the newest
Additional context I'm using a mac with apple silicon m1.
Is there any way to handle this problem especially for terminating the parallel computing?