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

TraversingVisitor is not implementing all necessary functions #706

Closed
danrubel opened this issue Dec 6, 2011 · 3 comments
Closed

TraversingVisitor is not implementing all necessary functions #706

danrubel opened this issue Dec 6, 2011 · 3 comments
Assignees

Comments

@danrubel
Copy link

danrubel commented Dec 6, 2011

[user feedback]

floitsch: DartEditor shows error-messages only from time to time.
At some point it told me that TraversingVisitor is not implementing all necessary functions. And now it stopped again...

////////////////////////////////////////////////////////////////////////////////////
Editor Version: 2117
OS: Linux
////////////////////////////////////////////////////////////////////////////////////

.java:151)
       at com.google.dart.tools.core.internal.builder.DartBuilder$1$1.exec(DartBuilder.java:355)
       at com.google.dart.compiler.DartCompiler$Compiler.compileLibraries(DartCompiler.java:705)
       at com.google.dart.compiler.DartCompiler$Compiler.compile(DartCompiler.java:177)
       at com.google.dart.compiler.DartCompiler$Compiler.access$3(DartCompiler.java:166)
       at com.google.dart.compiler.DartCompiler.compileLib(DartCompiler.java:1129)
       at com.google.dart.compiler.DartCompiler.compileLib(DartCompiler.java:1105)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.secureCompileLib(DartCompilerUtilities.java:782)
       at com.google.dart.tools.core.internal.builder.DartBuilder.buildLibrary(DartBuilder.java:379)
       at com.google.dart.tools.core.internal.builder.DartBuilder.buildAllApplications(DartBuilder.java:283)
       at com.google.dart.tools.core.internal.builder.DartBuilder.build(DartBuilder.java:252)
       at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
       at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
       at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
       at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
       at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
       at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY com.google.dart.tools.core 1 0 2011-12-06 11:32:27.340
!MESSAGE INFO: Could not find file for source "file:/usr/local/google/floitsch/code/dart/dart/frog/leg/tree/tree.dart/unparser.dart" (4): Unparser is an abstract class because it does not implement the following members:
   # From Visitor:
   <dynamic> visitLiteralList(LiteralList)
   # From Visitor:
   <dynamic> visitNewExpression(NewExpression)
