idea.sh script doesn't work on WSL 1 and 2

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 16
    • Affects Version/s: 16
    • Component/s: infrastructure
    • 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

            Assignee:
            Chihiro Ito
            Reporter:
            Chihiro Ito
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: