Skip to content

Issue: TypeError: Cannot set properties of undefined (setting 'outputPath') in Red Hat Java Extension (Version 1.43.1 Issues) #4102

@qldfhr123

Description

@qldfhr123

Description:

I am encountering a TypeError: Cannot set properties of undefined (setting 'outputPath') when using the Red Hat Java extension (version 1.43.1-darwin-arm64) in VS Code. This error seems to be related to the extension's attempt to access or set an output path, and it prevents the extension from functioning correctly.

Error Stack Trace:

TypeError: Cannot set properties of undefined (setting 'outputPath') at /Users/byeongrok/.vscode/extensions/redhat.java-1.43.1-darwin-arm64/dist/extension.js:2:1048386 at Generator.next (<anonymous>) at /Users/byeongrok/.vscode/extensions/redhat.java-1.43.1-darwin-arm64/dist/extension.js:2:1044798 at new Promise (<anonymous>) at r (/Users/byeongrok/.vscode/extensions/redhat.java-1.43.1-darwin-arm64/dist/extension.js:2:1044543) at t.getJavaConfig (/Users/byeongrok/.vscode/extensions/redhat.java-1.43.1-darwin-arm64/dist/extension.js:2:1048279) at /Users/byeongrok/.vscode/extensions/redhat.java-1.43.1-darwin-arm64/dist/extension.js:2:879621 at Generator.next (<anonymous>) at /Users/byeongrok/.vscode/extensions/redhat.java-1.43.1-darwin-arm64/dist/extension.js:2:866346 at new Promise (<anonymous>) at r (/Users/byeongrok/.vscode/extensions/redhat.java-1.43.1-darwin-arm64/dist/extension.js:2:866091) at /Users/byeongrok/.vscode/extensions/redhat.java-1.43.1-darwin-arm64/dist/extension.js:2:878712 at new Promise (<anonymous>) at /Users/byeongrok/.vscode/extensions/redhat.java-1.43.1-darwin-arm64/dist/extension.js:2:878696 at Generator.next (<anonymous>) at s (/Users/byeongrok/.vscode/extensions/redhat.java-1.43.1-darwin-arm64/dist/extension.js:2:866148) Additional Error Log:

The following error also appears in the logs, which might be related:

2025-07-06 00:19:20.241 [error] Error: ENOENT: no such file or directory, open '/Users/byeongrok/Library/Application Support/Code/User/workspaceStorage/42fc8b41af4d303cada8c96d992604cb/redhat.java/jdt_ws/.metadata/.log' at open (node:internal/fs/promises:634:25) at Object.readFile (node:internal/fs/promises:1242:14) This indicates that the extension is trying to open a log file (.metadata/.log) in a path that does not exist. This could be the root cause of the outputPath error if the extension relies on this directory or file for configuration or temporary storage.

Environment:

VS Code Version: (Please provide your specific VS Code version, e.g., 1.90.0)

Red Hat Java Extension Version: 1.43.1-darwin-arm64

Operating System: macOS (arm64)

Java Development Kit (JDK) Version: (Please provide your installed JDK version, e.g., OpenJDK 17)

Steps to Reproduce:

(Describe the exact steps you take to trigger the error. For example: "Open a Java project in VS Code," or "Try to run a Java file.")

Expected Behavior:

The Red Hat Java extension should initialize and function without errors, correctly setting up necessary paths and accessing log files.

Actual Behavior:

The TypeError occurs, and the extension's functionality is impaired or unavailable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions