python-language-server icon indicating copy to clipboard operation
python-language-server copied to clipboard

RecursionError: maximum recursion depth exceeded in comparison

Open elbaulp opened this issue 6 years ago • 2 comments

Describe the bug I keep getting this error RecursionError: maximum recursion depth exceeded in comparison. When normally navigating through a python source code, suddenly it freezes and after a while I see in the status buffer that error.

To Reproduce I do not know how to reproduce it

Expected behavior Emacs operating normaly, without freezing

Which Language Server did you use I am using PyLs, installed with conda.

OS Windows 10

Error callstack Below are the contents of lsp-logs, however, I have seen that other buffer called pyl:stderr explodes in size when the error happens, here is its content too:

pyls:sterr

RecursionError: maximum recursion depth exceeded in comparison
2019-08-21 07:19:33,991 UTC - WARNING - pyls_jsonrpc.endpoint - Received cancel notification for unknown message id 179
2019-08-21 07:19:40,226 UTC - ERROR - pyls_jsonrpc.endpoint - Failed to handle request 189
Traceback (most recent call last):
  File "c:\Users\aabarros\Miniconda3\envs\bpo\lib\site-packages\jedi\evaluate\syntax_tree.py", line 593, in tree_name_to_contexts
    types = context.predefined_names[node][tree_name.value]
KeyError: <ForStmt: for obj in objs:                 if obj.ndim == max_ndim and np.sum(obj.shape):                     sample = obj                     break@344,12>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\Users\aabarros\Miniconda3\envs\bpo\lib\site-packages\jedi\evaluate\syntax_tree.py", line 593, in tree_name_to_contexts
    types = context.predefined_names[node][tree_name.value]

lsplog

