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

GitHub | laszlocsomor | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Windows: Path.relativeTo is unaware of Windows paths

    GitHub | 6 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