Skip to content

Java LSP proxy crashes on macOS when workspace path exceeds 127 bytes #318

Closed

Description

@nanda-picnic

What happened?

Java extension version: 6.8.29
OS: macOS

Opening a Java project with an absolute workspace path of 132 bytes
causes java-lsp-proxy to panic during initialization:

thread 'main' panicked at proxy/src/main.rs:186:45:
called Result::unwrap() on an Err value:
Os { code: 63, kind: InvalidFilename, message: "File name too long" }

The proxy hex-encodes the entire current working directory and uses
the result as a filename under /proxy/.

A 132-byte workspace path becomes a 264-byte filename, exceeding
macOS's 255-byte filename-component limit. Any workspace path over
127 bytes can trigger this.

This occurs naturally with nested Git worktree paths.

What did you expect to happen?

Not throw error :)

Environment

Mac OS

Activity

  1. added theissue type on Oct 26, 2026
  2. tartarughina commented on Oct 27, 2026

    @tartarughina
    Collaborator

    @nanda-picnic thanks for reporting the issue. I've addressed it in the above PR. Expect it to be available once the next revision gets released either this or next week.

  3. tartarughina commented on Oct 27, 2026

    @tartarughina
    Collaborator

    v6.8.30 released, closing the issue

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions