Skip to content

When using VSCode in portable mode with the tmp directory enabled, extensions fail to activate properly and get stuck in an activation state. #4433

Description

@ren-142326

Describe the bug
On macOS, download vscode and enable portable mode. At the same time, create a temporary tmp file directory in the data directory, then open the vscode and Java project and install the Java plugin. The plugin will always be stuck in active mode, with no error messages or actions.

To Reproduce
Steps to reproduce the behavior:

  1. Download the VSCode directory installed in portable mode, and create the tmp directory in the data directory of that mode,
  2. Launch VSCode normally, install the Java plugin, and open the Java project. The plugin will show 'Activated' in the status bar
  3. But nothing happened, and the project settings kept loading and couldn't be opened.
  4. The final inspection results showed Sock Unix domain path too long

** log **
!SESSION 2026-06-18 13:27:33.609 -----------------------------------------------
eclipse.buildId=unknown
java.version=21.0.11
java.vendor=Eclipse Adoptium
BootLoader constants: OS=macosx, ARCH=aarch64, WS=cocoa, NL=zh_CN_#Hans
Framework arguments: --pipe=/Users/renjinwei/work/software/JAVA/VScode/code-portable-data/tmp/lsp-f071153a9be153d587c38afa2047.sock
Command-line arguments: -data /Users/renjinwei/work/software/JAVA/VScode/code-portable-data/user-data/User/workspaceStorage/f312aede2c1bb8af530fef927489ae6f/redhat.java/jdt_ws --pipe=/Users/renjinwei/work/software/JAVA/VScode/code-portable-data/tmp/lsp-f071153a9be153d587c38afa2047.sock

!ENTRY org.eclipse.jdt.ls.core 1 0 2026-06-18 13:27:34.543
!MESSAGE class org.eclipse.jdt.ls.core.internal.JavaLanguageServerPlugin is started

!ENTRY org.eclipse.jdt.ls.core 1 0 2026-06-18 13:27:34.564
!MESSAGE Started org.eclipse.buildship.core 15ms

!ENTRY org.eclipse.jdt.ls.core 1 0 2026-06-18 13:27:34.564
!MESSAGE Started org.eclipse.m2e.core 0ms

!ENTRY org.eclipse.jdt.ls.core 4 0 2026-06-18 13:27:34.569
!MESSAGE Unix domain path too long
!STACK 0
java.net.SocketException: Unix domain path too long

[Please attach a sample project reproducing the error]
No need,

Expected behavior
I hope it works properly. If the path is too long, you can use a shorter /tmp path or at least give an error message.

Screenshots

Environment

  • Operating System: macos@26
  • JDK version: jdk@25
  • Visual Studio Code version: code@1.125.1
  • Java extension version: 1.55.2026061909

Additional Information
none

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions