From 58c114ebe9d6a06cf6b4d45221008e85a4c3cbc3 Mon Sep 17 00:00:00 2001 From: Philippe Massicotte Date: Thu, 2 Jul 2026 11:40:36 -0400 Subject: [PATCH] fix(bol.R): set num_cores to 1 on Windows to prevent parallel execution issues (closes #603) `parallel::mclapply` does not seem to be working on Windows, so we force the number of cores to be 1. --- nvimcom/R/bol.R | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nvimcom/R/bol.R b/nvimcom/R/bol.R index bbefd1e1..19d04d0b 100644 --- a/nvimcom/R/bol.R +++ b/nvimcom/R/bol.R @@ -695,6 +695,11 @@ nvim.build.cmplls <- function() { } else { num_cores <- getOption("nvimcom.max_cpu_cores") } + + if (.Platform$OS.type == "windows") { + num_cores <- 1 + } + invisible(parallel::mclapply(1:nrow(b), process_row, mc.cores = num_cores)) return(invisible(0))