`java.io.IOException` is thrown when the TypeScript editor module is opened
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 25 release candidate
### What happened
`java.io.IOException` is thrown when the TypeScript editor module is opened.
log
```
java.io.IOException: Stream closed
at java.base/java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:445)
at java.base/java.io.OutputStream.write(OutputStream.java:164)
at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:125)
at java.base/java.io.BufferedOutputStream.implFlush(BufferedOutputStream.java:251)
at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:245)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageConsumer.consume(StreamMessageConsumer.java:69)
Caused: org.eclipse.lsp4j.jsonrpc.JsonRpcException
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageConsumer.consume(StreamMessageConsumer.java:72)
[catch] at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.notify(RemoteEndpoint.java:126)
at org.eclipse.lsp4j.jsonrpc.services.EndpointProxy.invoke(EndpointProxy.java:88)
at jdk.proxy27/jdk.proxy27.$Proxy88.initialized(Unknown Source)
at org.netbeans.modules.lsp.client.LSPBindings.buildBindings(LSPBindings.java:367)
at org.netbeans.modules.lsp.client.LSPBindings.getBindingsImpl(LSPBindings.java:216)
at org.netbeans.modules.lsp.client.LSPBindings.ensureServerRunning(LSPBindings.java:175)
at org.netbeans.modules.lsp.client.bindings.CustomIndexerImpl.lambda$index$0(CustomIndexerImpl.java:75)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1403)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2018)
```
### Language / Project Type / NetBeans Component
TypeScirpt Editor
### How to reproduce
1. Open `netbeans/webcommon/typescript.editor` module
2. The above error is shown in the Notification window
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Ubuntu 22.04
### JDK
OpenJDK 19
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Reproduce the error by opening the netbeans/webcommon/typescript.editor module, then inspect LSPBindings.buildBindings and ensureServerRunning around the reported stack-trace lines. Trace why initialized reaches a closed process stream and verify that opening the module no longer reports the IOException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100