This repository was archived by the owner on Dec 24, 2020. It is now read-only.
This repository was archived by the owner on Dec 24, 2020. It is now read-only.
Jump To Definition does not work for modules inside site-packages #144
Open
Description
When calling using jump to definition inside of a file in any of the site-packages directories I get: Definition provider not found for current document
.
Jumping to/from modules inside of the project works fine, but once I go to any definition outside of the project I get the above error.
The following MPLS output shows the request and response for the initial jump that sends me into the Django site-packages, following requests are not sent to the MPLS server at all and just result in
Definition provider not found for current document
[Trace - 12:11:16 PM] Sending request 'textDocument/definition - (1)'.
Params: {
"textDocument": {
"uri": "file:///[REDACTED]/user_auth/models.py"
},
"position": {
"line": 4,
"character": 22
}
}
[Trace - 12:11:16 PM] Received notification 'python/reportProgress'.
Params: [
"Analyzing in background, 130 items left..."
]
[Trace - 12:11:17 PM] Received notification 'telemetry/event'.
Params: {
"EventName": "python_language_server/rpc.request",
"Properties": {
"method": "textDocument/definition",
"plsVersion": "0.5.30.0"
},
"Measurements": {
"elapsedMs": 338.8661
}
}
[Trace - 12:11:17 PM] Received response 'textDocument/definition - (1)' in 392ms.
Result: [
{
"uri": "file:///home/dissonance/.local/lib/python3.8/site-packages/django/db/models/__init__.py",
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 0
}
}
}
]
Metadata
Metadata
Assignees
Labels
No labels