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

Autocomplete does not work in debug console of the first debugging session #726

Closed
serend1p1ty opened this issue Dec 7, 2019 · 18 comments
Closed
Labels
bug Something isn't working user responded

Comments

@serend1p1ty
Copy link

Environment data

  • VS Code version: 1.40.2
  • Extension version (available under the Extensions sidebar): 2019.11.50794
  • OS and version: win10
  • Python version (& distribution if applicable, e.g. Anaconda): Latest
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Relevant/affected Python packages and their versions: None
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info How to update the language server to the latest stable version vscode-python#3977): Jedi

Expected behaviour

When I start the first debugging session after launch vscode, autocomplete does not work in debug console.
But the strange problem won't appear in the second debugging session.

Actual behaviour

Autocomplete can work in the first debugging session.

Logs

> ~/anaconda3/envs/person_search/bin/python completion.py
cwd: ~/.vscode-server/extensions/ms-python.python-2019.11.50794/pythonFiles
> ~/anaconda3/envs/person_search/bin/python completion.py
cwd: ~/.vscode-server/extensions/ms-python.python-2019.11.50794/pythonFiles
@serend1p1ty serend1p1ty changed the title Autocomplete does not work in debug console of first session Autocomplete does not work in debug console of the first debugging session Dec 7, 2019
@kimadeline
Copy link

Hi @520Chris 👋 Thank you for reaching out. I could reproduce the bug, and I can confirm that it's a regression in the extension:

  • can reproduce with 2019.11.50794, but not with 2019.10.44104
  • can reproduce the bug with:
    • a conda environment
    • a Python interpreter set by pyenv
  • cannot reproduce the bug with:
    • a system install of Python
    • a virtual environment

@kimadeline kimadeline removed their assignment Dec 9, 2019
@serend1p1ty
Copy link
Author

Thank you very much. looking forward to a fix.

@serend1p1ty
Copy link
Author

Is there any progress?

@brettcannon
Copy link
Member

@520Chris unfortunately we don't give out updates on work.

@serend1p1ty
Copy link
Author

I know, thanks for your response.

@OmeGak
Copy link

OmeGak commented Oct 22, 2020

Not sure why this issue was closed. I'm experiencing this behavior consistently myself on a virtualenv.

@serend1p1ty
Copy link
Author

Because this problem has not been fixed for nearly a year, I have lost patience and no longer pay attention to the latest progress.

@OmeGak
Copy link

OmeGak commented Oct 25, 2020

Would you mind reopening it? An open issue is useful for maintainers and community to keep track of still existing problems.

@serend1p1ty serend1p1ty reopened this Oct 25, 2020
@ewerybody
Copy link

I'm just having this issue again. And for some reason it keeps persisting now. I already used to develop a habit of restarting debug mode when I start working with a fresh VS Code instance 🤕

Now I can restart over and over again and STILL no auto/command completion :/
I have to dir(myobj) to get nfo about stuff. What is this!?!

my version:

Version: 1.58.0-insider (user setup)
Commit: 7dea6d7402b55671410a129661cad24b55aed9f4
Date: 2021-06-18T13:58:43.903Z (3 days ago)
Electron: 12.0.11
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.19043

@ewerybody
Copy link

ewerybody commented Jun 22, 2021

I just had a look into the Output tab on Python Language Server there is an error saying:

[Error - 9:50:11 AM] Request textDocument/documentHighlight failed.
  Message: Request textDocument/documentHighlight failed with message: Debug Failure. Did not find evaluation scope
  Code: -32603 

maybe that's a hint? 🤷‍♀️

@OmeGak
Copy link

OmeGak commented Sep 16, 2021

[Error - 9:50:11 AM] Request textDocument/documentHighlight failed.
  Message: Request textDocument/documentHighlight failed with message: Debug Failure. Did not find evaluation scope
  Code: -32603 

I don't have this output entry on Python Language Server and I experience the same autocomplete problem.

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Sep 21, 2021
@int19h
Copy link
Contributor

int19h commented Sep 21, 2021

I can't repro this, on Anaconda or otherwise. Can you please share a step-by-step repro, including your launch.json, directory layout, and source code?

@int19h int19h added bug Something isn't working waiting for response labels Sep 21, 2021
@int19h
Copy link
Contributor

int19h commented Oct 13, 2021

Please re-open if the issue is still relevant.

@int19h int19h closed this as completed Oct 13, 2021
@OmeGak
Copy link

OmeGak commented Oct 14, 2021

I'm no longer experiencing this problem, as of VSCode v1.61.0.

@mlut-cau
Copy link

mlut-cau commented Mar 2, 2025

Unfortunately Intellisense is not working for me in the Python Debug Console. It is working in the editor however. This problem is not perfectly aligned with the original title of this issue, but is not working in general as reported in #726 (comment)

For illustration purposes I have included a screenshot.

Image

Version: 1.97.0
Commit: 33fc5a94a3f99ebe7087e8fe79fbe1d37a251016
Date: 2025-02-04T22:41:26.688Z
Electron: 32.2.7
ElectronBuildId: 10660205
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Linux x64 6.8.0-52-generic snap

ms-python.python
Version 2025.0.0

ms-python.debugpy
Version 2025.0.1

I would be grateful for hints on where to look to get this to work again (was working when I previously used VS Code about 2 years ago for same project)

@rchiodo
Copy link
Contributor

rchiodo commented Mar 3, 2025

This doesn't work for me either. Autocomplete isn't handled by debugpy though, so this would be Pylance I think? @karthiknadig do you know what handles completion requests in the Debug Console?

@rchiodo
Copy link
Contributor

rchiodo commented Mar 3, 2025

There's a dupe bug in the vscode-python-debugger extension:
microsoft/vscode-python-debugger#639

@mlut-cau
Copy link

mlut-cau commented Mar 4, 2025

Thanks for the hint, I will keep an eye on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working user responded
Projects
None yet
Development

No branches or pull requests

8 participants