AW: Configuring source maps on Royale with new compiler options

2021-01-06 Thread Christofer Dutz
Coudln't this be replaced automatically by maven?
I mean ... for the CI build it could be overridden to use an apache royale url.

Chris


-Ursprüngliche Nachricht-
Von: Carlos Rovira  
Gesendet: Mittwoch, 6. Januar 2021 12:21
An: Apache Royale Development 
Betreff: Re: Configuring source maps on Royale with new compiler options

Hi Greg, Harbs and others

can you check my new commit on Jewel and TDJ poms to get sourcemaps in 
framework?
We'll need to change the line:

+royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven

for another more generalistic tha allow anyone of us to debug, but I think that 
will mean to upload sourcemaps to some r.a.o url?

What it could be and would this be possible?

Thanks


El mié, 6 ene 2021 a las 12:12, Carlos Rovira ()
escribió:

> Hi Josh, Thanks! That worked and I finally have debugging again! :D
>
> El mar, 5 ene 2021 a las 17:34, Josh Tynjala 
> ()
> escribió:
>
>> Hey Carlos,
>>
>> Try using source-map-source-root with Jewel only, and omit it from TDJ.
>>
>> Jewel:
>>
>> 
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> -source-map=true;
>> -source-map-source-root=/frameworks/projects/Jewel/
>> 
>>
>> TDJ:
>>
>> 
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> -source-map=true;
>> 
>>
>> I hadn't noticed before that you were also trying to use it with TDJ too.
>> You usually want to use the default source root for an app project, 
>> unless you have a specific reason for changing it.
>>
>> --
>> Josh Tynjala
>> Bowler Hat LLC 
>>
>>
>> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira 
>> 
>> wrote:
>>
>> > Hi Chis,
>> >
>> > to get debugging in Royale we now have additional compiler option 
>> > called "source-map-source-root" that complements "source-map".
>> > I try this (without referring to `target` folder as Josh said):
>> >
>> > In Jewel:
>> >
>> > 
>> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > -source-map=true;
>> > -source-map-source-root=/frameworks/projects/Jewel/
>> > 
>> >
>> > and in TDJ:
>> >
>> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > -source-map=true;
>> > -source-map-source-root=/examples/jewel/TourDeJewel
>> > 
>> >
>> > but no luck.
>> >
>> > So if +royalelib doesn't work for Maven maybe it should be 
>> > something
>> like
>> > "-source-map-source-root=$$$/frameworks/projects/Jewel/", where $$$ 
>> > is a token for a valid SDK.
>> > As Josh said "Maven does not have an IDE-compatible SDK", so I 
>> > think we need to add some -DroyaleSDK var like we do when create 
>> > distribution? Or maybe you have a better idea.
>> >
>> > So we'll need to configure that var in local, in build server, and 
>> > so on to generate the right pahs.
>> > Hope this make sense.
>> >
>> > Carlos
>> >
>> >
>> >
>> > El lun, 4 ene 2021 a las 8:31, Christofer Dutz (<
>> christofer.d...@c-ware.de>)
>> > escribió:
>> >
>> >> Hi all,
>> >>
>> >> Sure, happy to help, but what exactly do you need?
>> >>
>> >> Chris
>> >> --
>> >> *Von:* Carlos Rovira 
>> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
>> >> *An:* Josh Tynjala ; Christofer Dutz < 
>> >> christofer.d...@c-ware.de>; Apache Royale Development < 
>> >> dev@royale.apache.org>
>> >> *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 (<
>> joshtynj...@bowlerhat.dev>)
>> >> 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 

AW: Configuring source maps on Royale with new compiler options

2021-01-04 Thread Christofer Dutz
Ok …

I’ll try to have a look at that asap … but gotta finish some other things first.


Chris


Von: Carlos Rovira 
Gesendet: Montag, 4. Januar 2021 10:17
An: Christofer Dutz 
Cc: Josh Tynjala ; Apache Royale Development 

Betreff: Re: Configuring source maps on Royale with new compiler options

Hi Chis,

to get debugging in Royale we now have additional compiler option called 
"source-map-source-root" that complements "source-map".
I try this (without referring to `target` folder as Josh said):

In Jewel:

  
+royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
-source-map=true;
-source-map-source-root=/frameworks/projects/Jewel/
  

and in TDJ:

+royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
-source-map=true;
-source-map-source-root=/examples/jewel/TourDeJewel
  

but no luck.

So if +royalelib doesn't work for Maven maybe it should be something like 
"-source-map-source-root=$$$/frameworks/projects/Jewel/", where $$$ is a token 
for a valid SDK.
As Josh said "Maven does not have an IDE-compatible SDK", so I think we need to 
add some -DroyaleSDK var like we do when create distribution? Or maybe you have 
a better idea.

So we'll need to configure that var in local, in build server, and so on to 
generate the right pahs.
Hope this make sense.

Carlos



El lun, 4 ene 2021 a las 8:31, Christofer Dutz 
(mailto:christofer.d...@c-ware.de>>) escribió:
Hi all,

Sure, happy to help, but what exactly do you need?

Chris

Von: Carlos Rovira mailto:carlosrov...@apache.org>>
Gesendet: Sonntag, 3. Januar 2021 23:23
An: Josh Tynjala mailto:joshtynj...@bowlerhat.dev>>; 
Christofer Dutz mailto:christofer.d...@c-ware.de>>; 
Apache Royale Development mailto:dev@royale.apache.org>>
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 
(mailto:joshtynj...@bowlerhat.dev>>) 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


On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira 
mailto:carlosrov...@apache.org>> 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:

  
-source-map=true;
-source-map-source-root=/frameworks/projects/Jewel/target/
  

And in TDJ this:

-source-map=true;
-source-map-source-root=/examples/jewel/TourDeJewel/target
  

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



--
Carlos Rovira
Apache Member & Apache Royale PMC
Apache Software Foundation
http://about.me/carlosrovira



AW: Configuring source maps on Royale with new compiler options

2021-01-03 Thread Christofer Dutz
Hi all,

Sure, happy to help, but what exactly do you need?

Chris

Von: Carlos Rovira 
Gesendet: Sonntag, 3. Januar 2021 23:23
An: Josh Tynjala ; Christofer Dutz 
; Apache Royale Development 
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 
(mailto:joshtynj...@bowlerhat.dev>>) 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


On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira 
mailto:carlosrov...@apache.org>> 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:

  
-source-map=true;
-source-map-source-root=/frameworks/projects/Jewel/target/
  

And in TDJ this:

-source-map=true;
-source-map-source-root=/examples/jewel/TourDeJewel/target
  

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