[Lldb-commits] [lldb] 4882874 - [vscode-lldb] Fix `yarn package` (#152002)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 5 10:54:10 PDT 2025
Author: royitaqi
Date: 2025-08-05T10:54:07-07:00
New Revision: 4882874ddc1017f2f1b9b11fb67065440b101701
URL: https://github.com/llvm/llvm-project/commit/4882874ddc1017f2f1b9b11fb67065440b101701
DIFF: https://github.com/llvm/llvm-project/commit/4882874ddc1017f2f1b9b11fb67065440b101701.diff
LOG: [vscode-lldb] Fix `yarn package` (#152002)
# Problem
`yarn package` cannot be run twice in a row - the second time will error
out:
> Error: ENOENT: no such file or directory, stat
'<path>/llvm-project/lldb/tools/lldb-dap/out/lldb-dap.vsix'
This error is also weird, because the file actually exists. See the end
of this [full
output](https://gist.github.com/royitaqi/f3f4838ed30d7ade846f53f0fb7d68f4).
# Fix
Delete the `lldb-dap.vsix` file at the start of each run. See
consecutive runs [being
successful](https://gist.github.com/royitaqi/9609181b4fe6a8a4e71880c36cd0c7c9).
Added:
Modified:
lldb/tools/lldb-dap/package.json
Removed:
################################################################################
diff --git a/lldb/tools/lldb-dap/package.json b/lldb/tools/lldb-dap/package.json
index 1ce27e7d62fa5..d677a81cc7974 100644
--- a/lldb/tools/lldb-dap/package.json
+++ b/lldb/tools/lldb-dap/package.json
@@ -45,7 +45,7 @@
"vscode:prepublish": "tsc -p ./",
"watch": "tsc -watch -p ./",
"format": "npx prettier './src-ts/' --write",
- "package": "vsce package --out ./out/lldb-dap.vsix",
+ "package": "rm -rf ./out/lldb-dap.vsix && vsce package --out ./out/lldb-dap.vsix",
"publish": "vsce publish",
"vscode-uninstall": "code --uninstall-extension llvm-vs-code-extensions.lldb-dap",
"vscode-install": "code --install-extension ./out/lldb-dap.vsix"
More information about the lldb-commits
mailing list