Skip to content

java.io.IOException: Stream closed after upgrading Jetbrains IDE. #7121

Closed as not planned

Description

@BvdMerwe

Before submitting your bug report

Relevant environment info

- OS: macOS
- Continue version: Jetbrains 1.0.33
- IDE version: PhpStorm Build #PS-252.23892.419
- Model: 
- config:
  
name: Continue Config
version: 0.0.1
models:
  - name: Anthropic
    provider: anthropic
    model: claude-4-sonnet-20250514
    apiKey: XXX
    roles:
      - chat
      - edit
      - apply
  - name: Finn mini
    provider: openai
    model: XXX
    apiKey: XXX
    apiBase: XXX
    roles:
      - chat
      - edit
      - apply
  - name: Finn 4o
    provider: openai
    model: XXX
    apiKey: XXX
    apiBase: XXX
    roles:
      - chat
      - edit
  - name: Finn/Claude
    provider: anthropic
    model: anthropic.claude-3-5-sonnet-20240620-v1:0
    apiKey: XXX
    apiBase: XXX
    roles:
      - chat
      - edit
  - name: Finn/Gemini
    provider: openai
    model: XXX
    apiKey: XXX
    apiBase: XXX
    roles:
      - chat
      - edit
context:
  - uses: continuedev/folder-context
  - uses: continuedev/docs-context

Description

When starting up the IDE, continue immediately throws an internal IDE error:

Unhandled exception in Dispatchers.IO

java.io.IOException: Stream closed
	at java.base/java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:447)
	at java.base/java.io.OutputStream.write(OutputStream.java:167)
	at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:125)
	at java.base/java.io.BufferedOutputStream.implFlush(BufferedOutputStream.java:252)
	at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:246)
	at java.base/sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:412)
	at java.base/sun.nio.cs.StreamEncoder.lockedFlush(StreamEncoder.java:214)
	at java.base/sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:201)
	at java.base/java.io.OutputStreamWriter.flush(OutputStreamWriter.java:262)
	at com.github.continuedev.continueintellijextension.continue.process.ContinueProcessHandler$2.invokeSuspend(ContinueProcessHandler.kt:49)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:130)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:613)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:1183)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:778)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:765)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelled}@430c6ce7, Dispatchers.IO]

I am also unable to open the config from the continue plugin at all, and it just shows Loading config when opening any of the model dropdowns.

To reproduce

  1. Be on the latest jetbrains version with the new UI enabled.
  2. Open the IDE
  3. See error reported.

Log output

From the idea.log:


2025-08-13 09:19:44,315 [ 142859]   WARN - #com.github.continuedev.continueintellijextension.continue.CoreMessengerManager - Continue process terminated externally, retrying in 128 seconds
2025-08-13 09:19:44,315 [ 142859]   WARN - #com.github.continuedev.continueintellijextension.continue.CoreMessenger - Restarting Continue process
2025-08-13 09:19:45,128 [ 143672]   WARN - #com.github.continuedev.continueintellijextension.continue.CoreMessenger - Invalid message JSON: NODE_ENV undefined
2025-08-13 09:19:45,483 [ 144027]   WARN - #com.github.continuedev.continueintellijextension.error.ContinueErrorService - Message sent to Sentry: Core process exited with output: node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^


From the core.log:



[info] Starting Continue core...
[2025-08-13T07:17:50] [info] Starting Continue core... 
[2025-08-13T07:17:50] Setup 
[2025-08-13T07:17:50] [binary] Core started 
[info] Starting Continue core...
[2025-08-13T07:18:07] [info] Starting Continue core... 
[2025-08-13T07:18:07] Setup 
[2025-08-13T07:18:07] [binary] Core started 
[info] Starting Continue core...
[2025-08-13T07:18:40] [info] Starting Continue core... 
[2025-08-13T07:18:40] Setup 
[2025-08-13T07:18:40] [binary] Core started 
[info] Starting Continue core...
[2025-08-13T07:19:45] [info] Starting Continue core... 
[2025-08-13T07:19:45] Setup 
[2025-08-13T07:19:45] [binary] Core started 
[info] Starting Continue core...
[2025-08-13T07:21:54] [info] Starting Continue core... 
[2025-08-13T07:21:54] Setup 
[2025-08-13T07:21:54] [binary] Core started

Activity

  1. added
    ide:jetbrains
    kind:bug
    os:mac
    on Aug 13, 2025
  2. tomasz-stefaniak commented on Aug 22, 2025

    @tomasz-stefaniak
    Contributor

    Thanks for reporting this. FYI, we have a roughly two weeks of updates to the JetBrains extension that we'll be releasing soon - either today or early next week.

  3. BvdMerwe commented on Aug 22, 2025

    @BvdMerwe
    Author

    Great to hear. I don't know if something changed in my setup but it seems that this error has disappeared.

  4. ivanlen commented on Aug 26, 2025

    @ivanlen
    Contributor

    I think this other is related
    #7018

    I have same error on pycharm using 1.0.33
    continue works fine on vscode, fails on pycharm

  5. github-actions commented on Jan 21, 2026

    @github-actions
    Contributor

    This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

  6. github-actions commented on Jan 31, 2026

    @github-actions
    Contributor

    This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ide:jetbrainskind:bugos:macstale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions