Skip to content

fix: expand Windows %IDE_HOME% in MPS bootstrap JVM arguments - #112

Merged
sergej-koscejev merged 1 commit into
mainfrom
claude/issue-111-94e036
Oct 23, 2026
Merged

sergej-koscejev merged 1 commit into
mainfrom
claude/issue-111-94e036

Conversation

@sergej-koscejev

Copy link
Copy Markdown
Member

Summary

On Windows, MPS 2026.2's product-info.json declares -Xbootclasspath/a:%IDE_HOME%/lib/nio-fs.jar. The daemon launcher only expanded $IDE_HOME, so the daemon started without nio-fs.jar on the boot classpath and failed with NoClassDefFoundError: com/intellij/platform/core/nio/fs/MultiRoutingFileSystem.

 mpsBootstrapJvmArgs(mpsHome)
   for each additionalJvmArgument of the host launch entry
+    replace "%IDE_HOME%" with mpsHome
     replace "$IDE_HOME" with mpsHome

The argument is passed to the daemon JVM as its own ProcessBuilder list element, so an MPS home with spaces needs no extra quoting.

Fixes #111.

Evidence

  • Before: the new test bootstrap classpath resolves Windows IDE home placeholder in a path with spaces fails. It uses a Windows launch entry, OS name Windows 11, and the MPS home Program Files/JetBrains/MPS 2026.2, and expects -Xbootclasspath/a:<mps home>/lib/nio-fs.jar. The launcher returns the argument with %IDE_HOME% unexpanded.

    After: the test passes, and the existing macOS $IDE_HOME test still passes. The full ./gradlew check passes.

Tested on macOS only, not on real Windows.

Merge Danger

Blast Radius: small. It changes only the bootstrap JVM arguments of daemons started from an MPS home that has a product-info.json.

@sergej-koscejev
sergej-koscejev enabled auto-merge (squash) October 23, 2026 12:31
@sergej-koscejev
sergej-koscejev merged commit ffa39dc into main Oct 23, 2026
11 checks passed
@sergej-koscejev
sergej-koscejev deleted the claude/issue-111-94e036 branch October 23, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows MPS 2026.2 daemon bootstrap does not expand %IDE_HOME%

1 participant