Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

| * |

  Show Posts
Pages: [1]
1  PureMVC Manifold / Bug Report / Error when generating docs 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.
2  PureMVC Manifold / Bug Report / Declaration of interface deprecated on: January 15, 2013, 04:32:17
Hi Cliff,

I'm using:
Dart Editor version 0.2.10_r16761
Dart SDK version 0.2.10.1_r16761

and the 'interface' declaration is now deprecated and should be changed to 'abstract class'.
Also see http://news.dartlang.org/2012/11/breaking-change-deprecated-language-features-and-dart2js.html

I think the puremvc package should be updated?

Peter
3  PureMVC Manifold / Bug Report / Failure on dependencies on: January 09, 2013, 04:55:27
Unsure if this is a bug but as soon as I add 'js' as a dependency I get an error using pub install:
Running pub install ...
Pub install failed, [1] Resolving dependencies...
Incompatible dependencies on 'unittest':
- 'js' depends on it from source 'hosted'
- 'puremvc' depends on it from source 'sdk'

If I remove puremvc as a dependency, the error goes away.
Trying 'puremvc: any' doesn't resolve the issue.

Just having:
dependencies:
#  js: any
#  unittest: any
  puremvc: any

works fine and using:

dependencies:
#  js: any
#  unittest: any
  puremvc: ">=2.0.1 <3.0.0"

also works. This btw gets me both puremvc and unittests as packages. As soon as I use:

dependencies:
  js: any
#  unittest: any
  puremvc: ">=2.0.1 <3.0.0"

I get an error:

Running pub install ...
Pub install failed, [1] Resolving dependencies...
Incompatible dependencies on 'unittest':
- 'js' depends on it from source 'hosted'
- 'puremvc' depends on it from source 'sdk'

So, does this point to puremvc declaring a dependency on unittests which causes some incompatibility?
4  Announcements and General Discussion / Getting Started / Using a generic Proxy to load data on: October 27, 2007, 01:22:28
Currently I could use a generic Proxy to load all xml data. In the body of the notification I can simply use a string to add to a query. The Proxy loads the data and informs a Mediator that the data is loaded, passing the data in the body of the notification.
But with several Mediators in the system all listening for DATA_LOADED this poses a problem.
I guess this could be solved in several ways but what would be considered good practice?
5  Announcements and General Discussion / Getting Started / Notifications on: October 27, 2007, 01:05:36
When do I use:

var note:Notification = new Notification();
facade.notifyObservers();

and when
sendNotification();
6  Announcements and General Discussion / Getting Started / Package structure on: October 27, 2007, 12:58:02
I am wondering about best practice when it comes to object models. Normally I would work with an om package that usually holds a (generic) object model for a viewitem. This viewitem holds data like text for headings, body text, assets to load etc, loaded using xml. If applicable I would create collections of these viewitems.
What is considered good practice? Does the Proxy just gets the data and do I use an om package for object models? Or, does my remote proxy - ContentProxy - retrieves the xml data and then uses a 'ViewItemProxy' to parse the data (which I guess would resemble the approach in the HelloFlash example...)?
Pages: [1]