swiftlang / vscode-swift

Visual Studio Code Extension for Swift
https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang
Apache License 2.0
734 stars 50 forks source link

Extension shows the "need to update some CodeLLDB settings" alert extremely frequently #991

Open NSExceptional opened 1 month ago

NSExceptional commented 1 month ago

I'm seeing this message several times a week, if not every day:

Screenshot 2024-07-25 at 5 25 03 PM

I hope this is not intended. I always click "global"

Environment

adam-fowler commented 1 month ago

Every time you change swift version it needs to update those settings

plemarquand commented 1 month ago

@NSExceptional Is there anything you're doing just before this dialog appears? Updating Swift toolchains?

@adam-fowler I'm not sure but I think this dialog might also come up when a new version of the vscode-swift extension is released?

NSExceptional commented 1 month ago

That must be it, I am changing between the beta and the release versions of Xcode.

There has to be a way to do this automatically without prompting the user every time though, right?

adam-fowler commented 1 month ago

Well there's the decision to make the change globally or on the workspace that needs to be made. I guess we could add a setting that has the options always set it globally, always set it for the workspace, show dialog

NSExceptional commented 1 month ago

Why not just use global if no workspace CodeLLDB settings were ever set, and use workspace if there are some set? Is that possible?

If not, what you suggested sounds fine too

adam-fowler commented 1 month ago

Why not just use global if no workspace CodeLLDB settings were ever set

This could be annoying if you have two projects open that use different versions of swift

NSExceptional commented 1 month ago

I see, okay. The setting is probably the way to go then

plemarquand commented 2 weeks ago

1024 should help with this if you're on Swift 6. It will use lldb-dap by default, which is in the Swift 6 toolchain, and removes the need for CodeLLDB.