Skip to content
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

Nothing happens if the user has installed a wrong python version when debugging on Windows #1068

Open
kelteseth opened this issue Sep 13, 2024 · 2 comments
Labels
bug Something isn't working lldb lldb or vscode-lldb issue

Comments

@kelteseth
Copy link

Describe the bug
Same as #627, but this is really a usability issue. It is not mentioned anywhere, that an old python version is required. Then, when you try to debug, you do not get an error message, it just does nothing.

To Reproduce

  1. Create a hello world app
  2. Open in VSCode
  3. F5
  4. Nothing happens (if you not have a 4 year old python version installed)

Expected behavior
An error message that guides the user to install the correct python version

Environment

  • OS: Win 11
  • Swift version 5.10.1
  • Visual Studio Code version: Latest
  • vscode-swift version: Latest
@kelteseth kelteseth added the bug Something isn't working label Sep 13, 2024
@kelteseth
Copy link
Author

kelteseth commented Sep 13, 2024

What is even more annoying is that the python themselves consider 3.9 and no longer provide an installer for it:

According to the release calendar specified in PEP 596, Python 3.9 is now in the "security fixes only" stage of its life cycle: the 3.9 branch only accepts security fixes and releases of those are made irregularly in source-only form until October 2025. Python 3.9 isn't receiving regular bug fixes anymore, and binary installers are no longer provided for it. Python 3.9.13 was the last full bugfix release of Python 3.9 with binary installers.

https://www.python.org/downloads/release/python-3920/

So this is the latest 3.19 you can download and install https://www.python.org/downloads/release/python-3913/

@plemarquand
Copy link
Contributor

I believe this is a requirement of the CodeLLDB extension, which the Swift extension relies on to provide a debugger on older Swift versions. The documentation definitely needs to be updated to reflect this requirement.

Once you upgrade to Swift 6 you can "swift.debugger.useDebugAdapterFromToolchain": true in your VS Code User Settings JSON to use the debug adapter included with the Swift 6 toolchains.

@award999 award999 added the lldb lldb or vscode-lldb issue label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lldb lldb or vscode-lldb issue
Development

No branches or pull requests

3 participants