java.lang.IllegalArgumentException: Path /c/work/bazel2 is not beneath C:/work/bazel2

GitHub | laszlocsomor | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Windows: Path.relativeTo is unaware of Windows paths

    GitHub | 7 months ago | laszlocsomor
    java.lang.IllegalArgumentException: Path /c/work/bazel2 is not beneath C:/work/bazel2
  2. 0

    "baseName must not contain a slash: '/

    GitHub | 2 years ago | cflewis
    java.lang.IllegalArgumentException: baseName must not contain a slash: '/'

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Path /c/work/bazel2 is not beneath C:/work/bazel2

      at com.google.devtools.build.lib.vfs.Path.relativeTo()
    2. com.google.devtools
      BazelMain.main
      1. com.google.devtools.build.lib.vfs.Path.relativeTo(Path.java:726)
      2. com.google.devtools.build.lib.runtime.CommandEnvironment.beforeCommand(CommandEnvironment.java:480)
      3. com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.execExclusively(BlazeCommandDispatcher.java:480)
      4. com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.exec(BlazeCommandDispatcher.java:327)
      5. com.google.devtools.build.lib.runtime.BlazeRuntime.batchMain(BlazeRuntime.java:723)
      6. com.google.devtools.build.lib.runtime.BlazeRuntime.main(BlazeRuntime.java:531)
      7. com.google.devtools.build.lib.bazel.BazelMain.main(BazelMain.java:56)
      7 frames