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

Argument list is shown in the docstring area #5577

Closed
SunDoge opened this issue May 7, 2019 · 13 comments
Closed

Argument list is shown in the docstring area #5577

SunDoge opened this issue May 7, 2019 · 13 comments
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug

Comments

@SunDoge
Copy link

SunDoge commented May 7, 2019

Environment data

  • VS Code version: 1.33.1
  • Extension version (available under the Extensions sidebar): 2019.4.12954
  • OS and version: Manjaro Linux 18.0.4
  • Python version (& distribution if applicable, e.g. Anaconda): Miniconda Python 3.7.1
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Relevant/affected Python packages and their versions: pytorch

Expected behaviour

Show all args.

Actual behaviour

image

image

Full arg list is not shown in the correct area and disappear when typing.

Steps to reproduce:

  1. import torch
  2. torch.nn.Conv2d(
  3. wait for the signature help
  4. type first few args and the rest of them disappear

Logs

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

##########Linting Output - mypy##########
a.py:3:1: error: Too few arguments for "Conv2d"

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

[Extension Host] debugger listening on port 8571
workbench.main.js:sourcemap:235 [Extension Host] (node:25435) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ workbench.main.js:sourcemap:235
$logExtensionHostMessage @ workbench.main.js:sourcemap:3187
_doInvokeHandler @ workbench.main.js:sourcemap:3314
_invokeHandler @ workbench.main.js:sourcemap:3313
_receiveRequest @ workbench.main.js:sourcemap:3312
_receiveOneMessage @ workbench.main.js:sourcemap:3311
_protocol.onMessage.e @ workbench.main.js:sourcemap:3309
fire @ workbench.main.js:sourcemap:75
a @ workbench.main.js:sourcemap:317
e @ workbench.main.js:sourcemap:317
fire @ workbench.main.js:sourcemap:75
_receiveMessage @ workbench.main.js:sourcemap:326
_socketDisposables.push._socketReader.onMessage.e @ workbench.main.js:sourcemap:323
fire @ workbench.main.js:sourcemap:75
acceptChunk @ workbench.main.js:sourcemap:320
_register._socket.onData.e @ workbench.main.js:sourcemap:319
t @ workbench.main.js:sourcemap:328
emit @ events.js:182
addChunk @ _stream_readable.js:279
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onread @ net.js:636
workbench.main.js:sourcemap:235 [Extension Host] [vscode-icons] v8.6.0 activated!
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Create file systemwatcher with pattern */python
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Create file systemwatcher with pattern */*/python
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = p, Arg 1: <Uri:/home/sundoge/Code/python/temporal-shift-module/a.py>, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: <Uri:/home/sundoge/Code/python/temporal-shift-module/a.py>, Return Value: <Return value cannot be serialized for logging>
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Rule = settings, result = exit
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: <Uri:/home/sundoge/Code/python/temporal-shift-module>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Rule = windowsRegistry, result = runNextRule
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Executing next rule from windowsRegistry
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Rule = settings, result = exit
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: <Uri:/home/sundoge/Code/python/temporal-shift-module/a.py>, Return Value: <Return value cannot be serialized for logging>
2workbench.main.js:sourcemap:235 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: <Uri:/home/sundoge/Code/python/temporal-shift-module>, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Checking support of .NET, Class name = c, , Return Value: true
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Detection of Python Interpreter for Command python3.6 and args  failed
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"/home/sundoge/miniconda3/bin/python","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"/home/sundoge/miniconda3","fileHash":"6d3f1c2557a08af9ce3b41849f1b1c75360f0487d7ba8c904fb9002103a68782af6578e2a08a0a93899ed88d9415e8f1532cb1073ef582e0de015e41de0137ad","type":"Unknown","cachedEntry":true}
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"/sbin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"3d52b2897a24897a65d9b95f141bd5404cf4a6c31a9d6247c5757fb3ed18f7619c05b67ad7a89fe9d889c28a8b8a6b9b60579f58353c3c39d79c78f4a38242c5","type":"Unknown","displayName":"Python 3.7.3 64-bit"}
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/home/sundoge/miniconda3/bin/python","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"/home/sundoge/miniconda3","fileHash":"6d3f1c2557a08af9ce3b41849f1b1c75360f0487d7ba8c904fb9002103a68782af6578e2a08a0a93899ed88d9415e8f1532cb1073ef582e0de015e41de0137ad","type":"Unknown","cachedEntry":true}
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/sbin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"3d52b2897a24897a65d9b95f141bd5404cf4a6c31a9d6247c5757fb3ed18f7619c05b67ad7a89fe9d889c28a8b8a6b9b60579f58353c3c39d79c78f4a38242c5","type":"Unknown","displayName":"Python 3.7.3 64-bit"}
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"/sbin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"3d52b2897a24897a65d9b95f141bd5404cf4a6c31a9d6247c5757fb3ed18f7619c05b67ad7a89fe9d889c28a8b8a6b9b60579f58353c3c39d79c78f4a38242c5","type":"Unknown","cachedEntry":true,"displayName":"Python 3.7.3 64-bit"}
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Interpreters returned by VirtualEnvService are of count 0
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {"architecture":3,"path":"/home/sundoge/miniconda3/bin/python","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"/home/sundoge/miniconda3","fileHash":"6d3f1c2557a08af9ce3b41849f1b1c75360f0487d7ba8c904fb9002103a68782af6578e2a08a0a93899ed88d9415e8f1532cb1073ef582e0de015e41de0137ad","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {"architecture":3,"path":"/sbin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"3d52b2897a24897a65d9b95f141bd5404cf4a6c31a9d6247c5757fb3ed18f7619c05b67ad7a89fe9d889c28a8b8a6b9b60579f58353c3c39d79c78f4a38242c5","type":"Unknown","displayName":"Python 3.7.3 64-bit"}, Arg 2: undefined, Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Rule = currentPath, result = runNextRule
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Executing next rule from currentPath
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Rule = cachedInterpreters, result = runNextRule
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Executing next rule from cachedInterpreters
2workbench.main.js:sourcemap:235 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: <Uri:/home/sundoge/Code/python/temporal-shift-module>, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Interpreters returned by KnownPathsService are of count 28
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {"architecture":3,"path":"/sbin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"3d52b2897a24897a65d9b95f141bd5404cf4a6c31a9d6247c5757fb3ed18f7619c05b67ad7a89fe9d889c28a8b8a6b9b60579f58353c3c39d79c78f4a38242c5","type":"Unknown","cachedEntry":true,"displayName":"Python 3.7.3 64-bit"}, Arg 2: undefined, Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Rule = system, result = runNextRule
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Executing next rule from system
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Selected Interpreter from workspaceEnvs, Nothing Selected
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: <Uri:/home/sundoge/Code/python/temporal-shift-module>, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: <Uri:/home/sundoge/Code/python/temporal-shift-module>, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Rule = settings, result = exit
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Rule = windowsRegistry, result = runNextRule
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Executing next rule from windowsRegistry
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Rule = settings, result = exit
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: undefined, Return Value: undefined
2workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: undefined, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Python Extension (Error in Failed to check if file needs to be fixed, method:doesFileNeedToBeFixed): Error: ENOENT: no such file or directory, open '/home/sundoge/Code/python/temporal-shift-module/.vscode/settings.json'
t.log @ workbench.main.js:sourcemap:235
$logExtensionHostMessage @ workbench.main.js:sourcemap:3187
_doInvokeHandler @ workbench.main.js:sourcemap:3314
_invokeHandler @ workbench.main.js:sourcemap:3313
_receiveRequest @ workbench.main.js:sourcemap:3312
_receiveOneMessage @ workbench.main.js:sourcemap:3311
_protocol.onMessage.e @ workbench.main.js:sourcemap:3309
fire @ workbench.main.js:sourcemap:75
a @ workbench.main.js:sourcemap:317
e @ workbench.main.js:sourcemap:317
fire @ workbench.main.js:sourcemap:75
_receiveMessage @ workbench.main.js:sourcemap:326
_socketDisposables.push._socketReader.onMessage.e @ workbench.main.js:sourcemap:323
fire @ workbench.main.js:sourcemap:75
acceptChunk @ workbench.main.js:sourcemap:320
_register._socket.onData.e @ workbench.main.js:sourcemap:319
t @ workbench.main.js:sourcemap:328
emit @ events.js:182
addChunk @ _stream_readable.js:279
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onread @ net.js:636
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"/home/sundoge/miniconda3/bin/python","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"/home/sundoge/miniconda3","fileHash":"6d3f1c2557a08af9ce3b41849f1b1c75360f0487d7ba8c904fb9002103a68782af6578e2a08a0a93899ed88d9415e8f1532cb1073ef582e0de015e41de0137ad","type":"Unknown","cachedEntry":true}
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Create file systemwatcher with pattern */python
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Create file systemwatcher with pattern */*/python
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = p, Arg 1: undefined, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: undefined, Return Value: <Return value cannot be serialized for logging>
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"/sbin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"3d52b2897a24897a65d9b95f141bd5404cf4a6c31a9d6247c5757fb3ed18f7619c05b67ad7a89fe9d889c28a8b8a6b9b60579f58353c3c39d79c78f4a38242c5","type":"Unknown","cachedEntry":true,"displayName":"Python 3.7.3 64-bit"}
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/home/sundoge/miniconda3/bin/python","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"/home/sundoge/miniconda3","fileHash":"6d3f1c2557a08af9ce3b41849f1b1c75360f0487d7ba8c904fb9002103a68782af6578e2a08a0a93899ed88d9415e8f1532cb1073ef582e0de015e41de0137ad","type":"Unknown","cachedEntry":true}
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/sbin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"3d52b2897a24897a65d9b95f141bd5404cf4a6c31a9d6247c5757fb3ed18f7619c05b67ad7a89fe9d889c28a8b8a6b9b60579f58353c3c39d79c78f4a38242c5","type":"Unknown","cachedEntry":true,"displayName":"Python 3.7.3 64-bit"}
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"/sbin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"3d52b2897a24897a65d9b95f141bd5404cf4a6c31a9d6247c5757fb3ed18f7619c05b67ad7a89fe9d889c28a8b8a6b9b60579f58353c3c39d79c78f4a38242c5","type":"Unknown","displayName":"Python 3.7.3 64-bit"}
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/sundoge/Code/python/temporal-shift-module/a.py
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Interpreters returned by CurrentPathService are of count 5
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {"architecture":3,"path":"/home/sundoge/miniconda3/bin/python","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"/home/sundoge/miniconda3","fileHash":"6d3f1c2557a08af9ce3b41849f1b1c75360f0487d7ba8c904fb9002103a68782af6578e2a08a0a93899ed88d9415e8f1532cb1073ef582e0de015e41de0137ad","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {"architecture":3,"path":"/sbin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"3d52b2897a24897a65d9b95f141bd5404cf4a6c31a9d6247c5757fb3ed18f7619c05b67ad7a89fe9d889c28a8b8a6b9b60579f58353c3c39d79c78f4a38242c5","type":"Unknown","cachedEntry":true,"displayName":"Python 3.7.3 64-bit"}, Arg 2: undefined, Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Rule = currentPath, result = runNextRule
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Executing next rule from currentPath
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Rule = cachedInterpreters, result = runNextRule
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Executing next rule from cachedInterpreters
2workbench.main.js:sourcemap:235 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: undefined, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {"architecture":3,"path":"/sbin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"3d52b2897a24897a65d9b95f141bd5404cf4a6c31a9d6247c5757fb3ed18f7619c05b67ad7a89fe9d889c28a8b8a6b9b60579f58353c3c39d79c78f4a38242c5","type":"Unknown","displayName":"Python 3.7.3 64-bit"}, Arg 2: undefined, Return Value: false
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Rule = system, result = runNextRule
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Executing next rule from system
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Selected Interpreter from workspaceEnvs, Nothing Selected
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: undefined, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: undefined, Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Current value for rule workspaceEnvs is nothing
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Interpreters returned by CondaEnvFileService are of count 2
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Interpreters returned by CondaEnvService are of count 3
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined
6workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/sundoge/Code/python/temporal-shift-module
workbench.main.js:sourcemap:235 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/sundoge/Code/python/temporal-shift-module/a.py
@ghost ghost added the triage-needed Needs assignment to the proper sub-team label May 7, 2019
@karrtikr
Copy link

karrtikr commented May 14, 2019

Please inform if you're using Language server or Jedi, i.e check the value of python.jediEnabled in settings.json.

If you see no such settings or if setting is true it means you're using jedi as intellisense.

In that case try adding setting, "python.jediEnabled": false. Language server provides better intellisense in most cases. (although it seems like torch is not fully supported yet)

@karrtikr karrtikr added area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. needs upstream fix bug Issue identified by VS Code Team member as probable bug labels May 14, 2019
@ghost ghost removed triage-needed Needs assignment to the proper sub-team labels May 14, 2019
@karrtikr karrtikr changed the title SignatureHelp show incomplete args Argument list is shown in the docstring area when no. of args is more May 14, 2019
@karrtikr karrtikr changed the title Argument list is shown in the docstring area when no. of args is more Argument list is shown in the docstring area May 15, 2019
@memeplex
Copy link

I understand my report was mostly a dup of this, but anyway I was also pointing out the ill-formatting of the text in general, for example, above:

of several
input
planes

This can't just be attributed to the fixed size of the tooltip box, AFAICS. I understand reflowing the text is not that easy but surely there are better heuristics. And maybe the font of the docstring may be smaller.

@karrtikr
Copy link

karrtikr commented May 15, 2019

In this case, It's because of the docstring of the function, not because of any ill-formatting of text in vscode.

class Conv2d(_ConvNd):
    r"""Applies a 2D convolution over an input signal composed of several input
    planes.
   ...
    """

There's a line break after "input", which gets reflected in the intellisense as it should, not a bug. Please comment if you disagree, and I encourage you to file new issues if you see any possible enhancements.

@memeplex
Copy link

I perfectly understand that. My point was that some kind of reflowing of the text should be done, and the current heuristic (do nothing at all) is way too simplistic.

@karrtikr
Copy link

karrtikr commented May 15, 2019

If you can show other places where such cases are handled, we'll be happy to look into it.
Personally, I don't see a simple heuristic to re-flow the text in this particular case. i.e, How to know when to interpret "line breaks" in docstrings as "line breaks" in intellisense, and when not to?

@memeplex
Copy link

Both emacs and vim are quite good reformatting chunks of text and comments, see for example http://vimdoc.sourceforge.net/htmldoc/change.html#fo-table. In vscode you have Rewrap https://marketplace.visualstudio.com/items?itemName=stkb.rewrap, which seems to support markdown. I'm not saying this is an easy affair, but the screenshots here and in my report show that current formatting makes text rather unintelligible, so a best-effort approach, even with its own shortcomings, could improve things.

Moreover, decreasing text size could help.

@karrtikr
Copy link

Can you please open up a new issue just for this? If it bothers enough users, we can definitely look into such shortcomings and make a decision on whether we need it.

@karrtikr
Copy link

karrtikr commented May 15, 2019

I also believe current formatting in your earlier report is distorted just because of this #5577 bug (and it won't be that unintelligible once that's out of the way). This line break issue is the only one I see for now.

Regardless, thanks for the suggestions.

@memeplex
Copy link

Ok, let's see, hopefully you're right and fixing this will considerably improve the situation.

@memeplex
Copy link

Can you please open up a new issue just for this?

Here https://github.com/microsoft/vscode-python/issues/5633

@memeplex
Copy link

memeplex commented May 19, 2019

@karrtikr jediEnabled=false mode seems too dumb to realize the parameters of ArgumentParser( are the parameters of ArgumentParser.__init__(, at least it's not showing anything for ArgumentParser(. But on the positive side, it's doing a better job formatting the text for ArgumentParser.__init__(:

image

Which is rather useless but looks better.

@memeplex
Copy link

BTW, when you tag issues upstream-jedi are you actually reporting the problem upstream?

@brettcannon
Copy link
Member

Closing as this is an upstream issue which we don't have direct control or influence over.

@ghost ghost removed the needs upstream fix label Jul 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2019
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

5 participants