java.lang.IllegalStateException: topLevelKey: TARGET_PATTERN://... alreadyReported: false path to cycle: TARGET_PATTERN://... RECURSIVE_PKG:rootedPath=[/tmp/bazelbug]/[], excludedPaths=<omitted>) PACKAGE: PACKAGE:external EXTERNAL_PACKAGE:[/tmp/bazelbug]/[WORKSPACE] cycle: WORKSPACE_FILE:[/tmp/bazelbug]/[WORKSPACE], 1 SKYLARK_IMPORTS_LOOKUP:com.google.devtools.build.lib.skyframe.SkylarkImportLookupValue$SkylarkImportLookupKey@b748f0a1 AST_FILE_LOOKUP:@some_external//:rules.bzl PACKAGE_LOOKUP:@some_external// REPOSITORY:@some_external REPOSITORY_DIRECTORY:@some_external

GitHub | nelhage | 4 months ago
  1. 0

    `load`ing a non-existent external in `WORKSPACE` yields an `IllegalStateException`

    GitHub | 4 months ago | nelhage
    java.lang.IllegalStateException: topLevelKey: TARGET_PATTERN://... alreadyReported: false path to cycle: TARGET_PATTERN://... RECURSIVE_PKG:rootedPath=[/tmp/bazelbug]/[], excludedPaths=<omitted>) PACKAGE: PACKAGE:external EXTERNAL_PACKAGE:[/tmp/bazelbug]/[WORKSPACE] cycle: WORKSPACE_FILE:[/tmp/bazelbug]/[WORKSPACE], 1 SKYLARK_IMPORTS_LOOKUP:com.google.devtools.build.lib.skyframe.SkylarkImportLookupValue$SkylarkImportLookupKey@b748f0a1 AST_FILE_LOOKUP:@some_external//:rules.bzl PACKAGE_LOOKUP:@some_external// REPOSITORY:@some_external REPOSITORY_DIRECTORY:@some_external
  2. 0

    Exception when bazel run :target where target is a genrule

    GitHub | 1 year ago | damienmg
    java.lang.IllegalStateException: Attribute 'executable' is potentially configurable - not allowed here
  3. 0

    GitHub comment 372#159442241

    GitHub | 1 year ago | stephenchu
    java.lang.IllegalStateException: Attribute 'executable' is potentially configurable - not allowed here
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can't write an executable genrule

    GitHub | 10 months ago | dfabulich
    java.lang.IllegalStateException: Attribute 'executable' is potentially configurable - not allowed here
  6. 0

    No more base_workspace in Bazel 0.1.5?

    Google Groups | 10 months ago | Erik Kuefler
    java.lang.IllegalStateException: topLevelKey: TRANSITIVE_TARGET:@bazel_tools//tools/cpp:toolchain alreadyReported: false path to cycle: TRANSITIVE_TARGET:@bazel_tools//tools/cpp:toolchain TARGET_MARKER:@bazel_tools//tools/cpp:toolchain PACKAGE:@bazel_tools//tools/cpp PACKAGE_LOOKUP:@bazel_tools//tools/cpp cycle: REPOSITORY:@bazel_tools PACKAGE:external WORKSPACE_FILE:[/xperiel/local/tmp]/[WORKSPACE] SKYLARK_IMPORTS_LOOKUP:com.google.devtools.build.lib.skyframe.SkylarkImportLookupValue$SkylarkImportLookupKey@ac359b97 AST_FILE_LOOKUP:@bazel_tools//tools/build_defs/groovy:groovy.bzl PACKAGE_LOOKUP:@bazel_tools//tools/build_defs/groovy

  1. fervidnerd 2 times, last 1 week ago
  2. musketyr 1 times, last 3 weeks ago
  3. pnaranja 2 times, last 5 months ago
  4. regisso 1 times, last 6 months ago
  5. Bardh 2 times, last 7 months ago
5 more registered users
61 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    topLevelKey: TARGET_PATTERN://... alreadyReported: false path to cycle: TARGET_PATTERN://... RECURSIVE_PKG:rootedPath=[/tmp/bazelbug]/[], excludedPaths=<omitted>) PACKAGE: PACKAGE:external EXTERNAL_PACKAGE:[/tmp/bazelbug]/[WORKSPACE] cycle: WORKSPACE_FILE:[/tmp/bazelbug]/[WORKSPACE], 1 SKYLARK_IMPORTS_LOOKUP:com.google.devtools.build.lib.skyframe.SkylarkImportLookupValue$SkylarkImportLookupKey@b748f0a1 AST_FILE_LOOKUP:@some_external//:rules.bzl PACKAGE_LOOKUP:@some_external// REPOSITORY:@some_external REPOSITORY_DIRECTORY:@some_external

    at com.google.common.base.Preconditions.checkState()
  2. Guava
    Preconditions.checkState
    1. com.google.common.base.Preconditions.checkState(Preconditions.java:174)
    1 frame
  3. com.google.devtools
    BazelMain.main
    1. com.google.devtools.build.lib.util.Preconditions.checkState(Preconditions.java:201)
    2. com.google.devtools.build.skyframe.CyclesReporter.reportCycles(CyclesReporter.java:82)
    3. com.google.devtools.build.lib.skyframe.SkyframeTargetPatternEvaluator.parseTargetPatternKeys(SkyframeTargetPatternEvaluator.java:164)
    4. com.google.devtools.build.lib.skyframe.SkyframeTargetPatternEvaluator.parseTargetPatternList(SkyframeTargetPatternEvaluator.java:117)
    5. com.google.devtools.build.lib.skyframe.SkyframeTargetPatternEvaluator.parseTargetPatternList(SkyframeTargetPatternEvaluator.java:56)
    6. com.google.devtools.build.lib.skyframe.SkyframeTargetPatternEvaluator.parseTargetPattern(SkyframeTargetPatternEvaluator.java:62)
    7. com.google.devtools.build.lib.skyframe.SkyframeTargetPatternEvaluator.preloadTargetPatterns(SkyframeTargetPatternEvaluator.java:86)
    8. com.google.devtools.build.lib.query2.BlazeQueryEnvironment.preloadOrThrow(BlazeQueryEnvironment.java:436)
    9. com.google.devtools.build.lib.query2.AbstractBlazeQueryEnvironment.evaluateQuery(AbstractBlazeQueryEnvironment.java:112)
    10. com.google.devtools.build.lib.query2.BlazeQueryEnvironment.evaluateQuery(BlazeQueryEnvironment.java:126)
    11. com.google.devtools.build.lib.query2.BlazeQueryEnvironment.evaluateQuery(BlazeQueryEnvironment.java:66)
    12. com.google.devtools.build.lib.runtime.commands.QueryCommand.exec(QueryCommand.java:173)
    13. com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.execExclusively(BlazeCommandDispatcher.java:488)
    14. com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.exec(BlazeCommandDispatcher.java:324)
    15. com.google.devtools.build.lib.runtime.CommandExecutor.exec(CommandExecutor.java:49)
    16. com.google.devtools.build.lib.server.RPCService.executeRequest(RPCService.java:70)
    17. com.google.devtools.build.lib.server.AfUnixServer.executeRequest(AfUnixServer.java:418)
    18. com.google.devtools.build.lib.server.AfUnixServer.serve(AfUnixServer.java:215)
    19. com.google.devtools.build.lib.runtime.BlazeRuntime.serverMain(BlazeRuntime.java:737)
    20. com.google.devtools.build.lib.runtime.BlazeRuntime.main(BlazeRuntime.java:519)
    21. com.google.devtools.build.lib.bazel.BazelMain.main(BazelMain.java:56)
    21 frames