Git Product home page Git Product logo

Comments (6)

joshtynjala avatar joshtynjala commented on June 11, 2024

I built joshtynjala/feathers-weather using this library.

Are you using the SWC (linked in the readme) or the source code? If you're using the source code, you need to make sure that the compiler keeps the Robotlegs metadata. Otherwise, it won't know what to inject. Check the build.xml for what metadata you should keep and what the compiler arguments look like. If you use the SWC, the metadata will be included automatically, and it should just work.

from robotlegs-framework-starling.

izzmeifter avatar izzmeifter commented on June 11, 2024

Thanks Josh. I'll give that example a go and see If I can spot the issue. And yes, in this case I was using the SWC in the read me.

from robotlegs-framework-starling.

joshtynjala avatar joshtynjala commented on June 11, 2024

Any chance that you were testing on iOS? For some reason, I saw errors with injected properties on iOS when I used ipa-app-store. It worked fine with ipa-test-interpreter, so there's something going wrong with the cross-compiling to native code, I guess. I don't remember if I tried ipa-ad-hoc or any of the other lower levels of optimization. I haven't had much time to troubleshoot further.

from robotlegs-framework-starling.

izzmeifter avatar izzmeifter commented on June 11, 2024

I believe I was on the larger project, but I think on a separate test I did, I was experiencing the same issues even in the ADL. I'll let you know what I find out. Thanks again.

from robotlegs-framework-starling.

izzmeifter avatar izzmeifter commented on June 11, 2024

So I've downloaded the feathers-weather app, and compiled it fine, but found that it doesn't actually inject any events with commandMap, so in trying out a quick test, I experience the same problems. The simplest way to test was to add

this.commandMap.mapEvent(StartupEvent.STARTUP, StartupCommand, StartupEvent);

in the Context and at the end of the startup override just dispatch a standard extended starling Event

var evt:StartupEvent = new StartupEvent(StartupEvent.STARTUP);
evt.obj = {name:"Robotlegs"};
this.dispatchEvent(evt)

and in StartupCommand

[Inject]
public var event:StartupEvent;

Which results in the Error: Injector is missing a rule to handle injection into property "event" of object "[object StartupCommand]". Target dependency: "feathers.examples.weather.events::StartupEvent", named ""

In the interest of time right now, i'll switch back to s9tpeppers version, but I will definitely revisit this lib as I prefer the execution.

Thanks Josh.

from robotlegs-framework-starling.

joshtynjala avatar joshtynjala commented on June 11, 2024

Thanks for the info. I was able to reproduce the issue, and I got it fixed. Conveniently, it appears that my issue on iOS was fixed with it. 😄

from robotlegs-framework-starling.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.