``` emacs-lisp [Trace - 06:55:48 AM] Sending request 'textDocument/hover - (377)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDEN/main_bpo.py" }, "position": { "line": 153, "character": 0 } }

[Trace - 06:55:48 AM] Received response 'textDocument/hover - (377)' in 57ms. Result: { "contents": "" }

[Trace - 06:55:48 AM] Sending request 'textDocument/hover - (378)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 153, "character": 0 } }

[Trace - 06:55:48 AM] Received response 'textDocument/hover - (378)' in 66ms. Result: { "contents": "" }

[Trace - 06:55:48 AM] Sending request 'textDocument/codeAction - (379)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "range": { "start": { "line": 153, "character": 0 }, "end": { "line": 153, "character": 21 } }, "context": { "diagnostics": [] } }

[Trace - 06:55:48 AM] Sending request 'textDocument/hover - (380)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 153, "character": 1 } }

[Trace - 06:55:48 AM] Sending request 'textDocument/hover - (381)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 153, "character": 6 } }

[Trace - 06:55:48 AM] Sending request 'textDocument/hover - (382)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 153, "character": 10 } }

[Trace - 06:55:48 AM] Sending request 'textDocument/hover - (383)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 153, "character": 16 } }

[Trace - 06:55:48 AM] Sending request 'textDocument/hover - (384)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 153, "character": 19 } }

[Trace - 06:55:48 AM] Received response 'textDocument/codeAction - (379)' in 60ms. Result: []

[Trace - 06:55:48 AM] Sending request 'textDocument/hover - (385)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 153, "character": 0 } }

[Trace - 06:55:48 AM] Received response 'textDocument/hover - (380)' in 152ms. Result: { "contents": "" }

[Trace - 06:55:48 AM] Received response 'textDocument/hover - (381)' in 151ms. Result: { "contents": "" }

[Trace - 06:55:48 AM] Received response 'textDocument/hover - (382)' in 150ms. Result: { "contents": "print(\*values: object, sep: Text=..., end: Text=..., file: Optional[_Writer]=..., flush: bool=...) -> None\n\nprint(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)\n\nPrints the values to a stream, or to sys.stdout by default.\nOptional keyword arguments:\nfile: a file-like object (stream); defaults to the current sys.stdout.\nsep: string inserted between values, default a space.\nend: string appended after the last value, default a newline.\nflush: whether to forcibly flush the stream." }

[Trace - 06:55:48 AM] Received response 'textDocument/hover - (383)' in 149ms. Result: { "contents": "" }

[Trace - 06:55:48 AM] Received response 'textDocument/hover - (384)' in 148ms. Result: { "contents": "" }

[Trace - 06:55:48 AM] Received response 'textDocument/hover - (385)' in 20ms. Result: { "contents": "" }

[Trace - 06:55:48 AM] Sending notification 'textDocument/didChange'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py", "version": 80 }, "contentChanges": [ { "range": { "start": { "line": 153, "character": 0 }, "end": { "line": 153, "character": 21 } }, "rangeLength": 21, "text": "" } ] }

[Trace - 06:55:49 AM] Sending request 'textDocument/codeAction - (386)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "range": { "start": { "line": 153, "character": 0 }, "end": { "line": 153, "character": 0 } }, "context": { "diagnostics": [] } }

[Trace - 06:55:49 AM] Received response 'textDocument/codeAction - (386)' in 60ms. Result: []

[Trace - 06:55:49 AM] Received notification 'textDocument/publishDiagnostics'. Params: { "diagnostics": [ { "code": "E0001", "severity": 1, "message": "[syntax-error] unexpected unindent (<unknown>, line 154)", "range": { "end": { "character": 24, "line": 153 }, "start": { "character": 0, "line": 153 } }, "source": "pylint" }, { "severity": 2, "message": "local variable 'header' is assigned to but never used", "range": { "end": { "character": 27, "line": 128 }, "start": { "character": 12, "line": 128 } }, "source": "pyflakes" }, { "range": { "end": { "character": 22, "line": 0 }, "start": { "character": 0, "line": 0 } }, "severity": 2, "message": "D100: Missing docstring in public module", "code": "D100", "source": "pydocstyle" }, { "range": { "end": { "character": 22, "line": 86 }, "start": { "character": 0, "line": 86 } }, "severity": 2, "message": "D103: Missing docstring in public function", "code": "D103", "source": "pydocstyle" }, { "range": { "end": { "character": 22, "line": 94 }, "start": { "character": 0, "line": 94 } }, "severity": 2, "message": "D400: First line should end with a period (not 'y')", "code": "D400", "source": "pydocstyle" }, { "severity": 2, "code": "E501", "message": "E501 line too long (117 > 88 characters)", "range": { "end": { "character": 118, "line": 61 }, "start": { "character": 88, "line": 61 } }, "source": "pycodestyle" }, { "severity": 2, "code": "E501", "message": "E501 line too long (139 > 88 characters)", "range": { "end": { "character": 140, "line": 63 }, "start": { "character": 88, "line": 63 } }, "source": "pycodestyle" }, { "severity": 2, "code": "E501", "message": "E501 line too long (97 > 88 characters)", "range": { "end": { "character": 98, "line": 76 }, "start": { "character": 88, "line": 76 } }, "source": "pycodestyle" } ], "uri": "file:///c:/PATH HIDDENmain_bpo.py" }

[Trace - 06:55:49 AM] Sending request 'textDocument/codeAction - (387)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "range": { "start": { "line": 153, "character": 0 }, "end": { "line": 153, "character": 0 } }, "context": { "diagnostics": [] } }

[Trace - 06:55:49 AM] Received response 'textDocument/codeAction - (387)' in 54ms. Result: []

[Trace - 06:56:00 AM] Sending request 'textDocument/codeAction - (388)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "range": { "start": { "line": 151, "character": 0 }, "end": { "line": 151, "character": 52 } }, "context": { "diagnostics": [] } }

[Trace - 06:56:00 AM] Sending request 'textDocument/hover - (389)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 151, "character": 16 } }

[Trace - 06:56:00 AM] Sending request 'textDocument/hover - (390)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 151, "character": 20 } }

[Trace - 06:56:00 AM] Sending request 'textDocument/hover - (391)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 151, "character": 47 } }

[Trace - 06:56:00 AM] Received response 'textDocument/codeAction - (388)' in 60ms. Result: []

[Trace - 06:56:00 AM] Received response 'textDocument/hover - (389)' in 58ms. Result: { "contents": "" }

[Trace - 06:56:00 AM] Received response 'textDocument/hover - (390)' in 57ms. Result: { "contents": "warning(msg, \args, \\*kwargs)\n\nLog 'msg % args' with severity 'WARNING'.\n\nTo pass exception information, use the keyword argument exc_info with\na true value, e.g.\n\nlogger.warning("Houston, we have a %s", "bit of a problem", exc_info=1)" }

[Trace - 06:56:01 AM] Sending notification 'textDocument/didSave'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py", "version": 80 }, "text": null }

[Trace - 06:56:01 AM] Sending request 'textDocument/codeAction - (392)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "range": { "start": { "line": 152, "character": 0 }, "end": { "line": 152, "character": 40 } }, "context": { "diagnostics": [] } }

[Trace - 06:56:01 AM] Sending request 'textDocument/hover - (393)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 152, "character": 16 } }

[Trace - 06:56:01 AM] Sending request 'textDocument/hover - (394)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 152, "character": 23 } }

[Trace - 06:56:01 AM] Sending request 'textDocument/hover - (395)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 152, "character": 28 } }

[Trace - 06:56:01 AM] Sending request 'textDocument/hover - (396)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 152, "character": 35 } }

[Trace - 06:56:01 AM] Sending request 'textDocument/hover - (397)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 152, "character": 0 } }

[Trace - 06:56:01 AM] Sending request 'textDocument/signatureHelp - (398)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 152, "character": 0 } }

[Trace - 06:56:02 AM] Sending request 'textDocument/codeAction - (399)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "range": { "start": { "line": 153, "character": 0 }, "end": { "line": 153, "character": 0 } }, "context": { "diagnostics": [] } }

[Trace - 06:56:02 AM] Sending request 'textDocument/codeAction - (400)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "range": { "start": { "line": 151, "character": 0 }, "end": { "line": 151, "character": 52 } }, "context": { "diagnostics": [] } }

[Trace - 06:56:02 AM] Sending request 'textDocument/hover - (401)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 151, "character": 16 } }

[Trace - 06:56:02 AM] Sending request 'textDocument/hover - (402)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 151, "character": 20 } }

[Trace - 06:56:02 AM] Sending request 'textDocument/hover - (403)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 151, "character": 47 } }

[Trace - 06:56:03 AM] Sending request 'textDocument/codeAction - (404)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "range": { "start": { "line": 152, "character": 0 }, "end": { "line": 152, "character": 40 } }, "context": { "diagnostics": [] } }

[Trace - 06:56:03 AM] Sending request 'textDocument/hover - (405)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 152, "character": 16 } }

[Trace - 06:56:03 AM] Sending request 'textDocument/hover - (406)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 152, "character": 23 } }

[Trace - 06:56:03 AM] Sending request 'textDocument/hover - (407)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 152, "character": 28 } }

[Trace - 06:56:03 AM] Sending request 'textDocument/hover - (408)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 152, "character": 35 } }

[Trace - 06:56:03 AM] Sending request 'textDocument/hover - (409)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 151, "character": 47 } }

[Trace - 06:56:15 AM] Sending request 'textDocument/signatureHelp - (410)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 151, "character": 47 } }

[Trace - 06:56:15 AM] Sending request 'textDocument/hover - (411)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 152, "character": 39 } }

[Trace - 06:56:15 AM] Sending request 'textDocument/hover - (412)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 154, "character": 26 } }

[Trace - 06:56:15 AM] Sending request 'textDocument/hover - (413)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 158, "character": 39 } }

[Trace - 06:56:15 AM] Sending request 'textDocument/hover - (414)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 158, "character": 39 } }

[Trace - 06:56:15 AM] Sending request 'textDocument/hover - (415)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 159, "character": 39 } }

[Trace - 06:56:15 AM] Sending request 'textDocument/hover - (416)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 161, "character": 39 } }

[Trace - 06:56:15 AM] Sending request 'textDocument/hover - (417)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 161, "character": 39 } }

[Trace - 06:56:15 AM] Sending request 'textDocument/hover - (418)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 161, "character": 39 } }

[Trace - 06:56:15 AM] Sending request 'textDocument/hover - (419)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 161, "character": 39 } }

[Trace - 06:56:15 AM] Sending request 'textDocument/hover - (420)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 161, "character": 39 } }

[Trace - 06:56:15 AM] Sending request 'textDocument/hover - (421)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 161, "character": 39 } }

[Trace - 06:56:15 AM] Received response 'textDocument/hover - (391)' in 585ms. Result: null

[Trace - 06:56:15 AM] Received response 'textDocument/codeAction - (392)' in 419ms. Result: []

[Trace - 06:56:15 AM] Sending request 'textDocument/codeAction - (422)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "range": { "start": { "line": 160, "character": 0 }, "end": { "line": 160, "character": 13 } }, "context": { "diagnostics": [] } }

[Trace - 06:56:15 AM] Sending request 'textDocument/documentHighlight - (423)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 160, "character": 13 } }

[Trace - 06:56:16 AM] Sending request 'textDocument/hover - (424)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 160, "character": 13 } }

[Trace - 06:56:16 AM] Sending request 'textDocument/signatureHelp - (425)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "position": { "line": 160, "character": 13 } }

[Trace - 06:56:23 AM] Received notification 'textDocument/publishDiagnostics'. Params: { "diagnostics": [ { "code": "C0301", "severity": 3, "message": "[line-too-long] Line too long (117/100)", "range": { "end": { "character": 118, "line": 61 }, "start": { "character": 0, "line": 61 } }, "source": "pylint" }, { "code": "C0301", "severity": 3, "message": "[line-too-long] Line too long (139/100)", "range": { "end": { "character": 140, "line": 63 }, "start": { "character": 0, "line": 63 } }, "source": "pylint" }, { "code": "W0511", "severity": 2, "message": "[fixme] TODO: For NUM_REGISTRO when there is no target_NUMREGISTRO, it means NULL is correct and this predict is returning 19", "range": { "end": { "character": 140, "line": 63 }, "start": { "character": 2, "line": 63 } }, "source": "pylint" }, { "code": "C0111", "severity": 3, "message": "[missing-docstring] Missing module docstring", "range": { "end": { "character": 22, "line": 0 }, "start": { "character": 0, "line": 0 } }, "source": "pylint" }, { "code": "C0103", "severity": 3, "message": "[invalid-name] Argument name "df" doesn't conform to snake_case naming style", "range": { "end": { "character": 81, "line": 24 }, "start": { "character": 0, "line": 24 } }, "source": "pylint" }, { "code": "R0913", "severity": 4, "message": "[too-many-arguments] Too many arguments (6/5)", "range": { "end": { "character": 81, "line": 24 }, "start": { "character": 0, "line": 24 } }, "source": "pylint" }, { "code": "R0914", "severity": 4, "message": "[too-many-locals] Too many local variables (18/15)", "range": { "end": { "character": 81, "line": 24 }, "start": { "character": 0, "line": 24 } }, "source": "pylint" }, { "code": "C0103", "severity": 3, "message": "[invalid-name] Variable name "m" doesn't conform to snake_case naming style", "range": { "end": { "character": 43, "line": 58 }, "start": { "character": 16, "line": 58 } }, "source": "pylint" }, { "code": "C0103", "severity": 3, "message": "[invalid-name] Variable name "f" doesn't conform to snake_case naming style", "range": { "end": { "character": 43, "line": 58 }, "start": { "character": 19, "line": 58 } }, "source": "pylint" }, { "code": "R1702", "severity": 4, "message": "[too-many-nested-blocks] Too many nested blocks (6/5)", "range": { "end": { "character": 36, "line": 47 }, "start": { "character": 4, "line": 47 } }, "source": "pylint" }, { "code": "C0103", "severity": 3, "message": "[invalid-name] Variable name "c" doesn't conform to snake_case naming style", "range": { "end": { "character": 39, "line": 77 }, "start": { "character": 20, "line": 77 } }, "source": "pylint" }, { "code": "C0103", "severity": 3, "message": "[invalid-name] Argument name "df" doesn't conform to snake_case naming style", "range": { "end": { "character": 22, "line": 86 }, "start": { "character": 0, "line": 86 } }, "source": "pylint" }, { "code": "C0111", "severity": 3, "message": "[missing-docstring] Missing function docstring", "range": { "end": { "character": 22, "line": 86 }, "start": { "character": 0, "line": 86 } }, "source": "pylint" }, { "code": "C0103", "severity": 3, "message": "[invalid-name] Variable name "y" doesn't conform to snake_case naming style", "range": { "end": { "character": 25, "line": 87 }, "start": { "character": 8, "line": 87 } }, "source": "pylint" }, { "code": "R0914", "severity": 4, "message": "[too-many-locals] Too many local variables (20/15)", "range": { "end": { "character": 65, "line": 94 }, "start": { "character": 0, "line": 94 } }, "source": "pylint" }, { "code": "C0103", "severity": 3, "message": "[invalid-name] Variable name "FIELDS" doesn't conform to snake_case naming style", "range": { "end": { "character": 37, "line": 96 }, "start": { "character": 4, "line": 96 } }, "source": "pylint" }, { "code": "C0103", "severity": 3, "message": "[invalid-name] Variable name "CSOL_LIST" doesn't conform to snake_case naming style", "range": { "end": { "character": 35, "line": 98 }, "start": { "character": 4, "line": 98 } }, "source": "pylint" }, { "code": "C0103", "severity": 3, "message": "[invalid-name] Variable name "CSOL_LIST" doesn't conform to snake_case naming style", "range": { "end": { "character": 49, "line": 104 }, "start": { "character": 4, "line": 104 } }, "source": "pylint" }, { "code": "W0632", "severity": 2, "message": "[unbalanced-tuple-unpacking] Possible unbalanced tuple unpacking with sequence defined at line 47: left side has 3 label(s), right side has 0 value(s)", "range": { "end": { "character": 45, "line": 116 }, "start": { "character": 12, "line": 116 } }, "source": "pylint" }, { "code": "C1801", "severity": 3, "message": "[len-as-condition] Do not use len(SEQUENCE) to determine if a sequence is empty", "range": { "end": { "character": 51, "line": 138 }, "start": { "character": 36, "line": 138 } }, "source": "pylint" }, { "code": "W1201", "severity": 2, "message": "[logging-not-lazy] Specify string format arguments as logging function parameters", "range": { "end": { "character": 25, "line": 157 }, "start": { "character": 12, "line": 157 } }, "source": "pylint" }, { "code": "C0103", "severity": 3, "message": "[invalid-name] Variable name "f" doesn't conform to snake_case naming style", "range": { "end": { "character": 57, "line": 161 }, "start": { "character": 54, "line": 161 } }, "source": "pylint" }, { "code": "C0103", "severity": 3, "message": "[invalid-name] Variable name "f" doesn't conform to snake_case naming style", "range": { "end": { "character": 62, "line": 174 }, "start": { "character": 59, "line": 174 } }, "source": "pylint" }, { "code": "W1201", "severity": 2, "message": "[logging-not-lazy] Specify string format arguments as logging function parameters", "range": { "end": { "character": 23, "line": 185 }, "start": { "character": 12, "line": 185 } }, "source": "pylint" }, { "code": "W0612", "severity": 2, "message": "[unused-variable] Unused variable 'header'", "range": { "end": { "character": 18, "line": 109 }, "start": { "character": 4, "line": 109 } }, "source": "pylint" }, { "severity": 2, "message": "local variable 'header' is assigned to but never used", "range": { "end": { "character": 27, "line": 128 }, "start": { "character": 12, "line": 128 } }, "source": "pyflakes" }, { "range": { "end": { "character": 22, "line": 0 }, "start": { "character": 0, "line": 0 } }, "severity": 2, "message": "D100: Missing docstring in public module", "code": "D100", "source": "pydocstyle" }, { "range": { "end": { "character": 22, "line": 86 }, "start": { "character": 0, "line": 86 } }, "severity": 2, "message": "D103: Missing docstring in public function", "code": "D103", "source": "pydocstyle" }, { "range": { "end": { "character": 22, "line": 94 }, "start": { "character": 0, "line": 94 } }, "severity": 2, "message": "D400: First line should end with a period (not 'y')", "code": "D400", "source": "pydocstyle" }, { "severity": 2, "code": "E501", "message": "E501 line too long (117 > 88 characters)", "range": { "end": { "character": 118, "line": 61 }, "start": { "character": 88, "line": 61 } }, "source": "pycodestyle" }, { "severity": 2, "code": "E501", "message": "E501 line too long (139 > 88 characters)", "range": { "end": { "character": 140, "line": 63 }, "start": { "character": 88, "line": 63 } }, "source": "pycodestyle" }, { "severity": 2, "code": "E501", "message": "E501 line too long (97 > 88 characters)", "range": { "end": { "character": 98, "line": 76 }, "start": { "character": 88, "line": 76 } }, "source": "pycodestyle" } ], "uri": "file:///c:/PATH HIDDENmain_bpo.py" }

[Trace - 06:56:23 AM] Sending request 'textDocument/codeAction - (426)'. Params: { "textDocument": { "uri": "file:///c:/PATH HIDDENmain_bpo.py" }, "range": { "start": { "line": 160, "character": 0 }, "end": { "line": 160, "character": 13 } }, "context": { "diagnostics": [] } }

[Trace - 06:56:30 AM] Received response 'textDocument/hover - (393)' in 310ms. Result: null

[Trace - 06:56:45 AM] Received response 'textDocument/hover - (394)' in 739ms. Result: null

[Trace - 06:56:59 AM] Received response 'textDocument/hover - (395)' in 78ms. Result: null

[Trace - 06:57:14 AM] Received response 'textDocument/hover - (396)' in 92ms. Result: null

[Trace - 06:57:14 AM] Received response 'textDocument/hover - (397)' in 802ms. Result: { "contents": "" }

[Trace - 06:57:14 AM] Received response 'textDocument/signatureHelp - (398)' in 801ms. Result: { "signatures": [] }

[Trace - 06:57:14 AM] Received response 'textDocument/codeAction - (399)' in 539ms. Result: []

[Trace - 06:57:14 AM] Received response 'textDocument/codeAction - (400)' in 974ms. Result: []

[Trace - 06:57:14 AM] Received response 'textDocument/hover - (401)' in 972ms. Result: { "contents": "" }

[Trace - 06:57:14 AM] Received response 'textDocument/hover - (402)' in 971ms. Result: { "contents": "warning(msg, \args, \\*kwargs)\n\nLog 'msg % args' with severity 'WARNING'.\n\nTo pass exception information, use the keyword argument exc_info with\na true value, e.g.\n\nlogger.warning("Houston, we have a %s", "bit of a problem", exc_info=1)" }

[Trace - 06:57:29 AM] Received response 'textDocument/hover - (403)' in 430ms. Result: null

[Trace - 06:57:29 AM] Received response 'textDocument/codeAction - (404)' in 28ms. Result: []

[Trace - 06:57:43 AM] Received response 'textDocument/hover - (405)' in 304ms. Result: null

[Trace - 06:57:57 AM] Received response 'textDocument/hover - (406)' in 729ms. Result: null

[Trace - 06:58:12 AM] Received response 'textDocument/hover - (407)' in 783ms. Result: null

[Trace - 06:58:27 AM] Received response 'textDocument/hover - (408)' in 196ms. Result: null

[Trace - 06:58:42 AM] Received response 'textDocument/hover - (409)' in 878ms. Result: null

[Trace - 06:58:42 AM] Received response 'textDocument/signatureHelp - (410)' in 582ms. Result: { "activeParameter": 1, "activeSignature": 0, "signatures": [ { "parameters": [ { "documentation": null, "label": "msg" }, { "documentation": null, "label": "args" }, { "documentation": null, "label": "exc_info" }, { "documentation": null, "label": "stack_info" }, { "documentation": null, "label": "extra" }, { "documentation": null, "label": "kwargs" } ], "documentation": "Log 'msg % args' with severity 'WARNING'.\n\nTo pass exception information, use the keyword argument exc_info with\na true value, e.g.\n\nlogger.warning("Houston, we have a %s", "bit of a problem", exc_info=1)", "label": "warning(msg: Any, *args: Any, exc_info: _ExcInfoType=..., stack_info: bool=..., extra: Optional[Dict[str, Any]]=..., **kwargs: Any) -> None" } ] }

[Trace - 06:58:57 AM] Received response 'textDocument/hover - (411)' in 585ms. Result: null

[Trace - 06:58:57 AM] Received response 'textDocument/hover - (412)' in 567ms. Result: { "contents": "" }

[Trace - 06:58:57 AM] Received response 'textDocument/hover - (413)' in 562ms. Result: { "contents": "" }

[Trace - 06:58:57 AM] Received response 'textDocument/hover - (414)' in 552ms. Result: { "contents": "" }

[Trace - 06:58:57 AM] Received response 'textDocument/hover - (415)' in 548ms. Result: { "contents": "" }

[Trace - 06:58:57 AM] Received response 'textDocument/hover - (416)' in 539ms. Result: { "contents": "" }

[Trace - 06:58:57 AM] Received response 'textDocument/hover - (417)' in 531ms. Result: { "contents": "" }

[Trace - 06:58:57 AM] Received response 'textDocument/hover - (418)' in 523ms. Result: { "contents": "" }

[Trace - 06:58:57 AM] Received response 'textDocument/hover - (419)' in 515ms. Result: { "contents": "" }

[Trace - 06:58:57 AM] Received response 'textDocument/hover - (420)' in 506ms. Result: { "contents": "" }

[Trace - 06:58:57 AM] Received response 'textDocument/hover - (421)' in 498ms. Result: { "contents": "" }

[Trace - 06:58:57 AM] Received response 'textDocument/codeAction - (422)' in 285ms. Result: []

[Trace - 06:58:57 AM] Received response 'textDocument/documentHighlight - (423)' in 283ms. Result: null

[Trace - 06:58:57 AM] Received response 'textDocument/hover - (424)' in 50ms. Result: { "contents": "" }

[Trace - 06:58:57 AM] Received response 'textDocument/signatureHelp - (425)' in 49ms. Result: { "signatures": [] }

[Trace - 06:58:57 AM] Received response 'textDocument/codeAction - (426)' in 340ms. Result: []


</details>

elbaulp avatar Aug 21 '19 08:08 elbaulp

Please provide a simple code example that generates this error.

ccordoba12 avatar Aug 21 '19 09:08 ccordoba12

Please provide a simple code example that generates this error.

I got the same error in pyls (0.32.0), but did not freeze.

A simple Django project:

.
├── README.md
├── manage.py
├── movieTest
│   ├── __init__.py
│   ├── admin.py
│   ├── apps.py
│   ├── migrations
│   ├── models.py
│   ├── tests.py
│   ├── urls.py
│   └── views.py
└── myWeb
    ├── __init__.py
    ├── asgi.py
    ├── settings.py
    ├── urls.py
    └── wsgi.py

I didn't do too much coding, the error mentioned in the title occurs when I write code in movieTest /models.py to trigger auto-completion:

from django.db import models

# Create your models here.

class Movie(models.Model):
    """Movie"""
    name = models.CharField(max_length=50)
    date = models.DateField()
    mark = models.FloatField()
    some = models.    # The error occurred at this point

    def __str__(self):
        return self.nama
2020-05-14 21 17 39

ykqmain avatar May 14 '20 13:05 ykqmain