Install patched LLDB on vscode extension activation#1637
Install patched LLDB on vscode extension activation#1637wenyongh merged 5 commits intobytecodealliance:mainfrom
Conversation
|
@loganek @cimacmillan Hey guys, followings are current status and some enhancement need to be developed for Necessary Resource
Current Status:
Enhancement to be developed:
so back to this PR, |
@NingW101 This approach makes sense, and is a bit more flexible. In the linux case, it would allow the user to specify which of the ubuntu LLDB builds (or determine via the OS currently running). Is it something that's already being worked on? If not, I can revise this PR. |
The modifications are mainly in
That would be nice, thank you very much! I can help to file an issue and draft the basic logic so that we can have more discussion there |
@NingW101 Sorry for the delay, I've revised the PR to address this aspect. |
NingW101
left a comment
There was a problem hiding this comment.
One more thing after my debugging for this patch, I think maybe we should add enhancement for starting debugging process. Currently we only check the lldb resource and give prompt during the activation stage, but what if the lldb is not downloaded or installed normally or users just skip it? We should check lldb and prompt it again if necessary after users clicking Debug button, otherwise, debugging process wont work well. How do you think?
|
@NingW101 This is a good suggestion, thanks. I'll revise the PR.
|
6934654 to
bd86d36
Compare
|
@cimacmillan I changed the destination branch to And there are several conflicts after changing the destination branch, could you help resolve them? Thanks. |
loganek
left a comment
There was a problem hiding this comment.
Thanks for making the change!
bd86d36 to
deb636d
Compare
@wenyongh Thanks, I've rebased my changes on top of main. The binary release job will build patched LLDB versions and this vscode extension in parallel. If a user installs the extension from the There isn't an official WAMR release which contains patched LLDB yet, so it's only a consideration for internal testing. Personally, I have been running the binary release job from a personal fork, which has been a good method. |
@cimacmillan OK, let's merge the PR before we release a new version. |
|
@wenyongh @cimacmillan are there any further changes required before we merge that? Looks like all the comments have been resolved and there are no conflicts with the main branch. |
@loganek No more comments from me, and yes, all the comments have been resolved, but since the PR changes the behavior of wamr-ide, which requires to download lldb binary from WAMR binary release, and we haven't built and released the binaries yet, so I didn't merged it. I prepare to merge it until we want to release a new version with binaries built, so it can work after we release the version, not sure whether it is OK you? Thanks. |
|
sounds good, thanks |
|
@wenyongh When is the next release planned? I think it would be safe to merge this. The missing wamr lldb binary release is only a consideration for internal testing. To avoid an error around the missing LLDB binary, you can include a pre-built LLDB in the debug folder of the VS code extension for testing. If LLDB is present in this folder, then it won't attempt to download anything. |
OK, let's merge it first. BTW, we may upload another PR to include the pre-built LLDB in the debug folder of the VS code extension, and do not merge it now. If developer encounters issue, we can let him refer to the PR. And yes, we are planning to release the next version, is there any PR from you to merge recently? |
…#1637) Download and install the WAMR patched LLDB binary on vscode extension activation. This allows the user to download the packaged .vsix file, where the activation script should handle determining what LLDB binary they should use, and install it in the correct location.
Download and install the WAMR patched LLDB binary on vscode extension activation. This allows the user to download the packaged .vsix file, where the activation script should handle determining what LLDB binary they should use, and install it in the correct location.
Download and install the WAMR patched LLDB binary on vscode extension activation. This allows the user to download the packaged .vsix file, where the activation script should handle determining what LLDB binary they should use, and install it in the correct location.
Download and install the WAMR patched LLDB binary on vscode extension activation. This allows the user to download the packaged .vsix file, where the activation script should handle determining what LLDB binary they should use, and install it in the correct location.
…#1637) Download and install the WAMR patched LLDB binary on vscode extension activation. This allows the user to download the packaged .vsix file, where the activation script should handle determining what LLDB binary they should use, and install it in the correct location.
Summary
Download and install the WAMR patched LLDB binary on vscode extension activation
This allows the user to download the packaged .vsix file, where the activation script should handle determining what LLDB binary they should use, and install it in the correct location.