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

pylsp stops sending autocomplete info when used with LSP and this plugin. #5

Open
ubaldot opened this issue Jun 7, 2023 · 0 comments

Comments

@ubaldot
Copy link
Owner

ubaldot commented Jun 7, 2023

conda-activate changes the vim runtime and that makes pylsp to stop returning autocomplete information.
Here is a log of Lsp debug messages:

# Logs with the plugin off
06/07/23 09:44:49: Sent {'method': 'textDocument/completion', 'params': {'context': {'triggerCharacter': '.', 'triggerKind': 2}, 'textDocument': {'uri': 'file:///Users/ubaldot/Documents/pylsp_issue.py'}, 'position': {'character': 3, 'line': 7}}}
06/07/23 09:44:50: Received {'id': 3, 'jsonrpc': '2.0', 'result': {'isIncomplete': false, 'items': [{'label': 'abs', 'data': {'doc_uri': 'file:///Users/ubaldot/Documents/pylsp_issue.py'}, 'sortText': 'aabs', 'kind': 18, 'insertText': 'abs'}, {'label': 'absolute', 'data': {'doc_uri': 'file:///Users/ubaldot/Documents/pylsp_issue.py'}, 'sortText': 'aabsolute', 'kind': 18, 'insertText': 'absolute'}, {'label': 'add', 'data': ... PLUS SOME OTHER DATA
06/07/23 09:44:50: Received {'method': 'textDocument/publishDiagnostics', 'jsonrpc': '2.0', 'params': {'uri': 'file:///Users/ubaldot/Documents/pylsp_issue.py', 'diagnostics': []}}
06/07/23 09:44:51: Received {'method': 'textDocument/publishDiagnostics', 'jsonrpc': '2.0', 'params': {'uri': 'file:///Users/ubaldot/Documents/pylsp_issue.py', 'diagnostics': []}}

# Logs with the plugin on
06/07/23 10:00:28: Sent {'method': 'textDocument/completion', 'params': {'context': {'triggerCharacter': '', 'triggerKind': 1}, 'textDocument': {'uri': 'file:///Users/ubaldot/Documents/pylsp_issue.py'}, 'position': {'character': 8, 'line': 7}}}
06/07/23 10:00:28: Received {'id': 8, 'jsonrpc': '2.0', 'result': {'isIncomplete': false, 'items': []}}
06/07/23 10:00:28: Received {'method': 'textDocument/publishDiagnostics', 'jsonrpc': '2.0', 'params': {'uri': 'file:///Users/ubaldot/Documents/pylsp_issue.py', 'diagnostics': []}}

Lsp debug errors is empty.

@ubaldot ubaldot changed the title It makes pylsp to stop sending autocomplete info when used with LSP. pylsp stops sending autocomplete info when used with LSP and this plugin. Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant