feathersui / feathersui-starling-sdk

SDK for building Feathers UI (AS3/Starling) applications with MXML
https://feathersui.com/learn/as3-starling/sdk/
Apache License 2.0
42 stars 13 forks source link

Feathers SDK compiler "unknown error" when using [Bindable] metadata. #48

Open sol-digital opened 6 years ago

sol-digital commented 6 years ago

I has compiler "unknown error" in IntelliJ IDEA 2017.1.2 regularly the same like at this issue https://github.com/BowlerHatLLC/feathers-sdk/issues/32

In project more than 10 classes with [Bindable] metadata. In some classes more than 20 public properties for this reason I don’t want to use manual PropertyChangeEvent.PROPERTY_CHANGE dispatching.

I try to import starling.events.EventDispatcher in each class, try to switch off "Compile independent modules in parallel" (in project one AS-library module) but still has compiler "unknown error".

Feathers SDK v 3.3.1 with AIR 27.0 SDK.

Added simple project files as you asked. When I remove [Bindable] in several classes then all is fine. Looks like too much [Bindable] metadata in project. Perhaps this is why earlier compiling was without errors.

errapp.zip

sol-digital commented 6 years ago

Tested some variants and made conclusions.

Maybe this error happens when class has double [Bindable] property. For example in this project is [Bindable] ActionVO class and it has property params (public var params:ParamsVO;), but class ParamsVO alredy [Bindable] itself. So when I remove [Bindable] from class ParamsVO and his childrens the compiling has no errors.

joshtynjala commented 6 years ago

That seems like a good clue. Thanks!