[Lldb-commits] [lldb] [vscode-lldb] Fix `yarn package` (PR #152002)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 4 09:57:59 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: None (royitaqi)
<details>
<summary>Changes</summary>
# 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).
---
Full diff: https://github.com/llvm/llvm-project/pull/152002.diff
1 Files Affected:
- (modified) lldb/tools/lldb-dap/package.json (+1-1)
``````````diff
diff --git a/lldb/tools/lldb-dap/package.json b/lldb/tools/lldb-dap/package.json
index 801abe73edd7d..11007b073fc44 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"
``````````
</details>
https://github.com/llvm/llvm-project/pull/152002
More information about the lldb-commits
mailing list