Questions tagged [python-language-server]

39 questions
6
votes
1 answer

Neovim built-in LSP shows No code actions available for Python files

When I open a python file, diagnostics seem to be working fine. Then I navigate to a line with a diagnostic error, press the shortcut to invoke code actions ('ca' in my case) and I get a message 'No code actions available'. I have tried…
5
votes
3 answers

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 org.sikuli.script.SikulixForJython from sikuli.Sikuli…
Jean-Francois T.
  • 11,549
  • 7
  • 68
  • 107
5
votes
1 answer

How can I uninstall Python language server (was installed by VS Intellicode extension)

I installed Visual Studio Intellicode extension in my VS Code (which installed Python language server). I did some testing and decided to uninstall Visual Studio Intellicode extension, which I did. But I can't find Python Language server to…
jmatos
  • 507
  • 1
  • 5
  • 17
4
votes
1 answer

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 same lint notion twice. I want disable linter in…
daiweihero
  • 41
  • 1
  • 4
4
votes
2 answers

Trying to Configure pyls through nvim-lspconfig

I'm trying to switch from vscode to neovim. I have coc.nvim configured for pyright but now neovim provides native support for language-server. So I tried to configure python-language-server. I have installed pyls by pip install…
Dhruv Makwana
  • 61
  • 1
  • 7
4
votes
1 answer

Are Language servers remote or local processes

A lot of IDE's and plugins talk about language servers that provide some of the IDE features like auto-completion, linting, and highlighting. Is the language server just some local process that is also running on my machine or is my code being sent…
4
votes
2 answers

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 setup pyls may be installed in a non default folder. In…
Xiao Xiao
  • 41
  • 1
  • 2
3
votes
1 answer

Visual studio code python language server is downloaded every time?

Every time I open a python file in visual studio code after system reboot or shutdown it downloads the language server which is roughly 30 MB, so I'm asking if there is a way to make it do the download only once? I'm running visual studio code…
Masked Man
  • 2,176
  • 2
  • 22
  • 41
3
votes
0 answers

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.var = var [Python] 's' used before definition…
3
votes
1 answer

How to specify correct python version for Python Language Server when using multi-root workspace

Does anyone know how to specify correct Python version when use newest VSCode Python extension(ms-python.python) with multi-root workspace? My global python environment is 2.7 and my VSCode project's directory structure is like below: root ├…
2
votes
0 answers

Cannot disable linting warning from pylsp

I am trying to disable the warning from pylsp that my line is too long. However, evertime I open or save a python file I notice a message that pyflake, mccabe and pycodestyle are completed and I get a warning that some lines are too long. I cannot…
2
votes
0 answers

configuring Emacs as a client for pylsp server

I'd like to try to use Emacs as an LSP client for a Python project (pylsp server, here) I'd like an example about how to configure emacs for such a thing IN particular, I'm interested in how to let Emacs instruct pylsp about where some libraries are
user1632812
  • 431
  • 3
  • 16
2
votes
0 answers

workspace local conf for pylsp

My project has an unusual layout How do I get pylsp to use a configuration that is local to my workspace ? I'd like it to find my libraries, my stub files and my code (all of them are in specific subfolders) On their home page, I find Overall…
user1632812
  • 431
  • 3
  • 16
2
votes
1 answer

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 which file to edit. Where does the…
Eric L
  • 592
  • 1
  • 6
  • 20
2
votes
1 answer

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. It used to show useful code snippets for…
1
2 3