-
Bug
-
Resolution: Fixed
-
P4
-
16
-
None
-
b09
The bin/idea.sh script doesn't work on WSL 1 and 2.
mv: cannot stat '/mnt/c/jdk/.idea/classes/idea/JdkIdeaAntLogger$MessageKind.class.tmp': No such file or directory
mv: cannot stat '/mnt/c/jdk/.idea/classes/idea/JdkIdeaAntLogger$StatusEvent$StatusTask.class.tmp': No such file or directory
bin/idea.sh: 1: eval: cannot create /mnt/c/jdk/.idea/classes/idea/JdkIdeaAntLogger/mnt/c/jdk/.idea/classes/idea/JdkIdeaAntLogger$StringBinaryPredicate$1.class.class.tmp: Directory nonexistent
....
There are three issues.
1) this script use javac, however, there is javac.exe in boot JDK instead of javac.
2) javac.exe in Windows directory uses ant.jar in WSL directory
3) paths used in this script are on WSL, however, IDEA uses Path on Windows
mv: cannot stat '/mnt/c/jdk/.idea/classes/idea/JdkIdeaAntLogger$MessageKind.class.tmp': No such file or directory
mv: cannot stat '/mnt/c/jdk/.idea/classes/idea/JdkIdeaAntLogger$StatusEvent$StatusTask.class.tmp': No such file or directory
bin/idea.sh: 1: eval: cannot create /mnt/c/jdk/.idea/classes/idea/JdkIdeaAntLogger/mnt/c/jdk/.idea/classes/idea/JdkIdeaAntLogger$StringBinaryPredicate$1.class.class.tmp: Directory nonexistent
....
There are three issues.
1) this script use javac, however, there is javac.exe in boot JDK instead of javac.
2) javac.exe in Windows directory uses ant.jar in WSL directory
3) paths used in this script are on WSL, however, IDEA uses Path on Windows