39 questions
2
votes
2
answers
2k
views
How to import symbol under cursor from another Python module using Neovim & LSP
I am a Python developer and would like to use Neovim as my main code editor. I have managed to configure auto-completion, linting and auto-formatting using lspconfig, mason, null-ls, nvim-cmp and ...
1
vote
1
answer
1k
views
Visual Studio Code greyed out settings [duplicate]
About 1 hour ago, the YAPF style formatter broke in my vscode. I noticed that the following settings are all now "greyed-out" in settings.json
"python.linting.enabled": true,
...
1
vote
0
answers
363
views
Debugging pygls language server extensions in VSCode
I am working on Python-based language server (for a domain-specific lanaguage) and VSCode extension using pygls. I have followed the steps in the README and am trying to follow the tutorial. The ...
1
vote
0
answers
459
views
why pylsp is not returning any response?
I started pylsp with
pylsp --verbose --tcp --host 127.0.0.1 --port 9999
Now I connected to it with following python code:
import json
import socket
def send_request(request):
with socket.socket(...
1
vote
1
answer
1k
views
Use existing language server from VS Code extension
I am writing a VS Code extension that will use functionality provided by a language server.
Am I required to bundle the language server into my extension?
Is there any way to use language servers ...
2
votes
2
answers
3k
views
Configure Pyright to use Ruff as a linter
I use Zed editor with Pyright and it works like a charm. However I want to use Ruff linter with Pyright but I don't find any documentation about how to achieve this for Zed editor. Do I have to ...
1
vote
1
answer
1k
views
VSCodium Numpy autocompletion not working
When I start typing a line, for example plt.subp it will show suggestions from matplotlib.pyplot, if I have imported the library above. This is the expected behaviour. The problem is that this is not ...
0
votes
1
answer
144
views
debugging and odoo 14 project with dap mode
I could use some help in setting up a solution for debugging a Odoo 14 project with Emacs dap mode
I have debug py in the dev dependencies of my odoo project but what am I supposed to do with it ?
I ...
0
votes
0
answers
39
views
Given modern python language servers, is there a way to enumerate exception types that might get raised?
Given Python's dynamic nature, it's historically been really hard to work out what exception types could get raised from a given code path
Nowadays, language servers (e.g., VSCode’s python) can ...
5
votes
2
answers
10k
views
how to disable linter in pylsp?
My neovim(0.6.1) use nvim-lint manage pylint, use pylsp for completion.
When edit a python file, use numpy, scipy etc, the code competion, hover, signature is slow, and cpu use 100%. The code have ...
1
vote
0
answers
2k
views
Can `pyright` LSP navigate to different module?
Is pyright goto definition command supposed to jump into the different modules?
I import python class like this from a.b.c import Foo.
When my cursor is on a = Foo() and I call lua vim.lsp.buf....
2
votes
1
answer
1k
views
python-language-server config file location
I'm trying to use flake8 as the default python linter using python-language-server on neovim v0.5.
python-lsp documentation says to set pylsp.configurationSources to ['flake8'], but doesn't specify ...
2
votes
1
answer
1k
views
VS Code not showing useful Python code snippets
Visual Studio Code is not showing Python code snippets anymore. I don't know if this is a bug from Python Language Server (which I have already tried Jedi, Microsoft and Pylance) or a VSCode problem.
...
0
votes
2
answers
239
views
code completion / language server for embedded IronPython scripts
I have an application that exposes some c# objects to an embedded IronPython interpreter like this:
using IronPython.Hosting;
namespace ironpy
{
public class Foo
{
public void bar(...
0
votes
1
answer
6k
views
"error: command 'gcc' failed with exit status 1" when trying to install python-language-server [duplicate]
I've below pip installed in my system
$ pip --version
pip 19.3.1 from /usr/lib/python3.8/site-packages/pip (python 3.8)
python version installed in my system is -
$ python --version
...
0
votes
1
answer
828
views
vscode python unresolved reference to module in subfolder when using venv and language server
I've opted to use the Python Language Server instead of Jedi.
My project root folder has a subfolder named "cdk_app", and in that folder is file cdk_app_stack.py. That file defines class "...
0
votes
1
answer
3k
views
How to use python language server for vscode in specific path?
I'm using ArchLinux and want to use Python Language Server with vscode to write python codes.
As I search in aur, I found microsoft-python-language-server which download and build the language server ...
5
votes
3
answers
5k
views
Locally disable warnings of Python Language Server in Visual Studio Code
I have recently installed Python Language Server in Visual Studio Code.
I sometimes have some warnings that I want to locally disabled
For example, let's assume I have the following code:
import ...
3
votes
0
answers
445
views
VS Code Language Server Linting Incorrect
VS Code (and in particular the MS Python Language Server) shows lot's of unnecessary errors.
These appear as it lints while I type, but then they persist afterwards.
For example, after typing self....
4
votes
2
answers
8k
views
Implementing Atom with Python Language Server
I am new here. I am trying to setup the python IDE on Atom following the instruction offered by Atom.io.
https://atom.io/packages/ide-python
There is an instruction:
"Depending on your Python ...