[Lldb-commits] [lldb] [lldb-dap][vscode][windows] check if Python is installed properly before starting lldb-dap (PR #181124)
Sergei Druzhkov via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 12 05:37:10 PST 2026
================
@@ -60,6 +61,15 @@ export class LLDBDapServer implements vscode.Disposable {
}
this.serverInfo = new Promise((resolve, reject) => {
+ if (os.platform() === "win32") {
+ const pythonCheckProcess = child_process.spawnSync(dapPath, ["--check-python"]);
+ if (pythonCheckProcess.stderr) {
+ vscode.window.showErrorMessage(
+ `Python is not installed correctly. Please install it to use lldb-dap.\n${pythonCheckProcess.stderr}`
----------------
DrSergei wrote:
Add `{modal: true}` as second argument if you want window instead of small notification
https://github.com/llvm/llvm-project/pull/181124
More information about the lldb-commits
mailing list