Bug 509537 - Bash LSP server fails to start (Flatpak)
Summary: Bash LSP server fails to start (Flatpak)
Status: REPORTED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.08.1
Platform: Pop!_OS Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-15 23:02 UTC by Christoph Siebenbrunner
Modified: 2025-09-15 23:02 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Siebenbrunner 2025-09-15 23:02:47 UTC
SUMMARY

The LSP server for Bash fails to start with default settings, with bash-language-server installed through npm managed by nvm.

STEPS TO REPRODUCE

1. Install nvm
2. Install npm
3. npm i -g bash-language-server
4. Start Kate with default LSP settings, open a .sh file

OBSERVED RESULT

bash-language-server not found

(German language output):
[LSP-Client Warnung] Die ausführbare Server-Programmdatei wurde nicht gefunden: bash-language-server
Bitte überprüfen Sie den Pfad zur Programmdatei
Siehe auch https://github.com/bash-lsp/bash-language-server für Informationen zur Installation und Details

EXPECTED RESULT

Bash LSP server starts

SOFTWARE/OS VERSIONS

Linux: Pop!_OS 22.04 LTS x86_64
Kate version 25.08.1 (Flatpak)
Node version v24.8.0 (via nvm)

ADDITIONAL INFORMATION

* bash-language-server is available in system shell
* LSP for Python works in Kate on same system

The following tweaks did not work:

* Add Node.js binary directory (~/.nvm/versions/node/v24.8.0/bin/) to PATH through Kate settings or through Flatseal (same error)
* snap install bash-language-server --classic instead of install via nvm (error: server shut down unexpectedly, immediately after start)