!STACK 0
java.lang.RuntimeException: Could not find file for source "file:/usr/local/google/floitsch/code/dart/dart/frog/leg/tree/tree.dart/unparser.dart" (4): Unparser is an abstract class because it does not implement the following members:
   # From Visitor:
   <dynamic> visitLiteralList(LiteralList)
   # From Visitor:
   <dynamic> visitNewExpression(NewExpression)
       at com.google.dart.tools.core.internal.builder.CompilerListener.getResource(CompilerListener.java:139)
       at com.google.dart.tools.core.internal.builder.CompilerListener.processWarning(CompilerListener.java:174)
       at com.google.dart.tools.core.internal.builder.CompilerListener.onError(CompilerListener.java:75)
       at com.google.dart.compiler.DartCompilerMainContext.onError(DartCompilerMainContext.java:62)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.onError(TypeAnalyzer.java:216)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.typeError(TypeAnalyzer.java:211)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitNewExpression(TypeAnalyzer.java:1028)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitNewExpression(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartNewExpression.accept(DartNewExpression.java:67)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.typeOf(TypeAnalyzer.java:610)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.nonVoidTypeOf(TypeAnalyzer.java:614)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitMethodInvocation(TypeAnalyzer.java:678)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitMethodInvocation(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartMethodInvocation.accept(DartMethodInvocation.java:77)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.typeOf(TypeAnalyzer.java:610)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.nonVoidTypeOf(TypeAnalyzer.java:614)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.checkAssignable(TypeAnalyzer.java:447)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.checkInitializedDeclaration(TypeAnalyzer.java:1403)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitVariable(TypeAnalyzer.java:1324)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitVariable(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartVariable.accept(DartVariable.java:62)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visit(TypeAnalyzer.java:1365)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitVariableStatement(TypeAnalyzer.java:411)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitVariableStatement(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartVariableStatement.accept(DartVariableStatement.java:61)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visit(TypeAnalyzer.java:1365)
       at com.google.dart.compiler.ast.DartBlock.visitChildren(DartBlock.java:44)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.typeAsVoid(TypeAnalyzer.java:654)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitBlock(TypeAnalyzer.java:650)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitBlock(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartBlock.accept(DartBlock.java:49)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.typeOf(TypeAnalyzer.java:610)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitFunction(TypeAnalyzer.java:852)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitFunction(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartFunction.accept(DartFunction.java:66)
       at com.google.dart.compiler.ast.DartMethodDefinition.visitChildren(DartMethodDefinition.java:85)
       at com.google.dart.compiler.ast.DartMethodDefinition$DartMethodWithInitializersDefinition.visitChildren(DartMethodDefinition.java:121)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.typeAsVoid(TypeAnalyzer.java:654)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitMethodDefinition(TypeAnalyzer.java:955)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitMethodDefinition(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartMethodDefinition.accept(DartMethodDefinition.java:90)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visit(TypeAnalyzer.java:1365)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitClass(TypeAnalyzer.java:729)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitClass(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartClass.accept(DartClass.java:175)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visit(TypeAnalyzer.java:1365)
       at com.google.dart.compiler.ast.DartUnit.visitChildren(DartUnit.java:99)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.typeAsVoid(TypeAnalyzer.java:654)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitUnit(TypeAnalyzer.java:1246)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitUnit(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartUnit.accept(DartUnit.java:107)
       at com.google.dart.compiler.type.TypeAnalyzer.exec(TypeAnalyzer.java:151)
       at com.google.dart.tools.core.internal.builder.DartBuilder$1$1.exec(DartBuilder.java:355)
       at com.google.dart.compiler.DartCompiler$Compiler.compileLibraries(DartCompiler.java:705)
       at com.google.dart.compiler.DartCompiler$Compiler.compile(DartCompiler.java:177)
       at com.google.dart.compiler.DartCompiler$Compiler.access$3(DartCompiler.java:166)
       at com.google.dart.compiler.DartCompiler.compileLib(DartCompiler.java:1129)
       at com.google.dart.compiler.DartCompiler.compileLib(DartCompiler.java:1105)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.secureCompileLib(DartCompilerUtilities.java:782)
       at com.google.dart.tools.core.internal.builder.DartBuilder.buildLibrary(DartBuilder.java:379)
       at com.google.dart.tools.core.internal.builder.DartBuilder.buildAllApplications(DartBuilder.java:283)
       at com.google.dart.tools.core.internal.builder.DartBuilder.build(DartBuilder.java:252)
       at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
       at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
       at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
       at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
       at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
       at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY com.google.dart.tools.core 1 0 2011-12-06 11:34:27.808
!MESSAGE INFO: Could not find file for source "file:/usr/local/google/floitsch/code/dart/dart/frog/leg/tree/tree.dart/visitors.dart" (5, final warning): TraversingVisitor is an abstract class because it does not implement the following members:
   # From Visitor:
   <dynamic> visitLiteralList(LiteralList)
!STACK 0
java.lang.RuntimeException: Could not find file for source "file:/usr/local/google/floitsch/code/dart/dart/frog/leg/tree/tree.dart/visitors.dart" (5, final warning): TraversingVisitor is an abstract class because it does not implement the following members:
   # From Visitor:
   <dynamic> visitLiteralList(LiteralList)
       at com.google.dart.tools.core.internal.builder.CompilerListener.getResource(CompilerListener.java:139)
       at com.google.dart.tools.core.internal.builder.CompilerListener.processWarning(CompilerListener.java:174)
       at com.google.dart.tools.core.internal.builder.CompilerListener.onError(CompilerListener.java:75)
       at com.google.dart.compiler.DartCompilerMainContext.onError(DartCompilerMainContext.java:62)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.onError(TypeAnalyzer.java:216)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.typeError(TypeAnalyzer.java:211)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitNewExpression(TypeAnalyzer.java:1028)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitNewExpression(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartNewExpression.accept(DartNewExpression.java:67)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.typeOf(TypeAnalyzer.java:610)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.nonVoidTypeOf(TypeAnalyzer.java:614)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.analyzeArgumentTypes(TypeAnalyzer.java:418)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitMethodInvocation(TypeAnalyzer.java:685)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitMethodInvocation(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartMethodInvocation.accept(DartMethodInvocation.java:77)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.typeOf(TypeAnalyzer.java:610)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitExprStmt(TypeAnalyzer.java:794)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitExprStmt(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartExprStmt.accept(DartExprStmt.java:36)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visit(TypeAnalyzer.java:1365)
       at com.google.dart.compiler.ast.DartBlock.visitChildren(DartBlock.java:44)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.typeAsVoid(TypeAnalyzer.java:654)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitBlock(TypeAnalyzer.java:650)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitBlock(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartBlock.accept(DartBlock.java:49)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.typeOf(TypeAnalyzer.java:610)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitFunction(TypeAnalyzer.java:852)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitFunction(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartFunction.accept(DartFunction.java:66)
       at com.google.dart.compiler.ast.DartMethodDefinition.visitChildren(DartMethodDefinition.java:85)
       at com.google.dart.compiler.ast.DartMethodDefinition$DartMethodWithInitializersDefinition.visitChildren(DartMethodDefinition.java:121)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.typeAsVoid(TypeAnalyzer.java:654)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitMethodDefinition(TypeAnalyzer.java:955)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitMethodDefinition(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartMethodDefinition.accept(DartMethodDefinition.java:90)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visit(TypeAnalyzer.java:1365)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitClass(TypeAnalyzer.java:729)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitClass(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartClass.accept(DartClass.java:175)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visit(TypeAnalyzer.java:1365)
       at com.google.dart.compiler.ast.DartUnit.visitChildren(DartUnit.java:99)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.typeAsVoid(TypeAnalyzer.java:654)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitUnit(TypeAnalyzer.java:1246)
       at com.google.dart.compiler.type.TypeAnalyzer$Analyzer.visitUnit(TypeAnalyzer.java:1)
       at com.google.dart.compiler.ast.DartUnit.accept(DartUnit.java:107)
       at com.google.dart.compiler.type.TypeAnalyzer.exec(TypeAnalyzer.java:151)
       at com.google.dart.tools.core.internal.builder.DartBuilder$1$1.exec(DartBuilder.java:355)
       at com.google.dart.compiler.DartCompiler$Compiler.compileLibraries(DartCompiler.java:705)
       at com.google.dart.compiler.DartCompiler$Compiler.compile(DartCompiler.java:177)
       at com.google.dart.compiler.DartCompiler$Compiler.access$3(DartCompiler.java:166)
       at com.google.dart.compiler.DartCompiler.compileLib(DartCompiler.java:1129)
       at com.google.dart.compiler.DartCompiler.compileLib(DartCompiler.java:1105)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.secureCompileLib(DartCompilerUtilities.java:782)
       at com.google.dart.tools.core.internal.builder.DartBuilder.buildLibrary(DartBuilder.java:379)
       at com.google.dart.tools.core.internal.builder.DartBuilder.buildAllApplications(DartBuilder.java:283)
       at com.google.dart.tools.core.internal.builder.DartBuilder.build(DartBuilder.java:252)
       at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
       at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
       at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
       at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
       at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
       at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

@bwilkerson
Copy link
Member

Working with dartc team to fix this problem.


Set owner to @bwilkerson.
Added Accepted label.

@bwilkerson
Copy link
Member

@bwilkerson
Copy link
Member

This should now be fixed. Please re-open the issue if you see it again.


Added Fixed label.

copybara-service bot pushed a commit that referenced this issue Jun 14, 2022
Changes:
```
> git log --format="%C(auto) %h %s" 2993ea5..0c22930
 https://dart.googlesource.com/http.git/+/0c22930 Add browser support for response header tests. (#716)
 https://dart.googlesource.com/http.git/+/9f1416e A browser tests for request headers. (#715)
 https://dart.googlesource.com/http.git/+/557d9a3 Support executing tests when run as a package (#714)
 https://dart.googlesource.com/http.git/+/2b4f988 Set async min version to match pinned flutter version (#713)
 https://dart.googlesource.com/http.git/+/a479221 Add browser tests for the response body. (#712)
 https://dart.googlesource.com/http.git/+/0e20ff9 Run the request body tests against the browser client. (#711)
 https://dart.googlesource.com/http.git/+/c09fb1d Run the redirect tests against the browser client. (#708)
 https://dart.googlesource.com/http.git/+/2f723b0 Use the Uri.http constructor in docs and tests (#707)
 https://dart.googlesource.com/http.git/+/346f25d add a LICENSE file; tweaks to the readmes (#709)
 https://dart.googlesource.com/http.git/+/9700bb0 Add a conformance test package for http Clients (#706)
 https://dart.googlesource.com/http.git/+/ae8a9a8 Fix the repository page for monorepoization (#705)
 https://dart.googlesource.com/http.git/+/06649af Mono (#704)

```

Diff: https://dart.googlesource.com/http.git/+/2993ea5dff5ffb066b4a35c707e7a2b8dcfa17c2~..0c2293062d7c1fa472f299da764a7dbb3895ee22/
Change-Id: I967ccd6cc1fda757696099ededc53dbbf942e6a0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/248351
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants