Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    gayanper
    @gayanper
    Diagnostics run as part of the intellij inspection daemon. I cannot remember the exact name of that daemon. But some times it takes few milis to get the actuall message since when we receive new diag we run the daemon again. So may be the issue is with how we push diags to intellij daemon.
    Cary Robbins
    @carymrobbins
    @gayanper Maybe the LSP server is reading file contents from disk but IntelliJ hasn't yet saved the file?
    Cary Robbins
    @carymrobbins
    @gayanper I think the thing you are talking about is DaemonCodeAnalyzer?
    Cary Robbins
    @carymrobbins
    image.png
    I see this sometimes too, I'm not sure what's going on
    Maybe the LSP server is crashing?
    May 26, 2020 12:51:01 PM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint notify
    WARNING: Failed to send notification message.
    org.eclipse.lsp4j.jsonrpc.JsonRpcException: java.io.IOException: Stream closed
        at org.eclipse.lsp4j.jsonrpc.json.StreamMessageConsumer.consume(StreamMessageConsumer.java:72)
        at org.wso2.lsp4intellij.client.languageserver.wrapper.MessageHandler.lambda$apply$0(MessageHandler.java:45)
        at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.notify(RemoteEndpoint.java:126)
        at org.eclipse.lsp4j.jsonrpc.services.EndpointProxy.invoke(EndpointProxy.java:88)
        at com.sun.proxy.$Proxy126.didSave(Unknown Source)
        at org.wso2.lsp4intellij.client.languageserver.requestmanager.DefaultRequestManager.didSave(DefaultRequestManager.java:362)
        at org.wso2.lsp4intellij.editor.EditorEventManager.lambda$documentSaved$36(EditorEventManager.java:1285)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
    Caused by: java.io.IOException: Stream closed
        at java.base/java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:442)
        at java.base/java.io.OutputStream.write(OutputStream.java:157)
        at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81)
        at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:142)
        at org.eclipse.lsp4j.jsonrpc.json.StreamMessageConsumer.consume(StreamMessageConsumer.java:69)
        ... 11 more
    Andrei Biasprozvanny
    @biaspro
    hi guys, maybe you know whether there is a working example of lsp4intellij working with Intellij 2020.1?
    2 replies
    gayanper
    @gayanper
    I have for sts4 tooling
    But it only uses few LSP endpoints
    Like symbols and completions
    Rasika Perera
    @rasika
    gayanper
    @gayanper
    There are two PR can some one review ?
    1 reply
    gayanper
    @gayanper
    Anyone thought about starting DAP client. I might be able to support if there more people interested in it. And the next question is where to build it ? Inside this same repo ?
    Trias
    @Trias
    Hey Guys! wanted to say hi..I am developing an internal plugin for intellij, using your library.
    Trias
    @Trias
    Is there a recommended way to setup the library such that you can debug/edit it as you are using it in a custom plugin? This would help me to identify issues more quickly.
    gayanper
    @gayanper
    You can run your plugin in debug mode and step into this library code to see what happening
    Trias
    @Trias
    thanks! I figured this out, but also wanted to make changes to the library and see how the changes affect my plugin/the ide. I found a way but it is rather "hacky". I'm somewhat new to Java so maybe i don't yet know / follow best practices :)
    2 replies
    Trias
    @Trias
    is it possible to replace org.wso2.lsp4intellij.client.languageserver.requestmanager.DefaultRequestManager with your own implementation, which adds, for example extra methods or additional logging? it appears from the code that this would be possible, maybe by some setting in the plugin.xml?
    gayanper
    @gayanper
    You need to provide your own LSPExtensionManager
    There is a API to register it in the IntellijLanuageClient
    Trias
    @Trias
    thanks that helped me :)
    gayanper
    @gayanper
    👍
    Trias
    @Trias
    would it be possible to restart the lsp server from the ide, even if it had not crashed? I tried to change the code in LanguageServerWrapper but unfortunately this freezes the IDE
    gayanper
    @gayanper
    Not that i know if
    *of
    Trias
    @Trias
    ok, maybe i will find out some day how to do this ;)
    gayanper
    @gayanper
    Agree it should be a else if , please report a issue for this.
    gayanper
    @gayanper
    Hi Friends from WSO2, do we have any plans for more development of the library ? Any new releases planned ?
    Nipuna Ransinghe
    @NipunaRanasinghe
    Hi @gayanper. Currently, this library is more likely in maintenance mode(we have a vacancy for a dedicated developer which is yet to be filled) but all the community contributions for any new features/improvements are always welcome! Regarding the releases, we are planning on a major release as there's been quite a few improvements and fixes introduced after the last release. ETA will be within this week.
    gayanper
    @gayanper
    Great. Will be looking forward for the release Nipuna
    Jianfeng Chen
    @ginfung
    Hello everyone, I am exploring how to extend the LSPExtensionManager. Currently we already have a lsp-server, which is able to sending a customed request.
    I want to know how can implement the LSPExtensionManager so that I can accept the customed request and handle it in the lspclient?