https://bugs.kde.org/show_bug.cgi?id=474887

            Bug ID: 474887
           Summary: Incorrect LSP Server Selection in Kate for added
                    languages
    Classification: Applications
           Product: kate
           Version: 23.08.0
          Platform: Neon
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: part
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: morisset.hug...@gmail.com
  Target Milestone: ---

Created attachment 161877
  --> https://bugs.kde.org/attachment.cgi?id=161877&action=edit
settings

SUMMARY
I encountered an issue when configuring an LSP server for a Python-like
language named "Please" in the Kate text editor. 
I added a new filetype with correct file extensions with python syntax
highlighting.
And then added a corresponding LSP server with `"highlightingModeRegex":
"^Please$"`.
Despite adding a new filetype for syntax highlighting and configuring the LSP
client with the "highlightingModeRegex": "^Please$" entry, Kate continues to
launch the Python LSP server instead of the one I configured.

A good solution would be to allow LSP Client to match against file extensions
directly.

STEPS TO REPRODUCE
1.  Add a new filetype mode with python syntax highlighting
2.  Add an LSP server matching the filetype

OBSERVED RESULT
Python's LSP (pylsp) is launched

EXPECTED RESULT
Filetype's configured LSP should be launched (please_lsp_helper.sh in the
screenshot) 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kde neon
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION

(This is similar to Bug 447185, however this one is about kate running the
wrong lsp)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to