CLion: Grafical git rebase always fails
When I try to rebase (or squash) commits by using the CLion-interface I always get an error:
Rebase failed
/mnt/c/Users/<USER_NAME>/AppData/Local/JetBrains/CLion2023.2/tmp/intellij-git-editor-wsl-Ubuntu-22.04.sh: 3: /mnt/c/Program Files/JetBrains/CLion 2022.2.4/jbr/bin/java.exe: Exec format error There was a problem with the editor '/mnt/c/Users/<USER_NAME>/AppData/Local/JetBrains/CLion2023.2/tmp/intellij-git-editor-wsl-Ubuntu-22.04.sh'.
When I do the rebase manually by using the git interface everything works fine. I've tried this in different projects but I always get the same error. This error may occure since a certain update but I'm not sure.
Build #CL-232.9559.58, built on August 22, 2023
Runtime version: 17.0.8+7-b1000.8 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Please sign in to leave a comment.
Hello!
Could you please describe your setup? Do you use Remote with the thin client (https://www.jetbrains.com/help/clion/remote.html)?
Thanks for the reply. Problem could be solved by the following thread:
https://youtrack.jetbrains.com/issue/IDEA-327378/Remote-git-operations-from-wsl-project-do-not-work-with-Exec-format-error
Thank you for sharing the related YouTrack issue here!