Hi all, Sure, happy to help, but what exactly do you need?
Chris ________________________________ Von: Carlos Rovira <[email protected]> Gesendet: Sonntag, 3. Januar 2021 23:23 An: Josh Tynjala <[email protected]>; Christofer Dutz <[email protected]>; Apache Royale Development <[email protected]> Betreff: Re: Configuring source maps on Royale with new compiler options Thanks Josh, since this seems to be more complicated than I thought due to maven needs, I'll add Chris to the thread, and also the dev mailing list that was lost on your response. Hope Chris can give us the best way to handle this with his maven knowledge. Thanks for your help El dom, 3 ene 2021 a las 23:00, Josh Tynjala (<[email protected]<mailto:[email protected]>>) escribió: I'm not sure that it's currently possible to use source-map-source-root correctly with Maven because Maven does not have an IDE-compatible SDK where the source files are located. The compiler relies on knowing where the original source files are to set the paths correctly. When building your app (such as TDJ), you could try adding the +royalelib option to your additionalCompilerOptions to point to an IDE-compatible SDK. It would look something like this: +royalelib=/path/to/royale-asjs/frameworks/ This token (which you'll notice uses + instead of -) tells the compiler where the frameworks folder in an SDK is located. That's how it figures out how to map the paths relative to your project. I should also add that I think you may be using the wrong path with the source-map-source-root option. In my examples from an older thread, I did not point it at the "target" folder, but its parent instead. It may be that your setup is different for some reason that I'm not realizing, but I just thought that I'd point out where I could see a difference with what I showed before. -- Josh Tynjala Bowler Hat LLC<https://bowlerhat.dev> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <[email protected]<mailto:[email protected]>> wrote: Hi Josh, I have a little time now and want to try to set up sourcemaps on Royale by default. For this to happen we need a solution that is general so it works on local, for people using nightly builds, or a released SDK. I want to try it locally and ask on list with a final working solution in hand and see if Greg and others are ok with it. I'm trying with this code in Jewel library: <additionalCompilerOptions> -source-map=true; -source-map-source-root=/frameworks/projects/Jewel/target/ </additionalCompilerOptions> And in TDJ this: -source-map=true; -source-map-source-root=/examples/jewel/TourDeJewel/target </additionalCompilerOptions> But I'm not getting it to work when debug TDJ. So I'm a bit lost on this. Can you propose the config so I can try it? Thanks -- Carlos Rovira Apache Member & Apache Royale PMC Apache Software Foundation http://about.me/carlosrovira -- Carlos Rovira Apache Member & Apache Royale PMC Apache Software Foundation http://about.me/carlosrovira
