Skip to content

PTVS Analysis Engine: hovering symbols that do not have hover information results in an error #1293

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
patrys opened this issue Apr 4, 2018 · 2 comments
Assignees
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Milestone

Comments

@patrys
Copy link

patrys commented Apr 4, 2018

Environment data

  • VS Code version: 1.22.0-insiders
  • Extension version (available under the Extensions sidebar): 2018.4.0-alpha (nightly 11-46-46-464)
  • OS and version: macOS High Sierra
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): direnv
  • Relevant/affected Python packages and their versions: n/a

Actual behavior

An error is reported:

Illegal argument, contents must be defined

Expected behavior

Nothing happens.

Steps to reproduce:

  1. Make sure the new analysis engine is enabled
  2. Hover a language keyword, a parenthesis, a bracket or a brace symbol.
  3. Check the developer tools console for the error mentioned above.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

[Info  - 13:07:25] No hover info found in file:///Users/patrys/<redacted>/settings.py at (68, 5)

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

ERR Illegal argument, contents must be defined: Error: Illegal argument, contents must be defined
	at new <anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:430:471)
	at asHover (/Users/patrys/.vscode-insiders/extensions/ms-python.python-2018.4.0-alpha/node_modules/vscode-languageclient/lib/protocolConverter.js:63:16)
	at <anonymous>
@patrys patrys changed the title PTVS: hovering parentheses/brackets/braces results in an error PTVS Analysis Engine: hovering parentheses/brackets/braces results in an error Apr 4, 2018
@patrys patrys changed the title PTVS Analysis Engine: hovering parentheses/brackets/braces results in an error PTVS Analysis Engine: hovering symbols that do not have hover information results in an error Apr 4, 2018
@MikhailArkhipov MikhailArkhipov self-assigned this Apr 4, 2018
@MikhailArkhipov
Copy link

MikhailArkhipov commented Apr 4, 2018

The engine is not fully integrated, there are still many issues there. Generally we capture engine issue in #1006, tracking issues opened in PTVS github.
I'll keep this one open, may be specific to VSC LS protocol implementation.

@MikhailArkhipov MikhailArkhipov added this to the April 2018 milestone Apr 4, 2018
@brettcannon brettcannon added bug Issue identified by VS Code Team member as probable bug area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. needs verification labels Apr 5, 2018
@MikhailArkhipov
Copy link

OK, fixes on PTVS side. Part of microsoft/PTVS#4065

@lock lock bot locked as resolved and limited conversation to collaborators Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants