PureMVC Architects Lounge

PureMVC Manifold => Bug Report => Topic started by: Peter on January 18, 2013, 10:32:51



Title: Error when generating docs
Post by: Peter on January 18, 2013, 10:32:51
When running 'Generate Dartdoc' (Tools menu in DartEditor) on the ReverseText example this is the output in the console:

Running dartdoc...
../../../../Projects/PureMVC-Dart-Reversi/puremvc-dart-demo-reversetext/src/model/proxy/TextProxy.dart:3:1: Error: The compiler crashed when compiling this element.
class TextProxy extends mvc.Proxy
^^^^^
Unhandled exception:
NoSuchMethodError : method not found: '[]'
Receiver: null
Arguments: [Instance of 'Identifier']
#0      Object._noSuchMethod (dart:core-patch:1360:3)
#1      Object.noSuchMethod (dart:core-patch:1361:25)
#2      ConcreteTypeInferencer.visitSend (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/types/types.dart:184:31)
#3      Send.accept (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/tree/nodes.dart:283:47)
#4      TypeAnnotation.visitChildren (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/tree/nodes.dart:975:20)
#5      ConcreteTypeInferencer.visitNode (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/types/types.dart:121:45)
#6      Visitor.visitTypeAnnotation (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/tree/nodes.dart:77:58)
#7      TypeAnnotation.accept (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/tree/nodes.dart:972:57)
#8      ClassNode.visitChildren (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/tree/nodes.dart:224:46)
#9      ConcreteTypeInferencer.visitNode (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/types/types.dart:121:45)
#10     Visitor.visitClassNode (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/tree/nodes.dart:18:48)
#11     ClassNode.accept (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/tree/nodes.dart:219:52)
#12     TypesTask.analyze.<anonymous closure> (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/types/types.dart:37:18)
#13     CompilerTask.measure (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/compiler.dart:919:20)
#14     CompilerTask.measure (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/compiler.dart:920:7)
#15     TypesTask.analyze (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/types/types.dart:36:12)
#16     Compiler.analyzeElement (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/compiler.dart:711:22)
#17     Compiler.analyze (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/compiler.dart:738:28)
#18     WorkItem.run (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/compiler.dart:56:38)
#19     LibraryCompiler.processQueueList.<anonymous closure>.<anonymous closure> (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart:310:54)
#20     Compiler.withCurrentElement (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/compiler.dart:167:15)
#21     Compiler.withCurrentElement (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/compiler.dart:188:7)
#22     LibraryCompiler.processQueueList.<anonymous closure> (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart:310:25)
#23     Enqueuer.forEach (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/enqueue.dart:414:8)
#24     LibraryCompiler.processQueueList (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart:309:18)
#25     LibraryCompiler.runCompilerList (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart:297:21)
#26     LibraryCompiler._runList (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart:271:22)
#27     LibraryCompiler._runList (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart:272:7)
#28     LibraryCompiler.runList (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart:262:28)
#29     Dart2JsCompilation.Dart2JsCompilation.library (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart:418:28)
#30     Compilation.Compilation.library (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart:36:12)
#31     Dartdoc.documentLibraries (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/dartdoc/lib/dartdoc.dart:332:25)
#32     main (file:///Users/dev-admin/Documents/SDK/dart/dart-sdk/lib/_internal/dartdoc/bin/dartdoc.dart:217:28)

Consequently, this also occurs when trying to generate the docs of my own project.


Title: Re: Error when generating docs
Post by: puremvc on January 21, 2013, 08:17:48
I must admit I never tried to generate docs for the ReverseText demo, only for the framework itself, since usually, docs for a demo aren't all that useful. I'm going to be pretty busy this week, but will try to get it sorted soon. For now, you might try removing docs from the demo until you find what character is throwing it, starting at the top of TextProxy.

-=Cliff>