[jedit:plugin-central-submission] #1076 LSP

Damien via jEdit-devel <[email protected]>
Newsgroups gmane.editors.jedit.devel
Message-ID </p/jedit/plugin-central-submission/1076/33aed4abcd9d3c97d01f3e34f48c4b0b18485a12.plugin-central-submission@jedit.p.sourceforge.net>
I just took a quick look at capturing the subprocess output when the server fails to start correctly, but unfortunately this looks pretty tricky. Anything printed to standard error should already be logged, and anything printed to standard output is used by lsp4j in its message processing. So if a subprocess prints an error message to standard output and then exits, it is not available to be read directly, since lsp4j is attempting to use it in its message processing, and doesn't expose it directly.

I added some additional logging to help users debug issues like yours by suggesting that they run the command directly, since any solution to get the output directly is going to end up being pretty hacky. We would either need to tee the output for the entirety of the program (likely only keeping the last few lines for potential error-reporting purposes), or automatically restart the server with direct stdout control. Neither solution feels great to me, so I just went with the simplest option in the meantime.


---

**[plugin-central-submission:#1076] LSP**

**Status:** open
**Group:** None
**Created:** Wed Jun 14, 2023 02:09 AM UTC by Damien
**Last Updated:** Mon Aug 07, 2023 01:36 AM UTC
**Owner:** nobody


**Announcement:** Initial Plugin Central release
**Name:** LSP
**Version:** 0.1

**Requirements:**
    - JDK 11
    - jEdit 5.5.0
    - plugin: ErrorList 2.4.0
    - plugin: SideKick 1.8
    - plugin: ProjectViewer 3.6
    - bundled library: org.eclipse.lsp4j 0.18.0
    - bundled library: org.eclipse.lsp4j.jsonrpc 0.18.0
    - bundled library: org.eclipse.xtext.xbase.lib 2.28.0
    - bundled library: gson 2.9.1
    - bundled library: guava 31.1-jre
    - bundled library: commonmark 0.20.0
    - bundled library: commons-compress 1.23.0

All bundled libraries are downloaded from Maven Central using Ivy.

**Source Code:** https://git.sr.ht/~damien/jedit-lsp/tree/v0.1

**Short Description:** This plugin turns jEdit into a Language Server Protocol (LSP) client, which provides a number of IDE-like features by running and interacting with LSP servers.

**Long Description:**
~~~
<html>
        <p>This plugin turns jEdit into a Language Server Protocol (LSP) client, which provides a number of IDE-like features by running and interacting with LSP servers.</p>
        <p>For more information on the protocol, see: https://microsoft.github.io/language-server-protocol/</p>
        <p>To see a list of available LSP servers, see: https://microsoft.github.io/language-server-protocol/implementors/servers/</p>
        <p>The LSP protocol supports many, many features, and this plugin only implements a tiny subset of them. Support for more can be added easily, limited primarily by time and effort.</p>
</html>
~~~


---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/jedit/plugin-central-submission/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/plugin-central-submission/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

-- 
-----------------------------------------------
jEdit Developers' List
[email protected]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.