-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LLDB never finishes importing Swift modules/setting up Swift reflection #8572
Comments
Hey Jeremy, thanks for tagging me in this and also for the patch! The "Setting up Swift reflection" report is indeed missing a total and your patch is correct, if you're able to put that patch up for review and add me as a reviewer that would be great 👍🏾 . For the "Importing Swift modules" report, we actually have that as an indeterminate report so it doesn't have a total. The multiple reports you're seeing for "Importing Swift modules" is a bug that I'm looking into, thanks again for bringing this up! |
I appreciate you looking into this @chelcassanova! PR with the aforementioned patch is up here #8584 (I don't think I have the right repo privileges to manually specify reviewers) |
Fixed in #8623 |
These notifications in VS Code never go away during a debugging session. It's possible there's an issue on the client side, but I'm thinking the issue is in LLDB.
The
Progress
object which reports the reflection status is set up here:llvm-project/lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.cpp
Line 505 in 00c794f
This ctor takes an optional
total
parameter, which, asProgress::increment
is called, is compared against to see when the operation is complete. When it's not set, the docs indicate that an indeterminate progress indicator should be displayed, but as far as I can tell, there's no way to report completion of this (which is normally triggered whenProgress::m_completed == Progress::m_total
).It looks like the reflection progress object used to be constructed with a total, and with the following patch, I am no longer seeing the permanent "Setting up swift reflection" indicator:
The preferred total is less obvious for the "Importing Swift modules" progress events (here and here). Any ideas on what these totals should be?
cc @chelcassanova, it looks like you've been driving the improvements to the lldb reporting feature
The text was updated successfully, but these errors were encountered: