Skip to content

Jetbrains: built-in tools write_to_file and apply_diff execution fail on WSL2 #4796

@peploleum

Description

@peploleum

Plugin Type

JetBrains Plugin

App Version

v4.138.0

Description

Might be a duplicate of #2466

When trying to apply diff or write to file, execution fails with the following exceptions:

Error applying diff:
Failed to execute diff command for \\wsl.localhost\Ubuntu-22.04\home\[redacted]\something.java: Cannot read properties of undefined (reading 'toString')
Error handling partial write_to_file:
Failed to execute diff command for \\wsl.localhost\Ubuntu-22.04\home\[redacted]\something.java: Cannot read properties of undefined (reading 'toString')

Reproduction steps

  1. Open a remote WSL project in Jetbrains (e.g. cloned sample java project)
  2. Prompt for any file update trigger instruction (e.g. "Insert comments in referenced file")
  3. Action fails (see attached exceptions)

Provider

OpenAI compatible

Model

No response

System Information

OS: Windows 11/WSL2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Intake

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions