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

Samebug tips1

Check if there is no nexus running. If not, delete sonatype-work/nexus/nexus.lock .


Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web13740

  • 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
  • topLevelKey: TARGET_PATTERN:syntaxnet/... alreadyReported: false path to cycle: TARGET_PATTERN:syntaxnet/... RECURSIVE_PKG:rootedPath=[/Users/me/models/syntaxnet]/[syntaxnet], excludedPaths=<omitted>) PACKAGE:syntaxnet cycle: PACKAGE:external
  • via Google Groups by Erik Kuefler, 1 year ago
    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
  • Stack trace

    • 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(Preconditions.java:174) at com.google.devtools.build.lib.util.Preconditions.checkState(Preconditions.java:201) at com.google.devtools.build.skyframe.CyclesReporter.reportCycles(CyclesReporter.java:82) at com.google.devtools.build.lib.skyframe.SkyframeTargetPatternEvaluator.parseTargetPatternKeys(SkyframeTargetPatternEvaluator.java:164) at com.google.devtools.build.lib.skyframe.SkyframeTargetPatternEvaluator.parseTargetPatternList(SkyframeTargetPatternEvaluator.java:117) at com.google.devtools.build.lib.skyframe.SkyframeTargetPatternEvaluator.parseTargetPatternList(SkyframeTargetPatternEvaluator.java:56) at com.google.devtools.build.lib.skyframe.SkyframeTargetPatternEvaluator.parseTargetPattern(SkyframeTargetPatternEvaluator.java:62) at com.google.devtools.build.lib.skyframe.SkyframeTargetPatternEvaluator.preloadTargetPatterns(SkyframeTargetPatternEvaluator.java:86) at com.google.devtools.build.lib.query2.BlazeQueryEnvironment.preloadOrThrow(BlazeQueryEnvironment.java:436) at com.google.devtools.build.lib.query2.AbstractBlazeQueryEnvironment.evaluateQuery(AbstractBlazeQueryEnvironment.java:112) at com.google.devtools.build.lib.query2.BlazeQueryEnvironment.evaluateQuery(BlazeQueryEnvironment.java:126) at com.google.devtools.build.lib.query2.BlazeQueryEnvironment.evaluateQuery(BlazeQueryEnvironment.java:66) at com.google.devtools.build.lib.runtime.commands.QueryCommand.exec(QueryCommand.java:173) at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.execExclusively(BlazeCommandDispatcher.java:488) at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.exec(BlazeCommandDispatcher.java:324) at com.google.devtools.build.lib.runtime.CommandExecutor.exec(CommandExecutor.java:49) at com.google.devtools.build.lib.server.RPCService.executeRequest(RPCService.java:70) at com.google.devtools.build.lib.server.AfUnixServer.executeRequest(AfUnixServer.java:418) at com.google.devtools.build.lib.server.AfUnixServer.serve(AfUnixServer.java:215) at com.google.devtools.build.lib.runtime.BlazeRuntime.serverMain(BlazeRuntime.java:737) at com.google.devtools.build.lib.runtime.BlazeRuntime.main(BlazeRuntime.java:519) at com.google.devtools.build.lib.bazel.BazelMain.main(BazelMain.java:56)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 2 months ago
    4 times, 3 months ago
    8 times, 1 year ago
    2 times, 1 year ago
    Unknown user
    Once, 1 year ago
    84 more bugmates