qykings / protoc-gen-as3

Automatically exported from code.google.com/p/protoc-gen-as3
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

initializer.as.inc is not sufficient to reference an extension #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
message ParentMessage {
    extensions 1 to max;
}

extend ParentMessage {
    optional ExtensionMessage extension_message = 1;
}

message ExtensionMessage {
}

This will generate a file EXTENSION_MESSAGE.as that initializes 
ParentMessage.extensionReadFunctions.

This will generate a file initializer.as.inc that references EXTENSION_MESSAGE.

The Bug: If you include these files in a program in an ActionScript project in 
Flash CS4, the references to EXTENSION_MESSAGE are ignored.  
ParentMessage.extensionReadFunctions is not initialized.

Original issue reported on code.google.com by matt...@douglasstribe.com on 2 Aug 2011 at 5:08

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
`initializer.as.inc` is not a class file. To initialize extensions, you must 
add {{{ include "initializer.as.inc" }}} somewhere before parsing your 
`ParentMessage`. Have you done these things?

Original comment by pop.atry@gmail.com on 30 Sep 2011 at 3:40

GoogleCodeExporter commented 9 years ago

Original comment by pop.atry@gmail.com on 5 Dec 2011 at 11:03