Checks
Reproducible example
pixi-global.toml:
[envs.python-lsp-server-base]
channels = ["conda-forge"]
dependencies = { python-lsp-server-base = "*" }
exposed = { pylsp = "pylsp" }
shell-hook:
eval "$(pixi shell-hook --shell=zsh --manifest-path=/path/to/pixi.toml)"
Issue description
I installed different Python LSP servers, e.g. python-lsp-server (but also others), using pixi global install .... Additionally, I "activated" a pixi environment using pixi shell-hook .... I would expect the LSP server to find the installed packages in the pixi environment for auto-completion. This is, however, not the case although the LSP server is running. If I install the LSP servers using uv tool install ... (with --python=/usr/bin/python3.12) or if I add the LSP servers to the pixi environment, everything works as expected. The problem persists with pixi shell instead of pixi shell-hook. Therefore, I think that this isn't a problem of the LSP servers but of the combination of pixi global and pixi shell-hook/shell.
Expected behavior
See above.
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using
pixi --version.Reproducible example
pixi-global.toml:
shell-hook:
Issue description
I installed different Python LSP servers, e.g.
python-lsp-server(but also others), usingpixi global install .... Additionally, I "activated" a pixi environment usingpixi shell-hook .... I would expect the LSP server to find the installed packages in the pixi environment for auto-completion. This is, however, not the case although the LSP server is running. If I install the LSP servers usinguv tool install ...(with--python=/usr/bin/python3.12) or if I add the LSP servers to the pixi environment, everything works as expected. The problem persists withpixi shellinstead ofpixi shell-hook. Therefore, I think that this isn't a problem of the LSP servers but of the combination ofpixi globalandpixi shell-hook/shell.Expected behavior
See above.