Package Details: python-lsp-server 1.2.1-1

Git Clone URL: https://aur.archlinux.org/python-lsp-server.git (read-only, click to copy)
Package Base: python-lsp-server
Description: Fork of the python-language-server project, maintained by the Spyder IDE team and the community
Upstream URL: https://github.com/python-lsp/python-lsp-server
Licenses: MIT
Submitter: Rogach
Maintainer: Rogach
Last Packager: Rogach
Votes: 6
Popularity: 1.38
First Submitted: 2021-05-15 06:42
Last Updated: 2021-08-20 14:28

Latest Comments

1 2 Next › Last »

OJFord commented on 2021-08-01 18:59

@Rogach @GeoffreyFrogeye

Sorry for my delay, I wasn't in a position (/was too lazy) to reproduce at the time, so I didn't comment wanting to be more sure of what I was saying. GF's reproduction is likely the same - I'm also python-lsp-black, it just wasn't clear to me that was the originator. (And I did try grepping that & mypy & isort, but couldn't find it either, as you said; because, now I know, it was via python-tomli of course.)

Heh, hard to blame that removal to be honest - my first reaction on searching for what it was was 'huh, weird that's needed at runtime'!

Looks like it's fixed in 1.1.0-2: https://bugs.archlinux.org/index.php?do=details&action=details.addvote&task_id=71618

Rogach commented on 2021-07-31 13:31

@GeoffreyFrogeye @OJFord

Well, what do you know. Seems that the dependency on flit-core was explicitly removed from arch build of the package, because it's "not needed at runtime": https://github.com/archlinux/svntogit-packages/commit/ba50bae382355a7170580ad7fbe3617e6aa94a01#diff-3e341d2d9c67be01819b25b25d5e53ea3cdf3a38d28846cda85a195eb9b7203a

Rogach commented on 2021-07-31 13:29

@GeoffreyFrogeye @OJFord

I think that python-tomli (https://archlinux.org/packages/extra/any/python-tomli/) package is missing python-flit-core dependency: https://github.com/hukkin/tomli/blob/1759a41480868fd2d60ab68f68b5439aada4e5e5/pyproject.toml#L2

Probably the best approach would be to add a bug report about this missing dependency, against python-tomli package.

GeoffreyFrogeye commented on 2021-07-30 17:30

I get the same issue in my editor (NeoVim with nvim-lspconfig): pkg_resources.DistributionNotFound: The 'flit-core<4,>=3.2.0' distribution was not found and is required by tomli. I'm not sure how to trigger it standalone though.

I see the following dependency chain (read ← as "is a dependency of"): python-tomlipython-blackpython-lsp-black. Uninstalling python-lsp-black fixes the issue. So the issue probably isn't in this package, but it's hard to see where exactly since it only manifests in the context of python-lsp-server. python-black works correctly standalone.

Rogach commented on 2021-07-29 14:26

@OJFord Are you sure? Where do you see this error?

I grepped the entire python-lsp-server repository for "flit" and found nothing.

OJFord commented on 2021-07-27 10:42

Missing runtime dependency [python-flit-core].

Nathoufresh commented on 2021-05-19 09:37

@Rogach thanks, working fine now

CjK commented on 2021-05-18 15:54

@Rogach Oh, I see, that makes sense. I'm using aurutils, but I guess it doesn't automatically install other aur-packages as dependencies automatically.

Thanks for the tip!

Rogach commented on 2021-05-18 10:41

@CjK Are you using makepkg directly, without AUR helper? python-lsp-jsonrpc is another package from AUR, so you either need to install it manually before installing python-lsp-server, or use AUR helper that handles such dependencies automatically (like yay).

CjK commented on 2021-05-18 10:05

@Nathoufresh I'm getting a different error now while building:

[...]
==> Installing missing dependencies...
error: target not found: python-lsp-jsonrpc
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> python-jedi
  -> python-lsp-jsonrpc
  -> python-pluggy
  -> python-ujson
[...]