Skip to content

Hitting esc when creating a python debug config still creates a debug config #223

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

Closed
alexr00 opened this issue Feb 20, 2024 · 4 comments · Fixed by #228
Closed

Hitting esc when creating a python debug config still creates a debug config #223

alexr00 opened this issue Feb 20, 2024 · 4 comments · Fixed by #228
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@alexr00
Copy link
Member

alexr00 commented Feb 20, 2024

Testing #221

Recording 2024-02-20 at 12 12 37

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Feb 20, 2024
@alexr00
Copy link
Member Author

alexr00 commented Feb 20, 2024

Also, that quick input doesn't say what should be entered.

@paulacamargo25 paulacamargo25 added bug Issue identified by VS Code Team member as probable bug and removed triage-needed Needs assignment to the proper sub-team labels Feb 21, 2024
@paulacamargo25 paulacamargo25 added this to the February 2024 milestone Feb 21, 2024
@anthonykim1 anthonykim1 added verified Verification succeeded and removed verified Verification succeeded labels Feb 22, 2024
@anthonykim1
Copy link

anthonykim1 commented Feb 22, 2024

I was trying to verify this and suddenly started getting FileNotFoundError when I pressed ESC in the step like video.

 /usr/bin/env /Users/anthonykim/Desktop/djangoExample/.venv/bin/p
ython /Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/deb
ugpy/adapter/../../debugpy/launcher 64791 -- /Users/anthonykim/Desktop/djangoExample/manage.py runserver 
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/__main__.py", line 39, in <module>
    cli.main()
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 430, in main
    run()
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 284, in run_file
    runpy.run_path(target, run_name="__main__")
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 320, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 289, in _get_code_from_file
    with io_open_code(decoded_path) as f:
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tokenize.py", line 447, in open
    buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/Users/anthonykim/Desktop/djangoExample/manage.py'
anthonykim@Anthonys-MacBook-Pro-2 djangoExample %  cd /Users/anthonykim/Desktop/djangoExample ; /usr/bin/env /Users
/anthonykim/Desktop/djangoExample/.venv/bin/python /Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-
2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 64805 -- /Users/anthonykim/Desktop
/djangoExample/manage.py runserver 
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/__main__.py", line 39, in <module>
    cli.main()
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 430, in main
    run()
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 284, in run_file
    runpy.run_path(target, run_name="__main__")
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 320, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 289, in _get_code_from_file
    with io_open_code(decoded_path) as f:
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tokenize.py", line 447, in open
    buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/Users/anthonykim/Desktop/djangoExample/manage.py'
anthonykim@Anthonys-MacBook-Pro-2 djangoExample %  cd /Users/anthonykim/Desktop/djangoExample ; /usr/bin/env /Users
/anthonykim/Desktop/djangoExample/.venv/bin/python /Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-
2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 64813 -- /Users/anthonykim/Desktop
/djangoExample/manage.py runserver 
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/__main__.py", line 39, in <module>
    cli.main()
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 430, in main
    run()
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 284, in run_file
    runpy.run_path(target, run_name="__main__")
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 320, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 289, in _get_code_from_file
    with io_open_code(decoded_path) as f:
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tokenize.py", line 447, in open
    buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/Users/anthonykim/Desktop/djangoExample/manage.py'
anthonykim@Anthonys-MacBook-Pro-2 djangoExample %  cd /Users/anthonykim/Desktop/djangoExample ; /usr/bin/env /Users
/anthonykim/Desktop/djangoExample/.venv/bin/python /Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-
2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 64822 -- /Users/anthonykim/Desktop
/djangoExample/manage.py runserver 
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/__main__.py", line 39, in <module>
    cli.main()
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 430, in main
    run()
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 284, in run_file
    runpy.run_path(target, run_name="__main__")
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 320, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 289, in _get_code_from_file
    with io_open_code(decoded_path) as f:
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tokenize.py", line 447, in open
    buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/Users/anthonykim/Desktop/djangoExample/manage.py'
anthonykim@Anthonys-MacBook-Pro-2 djangoExample %  cd /Users/anthonykim/Desktop/djangoExample ; /usr/bin/env /Users
/anthonykim/Desktop/djangoExample/.venv/bin/python /Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-
2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 64831 -- /Users/anthonykim/Desktop
/djangoExample/manage.py runserver 
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/__main__.py", line 39, in <module>
    cli.main()
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 430, in main
    run()
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 284, in run_file
    runpy.run_path(target, run_name="__main__")
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 320, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 289, in _get_code_from_file
    with io_open_code(decoded_path) as f:
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tokenize.py", line 447, in open
    buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/Users/anthonykim/Desktop/djangoExample/manage.py'
anthonykim@Anthonys-MacBook-Pro-2 djangoExample %  cd /Users/anthonykim/Desktop/djangoExample ; /usr/bin/env /Users
/anthonykim/Desktop/djangoExample/.venv/bin/python /Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-
2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 64841 -- /Users/anthonykim/Desktop
/djangoExample/manage.py runserver 
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/__main__.py", line 39, in <module>
    cli.main()
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 430, in main
    run()
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 284, in run_file
    runpy.run_path(target, run_name="__main__")
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 320, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "/Users/anthonykim/.vscode-insiders/extensions/ms-python.debugpy-2024.3.10521006-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 289, in _get_code_from_file
    with io_open_code(decoded_path) as f:
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tokenize.py", line 447, in open
    buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/Users/anthonykim/Desktop/djangoExample/manage.py'

@rzhao271 rzhao271 added the verified Verification succeeded label Feb 22, 2024
@rzhao271
Copy link
Contributor

I can repro the original issue.
Will add the unreleased tag for now because I noticed the fix went in recently.

@rzhao271 rzhao271 added unreleased Patch has not yet been released in VS Code Insiders and removed verified Verification succeeded labels Feb 22, 2024
@aiday-mar aiday-mar removed the unreleased Patch has not yet been released in VS Code Insiders label Feb 23, 2024
@aiday-mar
Copy link

I am testing on the latest Insiders and the error does not happen anymore, however I see this happen, which looks mabe like a bug:

Screen.Recording.2024-02-23.at.13.18.48.mov

I will open an issue about this.

@aiday-mar aiday-mar added the verified Verification succeeded label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants