Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE in Indexer #2123

Closed
clayberg opened this issue Mar 12, 2012 · 1 comment
Closed

NPE in Indexer #2123

clayberg opened this issue Mar 12, 2012 · 1 comment
Assignees
Labels
closed-obsolete Closed as the reported issue is no longer relevant

Comments

@clayberg
Copy link

[from floitsch]

when opening leg I have a lot of 'no such type "xyz"'. But when I control-click on the type it brings me to the correct class.

////////////////////////////////////////////////////////////////////////////////////
Editor Version: 5117
////////////////////////////////////////////////////////////////////////////////////
OS: Linux - amd64 (2.6.38.8-gg705)
SDK installed = true
Dartium installed = true
////////////////////////////////////////////////////////////////////////////////////
!SESSION 2012-03-07 21:57:13.009 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0-google-v4
java.vendor=Google Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64 -consoleLog -data workspace

!ENTRY com.google.dart.tools.core 4 0 2012-03-07 21:57:34.543
!MESSAGE Could not find compilation unit corresponding to file:${user.home}/google/code/dart/dart/lib/uri/uri.dart (0 files found)

!ENTRY com.google.dart.tools.core 4 0 2012-03-07 21:57:35.357
!MESSAGE Could not find compilation unit corresponding to file:${user.home}/google/code/dart/dart/corelib/src/bool.dart (0 files found)

!ENTRY com.google.dart.tools.core 4 0 2012-03-07 21:57:35.358
!MESSAGE Could not find compilation unit corresponding to file:${user.home}/google/code/dart/dart/corelib/src/collection.dart (0 files found)

!ENTRY com.google.dart.tools.core 4 0 2012-03-07 21:57:35.358
!MESSAGE Could not find compilation unit corresponding to file:${user.home}/google/code/dart/dart/corelib/src/comparable.dart (0 files found)
...

!ENTRY com.google.dart.tools.core 4 0 2012-03-07 21:57:36.105
!MESSAGE Could not use class com.google.dart.tools.core.internal.indexer.contributor.MethodInvocationContributor to process compile_time_constants.dart
!STACK 0
java.lang.NullPointerException
       at com.google.dart.tools.core.utilities.bindings.BindingUtils.getDartElement(BindingUtils.java:522)
       at com.google.dart.tools.core.utilities.bindings.BindingUtils.getDartElement(BindingUtils.java:549)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.getDartElement(DartContributor.java:134)
       at com.google.dart.tools.core.internal.indexer.contributor.MethodInvocationContributor.processMethod(MethodInvocationContributor.java:139)
       at com.google.dart.tools.core.internal.indexer.contributor.MethodInvocationContributor.visitMethodInvocation(MethodInvocationContributor.java:78)
       at com.google.dart.tools.core.internal.indexer.contributor.MethodInvocationContributor.visitMethodInvocation(MethodInvocationContributor.java:1)
       at com.google.dart.compiler.ast.DartMethodInvocation.accept(DartMethodInvocation.java:66)
       at com.google.dart.compiler.ast.DartReturnStatement.visitChildren(DartReturnStatement.java:30)
       at com.google.dart.tools.core.dom.visitor.ChildVisitor.visitNode(ChildVisitor.java:107)
       at com.google.dart.tools.core.dom.visitor.ChildVisitor.visitNode(ChildVisitor.java:1)
       at com.google.dart.compiler.ast.ASTVisitor.visitStatement(ASTVisitor.java:53)
       at com.google.dart.compiler.ast.ASTVisitor.visitReturnStatement(ASTVisitor.java:265)
       at com.google.dart.compiler.ast.DartReturnStatement.accept(DartReturnStatement.java:36)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitChildren(DartContributor.java:309)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitNode(DartContributor.java:90)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitNode(DartContributor.java:1)
       at com.google.dart.compiler.ast.ASTVisitor.visitStatement(ASTVisitor.java:53)
       at com.google.dart.compiler.ast.ASTVisitor.visitReturnStatement(ASTVisitor.java:265)
       at com.google.dart.compiler.ast.DartReturnStatement.accept(DartReturnStatement.java:36)
       at com.google.dart.compiler.ast.NodeList.accept(NodeList.java:77)
       at com.google.dart.compiler.ast.DartBlock.visitChildren(DartBlock.java:36)
       at com.google.dart.tools.core.dom.visitor.ChildVisitor.visitNode(ChildVisitor.java:107)
       at com.google.dart.tools.core.dom.visitor.ChildVisitor.visitNode(ChildVisitor.java:1)
       at com.google.dart.compiler.ast.ASTVisitor.visitStatement(ASTVisitor.java:53)
       at com.google.dart.compiler.ast.ASTVisitor.visitBlock(ASTVisitor.java:97)
       at com.google.dart.compiler.ast.DartBlock.accept(DartBlock.java:41)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitChildren(DartContributor.java:309)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitNode(DartContributor.java:90)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitNode(DartContributor.java:1)
       at com.google.dart.compiler.ast.ASTVisitor.visitStatement(ASTVisitor.java:53)
       at com.google.dart.compiler.ast.ASTVisitor.visitBlock(ASTVisitor.java:97)
       at com.google.dart.compiler.ast.DartBlock.accept(DartBlock.java:41)
       at com.google.dart.compiler.ast.DartFunction.visitChildren(DartFunction.java:40)
       at com.google.dart.tools.core.dom.visitor.ChildVisitor.visitNode(ChildVisitor.java:107)
       at com.google.dart.tools.core.dom.visitor.ChildVisitor.visitNode(ChildVisitor.java:1)
       at com.google.dart.compiler.ast.ASTVisitor.visitFunction(ASTVisitor.java:177)
       at com.google.dart.compiler.ast.DartFunction.accept(DartFunction.java:49)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitChildren(DartContributor.java:309)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitNode(DartContributor.java:90)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitNode(DartContributor.java:1)
       at com.google.dart.compiler.ast.ASTVisitor.visitFunction(ASTVisitor.java:177)
       at com.google.dart.tools.core.internal.indexer.contributor.ScopedDartContributor.visitFunction(ScopedDartContributor.java:129)
       at com.google.dart.tools.core.internal.indexer.contributor.ScopedDartContributor.visitFunction(ScopedDartContributor.java:1)
       at com.google.dart.compiler.ast.DartFunction.accept(DartFunction.java:49)
       at com.google.dart.compiler.ast.DartMethodDefinition.visitChildren(DartMethodDefinition.java:59)
       at com.google.dart.compiler.ast.DartMethodDefinition$DartMethodWithInitializersDefinition.visitChildren(DartMethodDefinition.java:86)
       at com.google.dart.tools.core.dom.visitor.ChildVisitor.visitMethodDefinition(ChildVisitor.java:101)
       at com.google.dart.tools.core.dom.visitor.ChildVisitor.visitMethodDefinition(ChildVisitor.java:1)
       at com.google.dart.compiler.ast.DartMethodDefinition.accept(DartMethodDefinition.java:64)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitChildren(DartContributor.java:309)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitNode(DartContributor.java:90)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitNode(DartContributor.java:1)
       at com.google.dart.compiler.ast.ASTVisitor.visitDeclaration(ASTVisitor.java:69)
       at com.google.dart.compiler.ast.ASTVisitor.visitClassMember(ASTVisitor.java:73)
       at com.google.dart.compiler.ast.ASTVisitor.visitMethodDefinition(ASTVisitor.java:225)
       at com.google.dart.tools.core.internal.indexer.contributor.ScopedDartContributor.visitMethodDefinition(ScopedDartContributor.java:172)
       at com.google.dart.tools.core.internal.indexer.contributor.ScopedDartContributor.visitMethodDefinition(ScopedDartContributor.java:1)
       at com.google.dart.compiler.ast.DartMethodDefinition.accept(DartMethodDefinition.java:64)
       at com.google.dart.compiler.ast.NodeList.accept(NodeList.java:77)
       at com.google.dart.compiler.ast.DartClass.visitChildren(DartClass.java:181)
       at com.google.dart.tools.core.dom.visitor.ChildVisitor.visitClass(ChildVisitor.java:57)
       at com.google.dart.tools.core.dom.visitor.ChildVisitor.visitClass(ChildVisitor.java:1)
       at com.google.dart.compiler.ast.DartClass.accept(DartClass.java:186)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitChildren(DartContributor.java:309)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitNode(DartContributor.java:90)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitNode(DartContributor.java:1)
       at com.google.dart.compiler.ast.ASTVisitor.visitDeclaration(ASTVisitor.java:69)
       at com.google.dart.compiler.ast.ASTVisitor.visitClass(ASTVisitor.java:129)
       at com.google.dart.tools.core.internal.indexer.contributor.ScopedDartContributor.visitClass(ScopedDartContributor.java:77)
       at com.google.dart.tools.core.internal.indexer.contributor.ScopedDartContributor.visitClass(ScopedDartContributor.java:1)
       at com.google.dart.compiler.ast.DartClass.accept(DartClass.java:186)
       at com.google.dart.compiler.ast.NodeList.accept(NodeList.java:77)
       at com.google.dart.compiler.ast.DartUnit.visitChildren(DartUnit.java:60)
       at com.google.dart.tools.core.dom.visitor.ChildVisitor.visitNode(ChildVisitor.java:107)
       at com.google.dart.tools.core.dom.visitor.ChildVisitor.visitNode(ChildVisitor.java:1)
       at com.google.dart.compiler.ast.ASTVisitor.visitUnit(ASTVisitor.java:317)
       at com.google.dart.compiler.ast.DartUnit.accept(DartUnit.java:66)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitChildren(DartContributor.java:309)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitNode(DartContributor.java:90)
       at com.google.dart.tools.core.internal.indexer.contributor.DartContributor.visitNode(DartContributor.java:1)
       at com.google.dart.compiler.ast.ASTVisitor.visitUnit(ASTVisitor.java:317)
       at com.google.dart.tools.core.internal.indexer.contributor.ScopedDartContributor.visitUnit(ScopedDartContributor.java:193)
       at com.google.dart.tools.core.internal.indexer.contributor.ScopedDartContributor.visitUnit(ScopedDartContributor.java:1)
       at com.google.dart.compiler.ast.DartUnit.accept(DartUnit.java:66)
       at com.google.dart.tools.core.internal.indexer.contributor.DartProcessor.process(DartProcessor.java:63)
       at com.google.dart.tools.core.internal.indexer.contributor.DartProcessor.processTarget(DartProcessor.java:87)
       at com.google.dart.indexer.index.IndexTransaction.indexTarget(IndexTransaction.java:115)
       at com.google.dart.indexer.workspace.index.WorkspaceIndexer.indexTarget(WorkspaceIndexer.java:475)
       at com.google.dart.indexer.workspace.index.WorkspaceIndexer.doIndexPendingFiles(WorkspaceIndexer.java:408)
       at com.google.dart.indexer.workspace.index.WorkspaceIndexer.indexPendingFiles(WorkspaceIndexer.java:235)
       at com.google.dart.indexer.workspace.driver.WorkspaceIndexingDriver$IndexingJob.run(WorkspaceIndexingDriver.java:60)
       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

@bwilkerson
Copy link
Member

The indexer has been replaced. Please re-open if there is still a problem.


Added AssumedStale label.

@clayberg clayberg added Type-Defect closed-obsolete Closed as the reported issue is no longer relevant labels Mar 29, 2012
copybara-service bot pushed a commit that referenced this issue May 30, 2023
Revisions updated by `dart tools/rev_sdk_deps.dart`.  rev_sdk_deps is changed to default to `main` if no branch is found, as `origin` doesn't seem to work for impacted repos (e.g. csslib).

dartdoc (https://github.com/dart-lang/dartdoc/compare/1d94484..950898f):
  950898f5  Tue May 30 11:18:38 2023 -0700  Janice Collins  Reintroduce remote linking file type assumption (#3425)
  ef552992  Tue May 30 09:49:16 2023 -0700  Sam Rawlins  Refactor search ranking (#3424)

http (https://github.com/dart-lang/http/compare/8a4a4a6..18a43a2):
  18a43a2  Tue May 30 09:44:24 2023 -0700  Brian Quinlan  Fix the failing cupertino_http tests (#949)

lints (https://github.com/dart-lang/lints/compare/4236c43..edc28ed):
  edc28ed  Tue May 30 11:56:29 2023 -0500  Parker Lougheed  Add topics to the pubspec file (#122)

logging (https://github.com/dart-lang/logging/compare/7ba155a..f2fe2ac):
  f2fe2ac  Tue May 23 15:01:13 2023 -0700  Jacob MacDonald  prep for release (#140)
  ce41605  Mon May 22 10:14:28 2023 -0700  Devon Carew  blast_repo fixes (#142)

tools (https://github.com/dart-lang/tools/compare/b90a7e8..d723a55):
  d723a55  Tue May 30 11:02:27 2023 -0700  Devon Carew  Update pull_request_label.yml (#107)

webdev (https://github.com/dart-lang/webdev/compare/4b69f1d..d442fa8):
  d442fa89  Tue May 30 14:36:53 2023 -0400  Anna Gringauze  Check for new events more often in batched stream. (#2123)

Change-Id: I9e8905363ee51462529341bfba268504336d90e3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/306314
Auto-Submit: Janice Collins <[email protected]>
Reviewed-by: Devon Carew <[email protected]>
Commit-Queue: Devon Carew <[email protected]>
Commit-Queue: Janice Collins <[email protected]>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-obsolete Closed as the reported issue is no longer relevant
Projects
None yet
Development

No branches or pull requests

2 participants