Skip to content

Commit 4882874

Browse files
authored
[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).
1 parent 9179b07 commit 4882874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/tools/lldb-dap/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"vscode:prepublish": "tsc -p ./",
4646
"watch": "tsc -watch -p ./",
4747
"format": "npx prettier './src-ts/' --write",
48-
"package": "vsce package --out ./out/lldb-dap.vsix",
48+
"package": "rm -rf ./out/lldb-dap.vsix && vsce package --out ./out/lldb-dap.vsix",
4949
"publish": "vsce publish",
5050
"vscode-uninstall": "code --uninstall-extension llvm-vs-code-extensions.lldb-dap",
5151
"vscode-install": "code --install-extension ./out/lldb-dap.vsix"

0 commit comments

Comments
 (0)