You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect pylsp version detection with Python 3.14 causes false "LSP Server not installed" warning #148
Incorrect pylsp version detection with Python 3.14 causes false "LSP Server not installed" warning
Environment
Operating system: Xubuntu 26.04, Linux x86_64
Apache NetBeans: 31
NetBeans Python Plugin: 1.9.91-310
Python: 3.14.4
python-lsp-server: 1.15.0
Description
When creating a new Python project, NetBeans displays the following error message:
LSP Server not installed
Under Tools → Python Platforms → LSP Server, the current version is displayed as UNKNOW, although pylsp and its extensions are marked as installed.
However, LSP server processes are running and context-sensitive code completion works correctly.
Investigation
Running the following command:
python -m pylsp --version
produces:
python -m pylsp v1.15.0
The output is written to stdout, not stderr.
The NetBeans log repeatedly contains:
SEVERE [org.netbeans.modules.python.PythonUtility]:
python -m pylsp v1.15.0
I inspected the bytecode of the installed plugin using javap -p -c.
The method PythonUtility.getServerVersion() checks whether the command output starts with __main__.py. If it does not, the output is logged at SEVERE level and the method returns UNKNOW.
Suggested fix
Replace the existing condition:
if (!output.startsWith("__main__.py")) {
with:
if (!output.startsWith("__main__.py")
&& !output.startsWith("python -m pylsp")) {
This should preserve compatibility with the previous output format while accepting the output generated by the current Python and pylsp combination.
A more robust long-term solution would be to detect the version independently of the program name, for example by querying Python package metadata.
Expected behaviour
The installed pylsp version should be displayed correctly.
A working LSP server should not trigger an installation warning.
Valid version output should not be logged at SEVERE level.
The incorrect version detection has been confirmed by inspecting the installed plugin's bytecode. Whether fixing this method also eliminates the installation warning remains to be verified.
Activity
github-actions commentedon Nov 26, 2026
Thanks for reporting this issue, we will take a look on ASAP