Skip to content

feature: IntelliJ plugin supports projects inside WSL2 (wsl/linux jdk). Fixes #899#1624

Open
KaiFieger wants to merge 1 commit intopalantir:developfrom
KaiFieger:develop
Open

feature: IntelliJ plugin supports projects inside WSL2 (wsl/linux jdk). Fixes #899#1624
KaiFieger wants to merge 1 commit intopalantir:developfrom
KaiFieger:develop

Conversation

@KaiFieger
Copy link

Before this PR

Windows IntelliJ supports pure WSL2 projects (Java JDK also inside WSL2)
The IntelliJ plugin currently does not work for these projects. It tries to execute the formatter with the project's Java JDK, but fails to find it. #899

After this PR

The plugin now supports WSL2 projects. It finds the JDK and uses it to launch the formatter inside of WSL2.

Possible downsides?

Any other scenarios should work the same as before.

Other options

Running the formatter in WSL2 is slower than native Windows (as expected). So users might feel a noticeable difference between their Windows and WSL2 projects.
Introducing an extra setting where users can select a separate jdk for the plugin to use might be an option.

@palantirtech
Copy link
Member

Thanks for your interest in palantir/palantir-java-format, @KaiFieger! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

@changelog-app
Copy link

changelog-app bot commented Mar 14, 2026

Successfully generated changelog entry!

Entry generated via PR title

To modify this entry, edit PR title using proper format.


📋Changelog Preview

✨ Features

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.

2 participants