You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Carlos Rovira <ca...@apache.org> on 2021/01/03 19:03:13 UTC
Configuring source maps on Royale with new compiler options
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
Re: Configuring source maps on Royale with new compiler options
Posted by Carlos Rovira <ca...@apache.org>.
Hi Chris,
I think we can add this in the root pom.
<additionalCompilerOptions>
-source-map=true;
-source-map-source-root=/frameworks/projects/{$artifactId}/
</additionalCompilerOptions>
Instead of going one by one
What do you think?
El jue, 7 ene 2021 a las 16:42, Carlos Rovira (<ca...@apache.org>)
escribió:
> Hi Josh,
>
> I discover right now that I was understanding wrong how all this works.
> I thought we needed +royalelib in framework libs, but it's not the case.
> Just need to add +royalelib to a final project, so that can be left to the
> user.
>
> That means that we can add to all libs this:
> -source-map-source-root=/frameworks/projects/XXX/target/
> (Where XXX is the root libraryfolder) -> For this I'll be adding in a
> commit soon
>
> So, Chris, we don't need anything more to implement, as I commit the
> -source-map-source-root line in all framework poms.
>
> Another thing is if we should upload all source maps (js.map files) of all
> framework libs to some r.a.o url (for example /debug), and if people can
> point with +royalelib (i.e: +royalelib=http://royale.apache.org/debug )
>
> What do you think?
>
>
>
> El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<jo...@bowlerhat.dev>)
> escribió:
>
>> While we can set source-map-source-root in all of the library projects, I
>> don't think that there's any way for us to specify +royalelib for TDJ and
>> other examples in a general way. That's the one thing that users will
>> probably need to set up manually because the source files come from an
>> IDE-compatible SDK.
>>
>> --
>> Josh Tynjala
>> Bowler Hat LLC <https://bowlerhat.dev>
>>
>>
>> On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <ca...@apache.org>
>> wrote:
>>
>> > 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 (<carlosrovira@apache.org
>> >)
>> > escribió:
>> >
>> > > Hi Josh, Thanks! That worked and I finally have debugging again! :D
>> > >
>> > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
>> joshtynjala@bowlerhat.dev
>> > >)
>> > > escribió:
>> > >
>> > >> Hey Carlos,
>> > >>
>> > >> Try using source-map-source-root with Jewel only, and omit it from
>> TDJ.
>> > >>
>> > >> Jewel:
>> > >>
>> > >> <additionalCompilerOptions>
>> > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > >> -source-map=true;
>> > >> -source-map-source-root=/frameworks/projects/Jewel/
>> > >> </additionalCompilerOptions>
>> > >>
>> > >> TDJ:
>> > >>
>> > >> <additionalCompilerOptions>
>> > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > >> -source-map=true;
>> > >> </additionalCompilerOptions>
>> > >>
>> > >> 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 <https://bowlerhat.dev>
>> > >>
>> > >>
>> > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
>> carlosrovira@apache.org>
>> > >> 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:
>> > >> >
>> > >> > <additionalCompilerOptions>
>> > >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > >> > -source-map=true;
>> > >> > -source-map-source-root=/frameworks/projects/Jewel/
>> > >> > </additionalCompilerOptions>
>> > >> >
>> > >> > and in TDJ:
>> > >> >
>> > >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > >> > -source-map=true;
>> > >> > -source-map-source-root=/examples/jewel/TourDeJewel
>> > >> > </additionalCompilerOptions>
>> > >> >
>> > >> > 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.dutz@c-ware.de>)
>> > >> > escribió:
>> > >> >
>> > >> >> Hi all,
>> > >> >>
>> > >> >> Sure, happy to help, but what exactly do you need?
>> > >> >>
>> > >> >> Chris
>> > >> >> ------------------------------
>> > >> >> *Von:* Carlos Rovira <ca...@apache.org>
>> > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
>> > >> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>; Christofer Dutz <
>> > >> >> christofer.dutz@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 (<
>> > >> joshtynjala@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 <https://bowlerhat.dev>
>> > >> >>
>> > >> >>
>> > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
>> > carlosrovira@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:
>> > >> >>
>> > >> >> <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
>> > >> >>
>> > >> >>
>> > >> >
>> > >> > --
>> > >> > 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
>> >
>>
>
>
> --
> 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
RE: Configuring source maps on Royale with new compiler options
Posted by Maria Jose Esteve <mj...@iest.com>.
I already have everything working, I debug without problems SDK, local library and application.
For now, I do double compilation Maven and ant, not a problem.
Out of curiosity I'm going to look at the differences between build.xml and pom.xml, I'm sure I won't solve anything but for trying ... (this will be tomorrow) waiting for an expert "charitable soul" to have a while to look at it 😝
Goodnight.
Thanks Josh.
Hiedra.
-----Mensaje original-----
De: Josh Tynjala <jo...@bowlerhat.dev>
Enviado el: lunes, 18 de enero de 2021 23:28
Para: Apache Royale Development <de...@royale.apache.org>
Asunto: Re: Configuring source maps on Royale with new compiler options
> Why will the error only occur when I compile the application with
Droyalelib?
An SDK created with Maven is missing that spark.css file. This means that
creating an SDK with Maven is not currently the same as creating an SDK
with Ant. That's a bug. Someone needs to fix it, and then you won't get
that error.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Mon, Jan 18, 2021 at 2:03 PM Maria Jose Esteve <mj...@iest.com>> wrote:
> Hi, he hadn't seen this bug before. It only occurs when I compile with
> Droyalelib. It is a jewel application, and I don't use the option-with-swf
> profile, but with it I also get the same error.
>
> Continuing with the tests, I downloaded the jenkins SDK compilation and
> saw that there did exist the theme / Spark folder and the spark.css file,
> so I compiled my local SDK with ant (I checked that spark.css existed) and
> then I compiled my application with Droyalelib successfully.
>
> Why will the error only occur when I compile the application with
> Droyalelib?
>
> A side effect of putting Droyalelib is that I have lost debugging within
> my library project, but I am still debugging this.
>
> Hiedra.
>
> -----Mensaje original-----
> De: Josh Tynjala <jo...@bowlerhat.dev>>
> Enviado el: lunes, 18 de enero de 2021 19:21
> Para: Apache Royale Development <de...@royale.apache.org>>
> Asunto: Re: Configuring source maps on Royale with new compiler options
>
> If I recall correctly, spark.css is a file that Flash Builder requires to
> be present to be recognized as a valid SDK. I'm surprised that you're
> getting an error about it when run from Maven on the command line, though.
>
> Regardless, it looks like the Maven distribution is missing this file, but
> it is required to be included to be a fully IDE-compatible SDK.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Mon, Jan 18, 2021 at 12:59 AM Maria Jose Esteve <mj...@iest.com>>
> wrote:
>
> > Hello,
> > I compile, run and debug TDJ perfectly with the latest SDK hints and
> > modifications. In my case I only get debugging if I link the frameworks /
> > projects folder: working with vscode we will include in the workspace a
> > path to the asjs folder or directly to the TDJ folder and a path to the
> > projects directory of the SDK - royalelib.
> >
> > But when I try to do the same with my project I can't compile it with
> > Droyalelib I get the error:
> >
> D:\Desarrollo_Royale\Royale-git\fork_sdk_asjs\frameworks\projects\defaults
> > unable to open
> >
> >
> 'D:\Desarrollo_Royale\Royale-git\fork_sdk_asjs\frameworks\themes\Spark\spark.css'.
> > defaults (line: -1)
> >
> > I have looked for information and I have found a couple of entries from a
> > few years ago but I have not gotten anything clear.
> > Does anyone know what happens?
> >
> > I have inspected the SDK and found only one match in the
> > royale-asjs/build.xml (I compile with maven):
> > ...
> > <!-- hack to keep compiler happy -->
> > <mkdir dir="${ROYALE_HOME}/frameworks/themes/Spark" />
> > <echo file="${ROYALE_HOME}/frameworks/themes/Spark/spark.css">/*
> > * Licensed to the Apache Software Foundation (ASF) under one or more
> > * contributor license agreements. See the NOTICE file distributed with
> > * this work for additional information regarding copyright ownership.
> > * The ASF licenses this file to You under the Apache License, Version
> 2.0
> > * (the "License"); you may not use this file except in compliance with
> > * the License. You may obtain a copy of the License at
> > *
> > * http://www.apache.org/licenses/LICENSE-2.0
> > *
> > * Unless required by applicable law or agreed to in writing, software
> > * distributed under the License is distributed on an "AS IS" BASIS,
> > * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> > * See the License for the specific language governing permissions and
> > * limitations under the License.
> > *
> > */
> > /* generated by build script */
> > </echo>
> >
> > I can't move forward with the compilation of my project with Droyalelib.
> >
> > Thx.
> > Hiedra.
> >
> > -----Mensaje original-----
> > De: Carlos Rovira <ca...@apache.org>>
> > Enviado el: domingo, 17 de enero de 2021 12:06
> > Para: Apache Royale Development <de...@royale.apache.org>>
> > Asunto: Re: Configuring source maps on Royale with new compiler options
> >
> > Thanks Josh!
> >
> > I'll take a look in the next few days. I'm these days with some
> > complications but hopefully will return soon :) Thanks for letting me
> know!
> >
> > Carlos
> >
> >
> > El sáb, 16 ene 2021 a las 3:00, Maria Jose Esteve (<mj...@iest.com>>)
> > escribió:
> >
> > > Have you noticed that it recognizes the "... / royale" directory as a
> > > file?
> > >
> > >
> > >
> >
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/Jewel/src/main/royale"
> > >
> > > (I'm looking at this now)
> > > Hiedra
> > >
> > > -----Mensaje original-----
> > > De: Josh Tynjala <jo...@bowlerhat.dev>> Enviado el: viernes, 15
> > > de enero de 2021 20:04
> > > Para: Apache Royale Development <de...@royale.apache.org>>
> > > Asunto: Re: Configuring source maps on Royale with new compiler
> > > options
> > >
> > > Your changes are now working for me!
> > >
> > > I just pulled your latest changes in royale-asjs, running the
> > > following command to build the framework SWCs:
> > >
> > > mvn clean install -DskipTests
> > >
> > > Then, I ran a clean build of TDJ, with the following command:
> > >
> > > mvn clean install
> > > -Droyalelib=c:/Users/josht/Development/apache/royale-asjs/frameworks
> > >
> > > I am seeing the expected full sourceRoot in Button.js.map that
> > > includes the content of -Droyalelib.
> > >
> > >
> > >
> >
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/Jewel/src/main/royale"
> > >
> > > I added a breakpoint in the text setter in Button.as on this line:
> > >
> > > spanLabel.textContent = value;
> > >
> > > And the debugger stopped correctly when I launched in Chrome.
> > >
> > > Your sourceRoot in Button.js.map is wrong. Make sure that you clean
> > > the project when you build, so that you don't have a cached
> > > Button.js.map. And don't forget the -Droyalelib option.
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >
> > >
> > > On Fri, Jan 15, 2021 at 6:40 AM Carlos Rovira
> > > <ca...@apache.org>>
> > > wrote:
> > >
> > > > Oops! You're right Josh, I commited a fix for that.
> > > >
> > > > Anyway, I tried within Jewel adding hardcoded code (as you showed)
> > > > and it didn't worked. In both cases:
> > > >
> > > > For Button.js, I get this:
> > > >
> > > > //# sourceMappingURL=./Button.js.map
> > > >
> > > > and Button.js.map has:
> > > >
> > > > "sourceRoot":"/frameworks/projects/Jewel/src/main/royale/",
> > > >
> > > > If you have the same code, maybe the problem is not maven build but
> > > > something related to VSCode.
> > > >
> > > > Thanks
> > > >
> > > > Carlos
> > > >
> > > >
> > > > El jue, 14 ene 2021 a las 18:55, Josh Tynjala
> > > > (<joshtynjala@bowlerhat.dev
> > > > >)
> > > > escribió:
> > > >
> > > > > This is what I see in the Button.js.map file:
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/{$project.artifactId}/src/main/royale<file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/%7b$project.artifactId%7d/src/main/royale>"
> > > > >
> > > > > The {$project.artifactId} token seems incorrect. Did you mean
> > > > > ${project.artifactId} instead?
> > > > >
> > > > > --
> > > > > Josh Tynjala
> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >
> > > > >
> > > > > On Thu, Jan 14, 2021 at 1:59 AM Carlos Rovira
> > > > > <ca...@apache.org>>
> > > > > wrote:
> > > > >
> > > > > > Hi Josh,
> > > > > >
> > > > > > just tried your recommendations, but seems not to work.
> > > > > >
> > > > > > I added to Jewel:
> > > > > >
> > > > > > <additionalCompilerOptions>
> > > > > > -source-map=true;
> > > > > > -source-map-source-root=/frameworks/projects/Jewel/src/main/roya
> > > > > > le
> > > > > > /
> > > > > > </additionalCompilerOptions>
> > > > > >
> > > > > > and in TDJ just:
> > > > > >
> > > > > > -source-map=true;
> > > > > >
> > > > > > I added in my VSCode tasks the argument to compile TDJ
> > > > > >
> > > > > > "args": [
> > > > > > "clean",
> > > > > > "install",
> > > > > > "-P option-with-swf",
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> "-Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks"
> > > > > > ,
> > > > > > "-DskipTests"
> > > > > > ]
> > > > > >
> > > > > > setting a break point in jewel button is marked with an empty
> > > > > > circle in VSCode and doesn't stop, but TDJ works ok.
> > > > > >
> > > > > > I think I followed your indications right, and also committed
> > > > > > (but the commit is more general since I added the config to
> > > > > > frameworks/projects
> > > > to
> > > > > > affect to all SWC libs at once). Maybe there's some detail that
> > > > > > is preventing it to work.
> > > > > >
> > > > > > Thanks for your time and taking a look
> > > > > >
> > > > > > Carlos
> > > > > >
> > > > > >
> > > > > > El jue, 14 ene 2021 a las 9:25, Maria Jose Esteve
> > > > > > (<mjesteve@iest.com
> > > > >)
> > > > > > escribió:
> > > > > >
> > > > > > > Hi, It does not work for me.
> > > > > > > I have modified Jewel's pom.xml, main pom "/ projects /" and
> > > > > > > have
> > > > > > modified
> > > > > > > my maven build to include the Droyalelib option with the path
> > > > > > > to my / frameworks directory, the result error.
> > > > > > > Do I have to modify something else ?, the sdk does not compile
> > > > > > >
> > > > > > > Thx
> > > > > > > Hiedra
> > > > > > >
> > > > > > > -----Mensaje original-----
> > > > > > > De: Josh Tynjala <jo...@bowlerhat.dev>> Enviado el:
> > > > > > > jueves,
> > > > > > > 14 de enero de 2021 0:40
> > > > > > > Para: Apache Royale Development <de...@royale.apache.org>>
> > > > > > > Asunto: Re: Configuring source maps on Royale with new
> > > > > > > compiler
> > > > options
> > > > > > >
> > > > > > > Okay, I've determined a couple of tweaks to the process that
> > > > > > > made
> > > > > things
> > > > > > > work on my machine to allow source map debugging with Maven.
> > > > > > >
> > > > > > > The source-map-source-root for Jewel and other SDK libs must
> > > > > > > include src/main/royale/ at the end.
> > > > > > >
> > > > > > > <additionalCompilerOptions>
> > > > > > > -source-map=true;
> > > > > > >
> > > > > > > -source-map-source-root=/frameworks/projects/Jewel/src/main/ro
> > > > > > > ya
> > > > > > > le/
> > > > > > > </additionalCompilerOptions>
> > > > > > >
> > > > > > > For TDJ and other apps, you only need the source-map option.
> > > > > > > Do NOT
> > > > add
> > > > > > > source-map-source-root and do NOT add +royalelib.
> > > > > > >
> > > > > > > <additionalCompilerOptions>
> > > > > > > -source-map=true;
> > > > > > > </additionalCompilerOptions>
> > > > > > >
> > > > > > > Instead add an extra -Droyalelib option to your mvn command
> > > > > > > line. For
> > > > > > > example:
> > > > > > >
> > > > > > > mvn clean install
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > -Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/
> > > > fr
> > > > ameworks
> > > > > > >
> > > > > > > --
> > > > > > > Josh Tynjala
> > > > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >
> > > > > > >
> > > > > > > On Wed, Jan 13, 2021 at 2:57 PM Josh Tynjala <
> > > > > joshtynjala@bowlerhat.dev<ma...@bowlerhat.dev>>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > I just gave it a try myself, and it looks like the compiler
> > > > > > > > is
> > > > > failing
> > > > > > > > to recognize the +royalelib token when you try to put it
> > > > > > > > into
> > > > Maven's
> > > > > > > > additionalCompilerOptions. As I implied, it was certainly
> > > > > > > > possible that this might or might not work.
> > > > > > > >
> > > > > > > > I'll let you know if I have another suggestion.
> > > > > > > >
> > > > > > > > --
> > > > > > > > Josh Tynjala
> > > > > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > >
> > > > > > > >
> > > > > > > > On Sat, Jan 9, 2021 at 1:01 AM Carlos Rovira <
> > > > > carlosrovira@apache.org<ma...@apache.org>>
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > >> Hi Josh,
> > > > > > > >>
> > > > > > > >> Thanks for taking a look, I'll check maven distribution to
> > > > > > > >> see how
> > > > > to
> > > > > > > >> add the missing folder. It's strange since I think I was
> > > > > > > >> debugging against the Maven SDK until now.
> > > > > > > >>
> > > > > > > >> I made now a quick try with ANT SDK, after my daily build
> > > > completed,
> > > > > > > >> with your latest changes from yesterday, and compiled TDJ
> > with:
> > > > > > > >>
> > > > > > > >>
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/frame
> > > > > +wo
> > > > > +r
> > > > > > > >> +ks
> > > > > > > >>
> > > > > > > >> to point to ANT instead to MAVEN, and the result was the
> > > > > > > >> same for royale ANT sdk: TDJ stops at breakpoints in VSCode
> > > > > > > >> but
> > > Jewel not.
> > > > I
> > > > > > > >> thought that ANT SDK should work right, isn't?
> > > > > > > >>
> > > > > > > >> Thanks
> > > > > > > >>
> > > > > > > >>
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> El vie, 8 ene 2021 a las 22:57, Greg Dove
> > > > > > > >> (<gr...@gmail.com>>)
> > > > > > > >> escribió:
> > > > > > > >>
> > > > > > > >> > Thanks Josh, I guess there was still something cached at
> > > > > > > >> > a different
> > > > > > > >> level
> > > > > > > >> > in our local m2 that meant it was still working for
> > > > > > > >> > Hiedra and
> > > > me.
> > > > > > > >> > Nice sleuthing!
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> > On Sat, Jan 9, 2021 at 10:43 AM Josh Tynjala
> > > > > > > >> > <joshtynjala@bowlerhat.dev
> > > > > > > >> >
> > > > > > > >> > wrote:
> > > > > > > >> >
> > > > > > > >> > > Following up, since I can now successfully build the
> > > > > > > >> > > Maven
> > > > > > > >> distribution
> > > > > > > >> > > again.
> > > > > > > >> > >
> > > > > > > >> > > I've confirmed that frameworks/projects is missing from
> > > > > > > >> > > a
> > > > Maven
> > > > > > > >> > > distribution, like I had observed in the past. With
> > > > > > > >> > > that in
> > > > > mind,
> > > > > > > >> > > a
> > > > > > > >> Maven
> > > > > > > >> > > distribution cannot currently be referenced with
> > > > > > > >> > > +royalelib
> > > > for
> > > > > > > >> > > sourcemap-enabled debugging with the original .as files.
> > > > > > > >> > >
> > > > > > > >> > > --
> > > > > > > >> > > Josh Tynjala
> > > > > > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > >> > >
> > > > > > > >> > >
> > > > > > > >> > > On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <
> > > > > > > >> joshtynjala@bowlerhat.dev<ma...@bowlerhat.dev>>
> > > > > > > >> > > wrote:
> > > > > > > >> > >
> > > > > > > >> > > > Carlos, are you using a Maven distribution as your
> > > > > > > >> > > > IDE-compatible
> > > > > > > >> SDK?
> > > > > > > >> > > The
> > > > > > > >> > > > last time that I built one, I seem to recall that the
> > > > > > > >> > > > distribution
> > > > > > > >> did
> > > > > > > >> > > not
> > > > > > > >> > > > include the original .as source files. I don't know
> > > > > > > >> > > > if
> > > > that's
> > > > > > > >> > > > still
> > > > > > > >> the
> > > > > > > >> > > > case or not. I tried building a Maven distribution
> > > > > > > >> > > > today to check,
> > > > > > > >> but
> > > > > > > >> > > the
> > > > > > > >> > > > build fails due to the current compiler being on
> > > > > > > >> > > > version
> > > > 0.9.9
> > > > > > > >> > > > and
> > > > > > > >> the
> > > > > > > >> > > > framework still expecting 0.9.8.
> > > > > > > >> > > >
> > > > > > > >> > > > --
> > > > > > > >> > > > Josh Tynjala
> > > > > > > >> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
> > > > > > > >> carlosrovira@apache.org<ma...@apache.org>
> > > > > > > >> > >
> > > > > > > >> > > > wrote:
> > > > > > > >> > > >
> > > > > > > >> > > >> Hi Josh,
> > > > > > > >> > > >>
> > > > > > > >> > > >> thanks, I added "frameworks" in TDJ +royalelib but
> > > > > > > >> > > >> seems it doesn't
> > > > > > > >> > have
> > > > > > > >> > > >> effect, stil debug TDJ but not classes in Jewel.
> > > > > > > >> > > >> Don't see what it could be :?
> > > > > > > >> > > >>
> > > > > > > >> > > >> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > > > > > > >> > > joshtynjala@bowlerhat.dev<ma...@bowlerhat.dev>
> > > > > > > >> > > >> >)
> > > > > > > >> > > >> escribió:
> > > > > > > >> > > >>
> > > > > > > >> > > >> > Looking over previous emails in this thread, it
> > > > > > > >> > > >> > looks
> > > > like
> > > > > > > >> > > >> > you
> > > > > > > >> > forgot
> > > > > > > >> > > to
> > > > > > > >> > > >> > add /frameworks at the end of the +royalelib path.
> > > > > > > >> > > >> >
> > > > > > > >> > > >> > You have:
> > > > > > > >> > > >> >
> > > > > > > >> > > >> >
> > > > > > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royal
> > > > > > > >> +e-
> > > > > > > >> +maven
> > > > > > > >> > > >> >
> > > > > > > >> > > >> > It should be:
> > > > > > > >> > > >> >
> > > > > > > >> > > >> >
> > > > > > > >> > > >> >
> > > > > > > >> > > >>
> > > > > > > >> > >
> > > > > > > >> >
> > > > > > > >>
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > +/f
> > > > > +r
> > > > > > > >> +ameworks
> > > > > > > >> > > >> >
> > > > > > > >> > > >> > --
> > > > > > > >> > > >> > Josh Tynjala
> > > > > > > >> > > >> > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > >> > > >> >
> > > > > > > >> > > >> >
> > > > > > > >> > > >> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > > > > > > >> > > carlosrovira@apache.org<ma...@apache.org>>
> > > > > > > >> > > >> > wrote:
> > > > > > > >> > > >> >
> > > > > > > >> > > >> > > Hi,
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > > just fyi I added:
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> >
> > > > > > > >>
> > > > -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > > at frameworks/projects/pom.xml so now we have
> > > > > > > >> > > >> > > setup
> > > > > source
> > > > > > > >> > > >> > > maps in all libraries
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > > but while that seems ok, I'm not getting lib
> > > > > > > >> > > >> > > debugging
> > > > as
> > > > > > > >> > > >> > > I
> > > > > > > >> stated
> > > > > > > >> > > in
> > > > > > > >> > > >> my
> > > > > > > >> > > >> > > last email.
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > > > > > > >> > > >> carlosrovira@apache.org<ma...@apache.org>
> > > > > > > >> > > >> > >)
> > > > > > > >> > > >> > > escribió:
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > > > Ok Josh,
> > > > > > > >> > > >> > > >
> > > > > > > >> > > >> > > > so all seems ok, but debug is not working in
> > > > > > > >> > > >> > > > classes from
> > > > > > > >> Jewel
> > > > > > > >> > > lib.
> > > > > > > >> > > >> > > > I see the jewel.swc has the js.map files in
> > > > > > > >> > > >> > > > the same
> > > > > way
> > > > > > > >> > > >> > > > I
> > > > > > > >> > > related,
> > > > > > > >> > > >> so
> > > > > > > >> > > >> > > > that's ok as you stated.
> > > > > > > >> > > >> > > > I'm setting breakpoints in the same VSCode
> > > > > > > >> > > >> > > > window for Jewel
> > > > > > > >> and
> > > > > > > >> > > TDJ
> > > > > > > >> > > >> > > files,
> > > > > > > >> > > >> > > > but only TDJ files (in the root or subfolders)
> > > > > > > >> > > >> > > > are making
> > > > > > > >> > > execution
> > > > > > > >> > > >> > stop.
> > > > > > > >> > > >> > > > If I set up a breakpoint in let's say Jewel
> > > > Button.as,
> > > > > > > >> > > >> > > > that
> > > > > > > >> > > appears
> > > > > > > >> > > >> > empty
> > > > > > > >> > > >> > > > on execution and doesn't have effect, while
> > > > > > > >> > > >> > > > TDJ
> > > > appears
> > > > > > > >> > > >> > > > red
> > > > > > > >> and
> > > > > > > >> > > >> works
> > > > > > > >> > > >> > ok.
> > > > > > > >> > > >> > > >
> > > > > > > >> > > >> > > > Do you know what could be happening?
> > > > > > > >> > > >> > > >
> > > > > > > >> > > >> > > >
> > > > > > > >> > > >> > > >
> > > > > > > >> > > >> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala
> > > > > > > >> > > >> > > > (<
> > > > > > > >> > > >> > joshtynjala@bowlerhat.dev<ma...@bowlerhat.dev>
> > > > > > > >> > > >> > > >)
> > > > > > > >> > > >> > > > escribió:
> > > > > > > >> > > >> > > >
> > > > > > > >> > > >> > > >> The path of the .js.map file is relative to
> > > > > > > >> > > >> > > >> the .js
> > > > > > file.
> > > > > > > >> > Since
> > > > > > > >> > > >> the
> > > > > > > >> > > >> > > >> .js.map file is supposed to be in the same
> > > > > > > >> > > >> > > >> folder as the .js
> > > > > > > >> > > file,
> > > > > > > >> > > >> > that
> > > > > > > >> > > >> > > >> looks correct to me.
> > > > > > > >> > > >> > > >>
> > > > > > > >> > > >> > > >> --
> > > > > > > >> > > >> > > >> Josh Tynjala
> > > > > > > >> > > >> > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > >> > > >> > > >>
> > > > > > > >> > > >> > > >>
> > > > > > > >> > > >> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira
> > > > > > > >> > > >> > > >> <
> > > > > > > >> > > >> > carlosrovira@apache.org<ma...@apache.org>>
> > > > > > > >> > > >> > > >> wrote:
> > > > > > > >> > > >> > > >>
> > > > > > > >> > > >> > > >> > Hi Josh,
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >> > > >> > I'm trying to debug jewel classes in TDJ
> > > > > > > >> > > >> > > >> > and for example
> > > > > > > >> > > >> > > >> AlertController.js
> > > > > > > >> > > >> > > >> > has at the end:
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >> > > >> > //#
> > > > > > > >> > > >> > > >> > sourceMappingURL=./AlertController.js.map
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >> > > >> > It's ok? I expect it to reference the
> > > > > > > >> > > >> > > >> > concrete
> > > > > > > subfolder:
> > > > > > > >> > > >> > > >> > org/apache/royale/jewel/beads/controllers
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >> > > >> > El jue, 7 ene 2021 a las 18:23, Josh
> > > > > > > >> > > >> > > >> > Tynjala (<
> > > > > > > >> > > >> > > >> joshtynjala@bowlerhat.dev<ma...@bowlerhat.dev>>)
> > > > > > > >> > > >> > > >> > escribió:
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >> > > >> > > Yes, you're right that +royalelib should
> > > > > > > >> > > >> > > >> > > not be required
> > > > > > > >> > for
> > > > > > > >> > > >> > > framework
> > > > > > > >> > > >> > > >> > > libs. I wasn't paying close enough
> > > > > > > >> > > >> > > >> > > attention to
> > > > > see
> > > > > > > >> > > >> > > >> > > that
> > > > > > > >> > you
> > > > > > > >> > > >> had
> > > > > > > >> > > >> > > added
> > > > > > > >> > > >> > > >> > > +royalelib to both Jewel and TDJ.
> > > > > > > >> > > >> > > >> > >
> > > > > > > >> > > >> > > >> > > So, to summarize, you should use
> > > > > > > >> > > >> > > >> > > source-map-source-root
> > > > > > > >> > when
> > > > > > > >> > > >> > > building
> > > > > > > >> > > >> > > >> > > framework libs, and you should use
> > > > > > > >> > > >> > > >> > > +royalelib
> > > > when
> > > > > > > >> building
> > > > > > > >> > > >> > > >> > examples/apps.
> > > > > > > >> > > >> > > >> > > +royalelib is not necessary for framework
> > > > > > > >> > > >> > > >> > > +libs,
> > > > > and
> > > > > > > >> > > >> > > >> > source-map-source-root
> > > > > > > >> > > >> > > >> > > is (generally) not necessary for
> > > examples/apps.
> > > > > > > >> > > >> > > >> > >
> > > > > > > >> > > >> > > >> > > --
> > > > > > > >> > > >> > > >> > > Josh Tynjala Bowler Hat LLC
> > > > > > > >> > > >> > > >> > > <https://bowlerhat.dev>
> > > > > > > >> > > >> > > >> > >
> > > > > > > >> > > >> > > >> > >
> > > > > > > >> > > >> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos
> > > > > > > >> > > >> > > >> > > Rovira <
> > > > > > > >> > > >> > > carlosrovira@apache.org<ma...@apache.org>
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >> > > >> > > wrote:
> > > > > > > >> > > >> > > >> > >
> > > > > > > >> > > >> > > >> > > > Hi Josh,
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > > I discover right now that I was
> > > > > > > >> > > >> > > >> > > > understanding wrong
> > > > > > > >> how
> > > > > > > >> > all
> > > > > > > >> > > >> this
> > > > > > > >> > > >> > > >> works.
> > > > > > > >> > > >> > > >> > > > I thought we needed +royalelib in
> > > > > > > >> > > >> > > >> > > > framework
> > > > > libs,
> > > > > > > >> > > >> > > >> > > > but
> > > > > > > >> > it's
> > > > > > > >> > > >> not
> > > > > > > >> > > >> > the
> > > > > > > >> > > >> > > >> > case.
> > > > > > > >> > > >> > > >> > > > Just need to add +royalelib to a final
> > > > project,
> > > > > > > >> > > >> > > >> > > > so
> > > > > > > >> that
> > > > > > > >> > can
> > > > > > > >> > > >> be
> > > > > > > >> > > >> > > left
> > > > > > > >> > > >> > > >> to
> > > > > > > >> > > >> > > >> > > the
> > > > > > > >> > > >> > > >> > > > user.
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > > That means that we can add to all libs
> > this:
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >>
> > > > > > > >> > > >> -source-map-source-root=/frameworks/projects/XXX/tar
> > > > > > > >> > > >> ge
> > > > > > > >> > > >> t/
> > > > > > > >> > > >> > > >> > > > (Where XXX is the root libraryfolder)
> > > > > > > >> > > >> > > >> > > > -> For
> > > > > this
> > > > > > > >> I'll be
> > > > > > > >> > > >> adding
> > > > > > > >> > > >> > > in
> > > > > > > >> > > >> > > >> a
> > > > > > > >> > > >> > > >> > > > commit soon
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > > So, Chris, we don't need anything more
> > > > > > > >> > > >> > > >> > > > to implement,
> > > > > > > >> as I
> > > > > > > >> > > >> commit
> > > > > > > >> > > >> > > the
> > > > > > > >> > > >> > > >> > > > -source-map-source-root line in all
> > > > > > > >> > > >> > > >> > > > framework
> > > > > > poms.
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > > Another thing is if we should upload
> > > > > > > >> > > >> > > >> > > > all
> > > > source
> > > > > > > >> > > >> > > >> > > > maps
> > > > > > > >> > > (js.map
> > > > > > > >> > > >> > > files)
> > > > > > > >> > > >> > > >> of
> > > > > > > >> > > >> > > >> > > all
> > > > > > > >> > > >> > > >> > > > framework libs to some r.a.o url (for
> > > > > > > >> > > >> > > >> > > > example /debug),
> > > > > > > >> > and
> > > > > > > >> > > if
> > > > > > > >> > > >> > > people
> > > > > > > >> > > >> > > >> > can
> > > > > > > >> > > >> > > >> > > > point with +royalelib (i.e: +royalelib=
> > > > > > > >> > > >> > > >> http://royale.apache.org/debug
> > > > > > > >> > > >> > > >> > )
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > > What do you think?
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh
> > > > > > > >> > > >> > > >> > > > Tynjala
> > > > (<
> > > > > > > >> > > >> > > >> > joshtynjala@bowlerhat.dev<ma...@bowlerhat.dev>
> > > > > > > >> > > >> > > >> > > >)
> > > > > > > >> > > >> > > >> > > > escribió:
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > > > While we can set
> > > > > > > >> > > >> > > >> > > > > source-map-source-root in
> > > > all
> > > > > > > >> > > >> > > >> > > > > of
> > > > > > > >> the
> > > > > > > >> > > >> library
> > > > > > > >> > > >> > > >> > > projects, I
> > > > > > > >> > > >> > > >> > > > > don't think that there's any way for
> > > > > > > >> > > >> > > >> > > > > us to specify
> > > > > > > >> > > >> +royalelib
> > > > > > > >> > > >> > > for
> > > > > > > >> > > >> > > >> TDJ
> > > > > > > >> > > >> > > >> > > and
> > > > > > > >> > > >> > > >> > > > > other examples in a general way.
> > > > > > > >> > > >> > > >> > > > > That's the
> > > > > one
> > > > > > > >> thing
> > > > > > > >> > > that
> > > > > > > >> > > >> > users
> > > > > > > >> > > >> > > >> will
> > > > > > > >> > > >> > > >> > > > > probably need to set up manually
> > > > > > > >> > > >> > > >> > > > > because the source
> > > > > > > >> > files
> > > > > > > >> > > >> come
> > > > > > > >> > > >> > > >> from
> > > > > > > >> > > >> > > >> > an
> > > > > > > >> > > >> > > >> > > > > IDE-compatible SDK.
> > > > > > > >> > > >> > > >> > > > >
> > > > > > > >> > > >> > > >> > > > > --
> > > > > > > >> > > >> > > >> > > > > Josh Tynjala Bowler Hat LLC
> > > > > > > >> > > >> > > >> > > > > <https://bowlerhat.dev>
> > > > > > > >> > > >> > > >> > > > >
> > > > > > > >> > > >> > > >> > > > >
> > > > > > > >> > > >> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos
> > > > Rovira <
> > > > > > > >> > > >> > > >> > carlosrovira@apache.org<ma...@apache.org>>
> > > > > > > >> > > >> > > >> > > > > wrote:
> > > > > > > >> > > >> > > >> > > > >
> > > > > > > >> > > >> > > >> > > > > > 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-mave
> > > > > > > >> > > +n
> > > > > > > >> > > >> > > >> > > > > >
> > > > > > > >> > > >> > > >> > > > > > 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
> > > > > > > >> > > >> > > >> > > > > > (<
> > > > > > > >> > > >> > > >> > > > carlosrovira@apache.org<ma...@apache.org>
> > > > > > > >> > > >> > > >> > > > > >)
> > > > > > > >> > > >> > > >> > > > > > escribió:
> > > > > > > >> > > >> > > >> > > > > >
> > > > > > > >> > > >> > > >> > > > > > > Hi Josh, Thanks! That worked and
> > > > > > > >> > > >> > > >> > > > > > > I
> > > > finally
> > > > > > > >> > > >> > > >> > > > > > > have
> > > > > > > >> > > >> debugging
> > > > > > > >> > > >> > > >> again!
> > > > > > > >> > > >> > > >> > :D
> > > > > > > >> > > >> > > >> > > > > > >
> > > > > > > >> > > >> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34,
> > > > > > > >> > > >> > > >> > > > > > > Josh Tynjala (<
> > > > > > > >> > > >> > > >> > > > > joshtynjala@bowlerhat.dev<ma...@bowlerhat.dev>
> > > > > > > >> > > >> > > >> > > > > > >)
> > > > > > > >> > > >> > > >> > > > > > > escribió:
> > > > > > > >> > > >> > > >> > > > > > >
> > > > > > > >> > > >> > > >> > > > > > >> Hey Carlos,
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> > > > > > >> Try using source-map-source-root
> > > > > > > >> > > >> > > >> > > > > > >> with Jewel
> > > > > > > >> only,
> > > > > > > >> > > and
> > > > > > > >> > > >> > omit
> > > > > > > >> > > >> > > it
> > > > > > > >> > > >> > > >> > from
> > > > > > > >> > > >> > > >> > > > > TDJ.
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> > > > > > >> Jewel:
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >>
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > > > >> > > >> +aven
> > > > > > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> > > > > > >> TDJ:
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >>
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > > > >> > > >> +aven
> > > > > > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > > > > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> > > > > > >> 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
> > > > > > > >> > > >> > > >> > > > > > >> <https://bowlerhat.dev>
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM
> > > > > > > >> > > >> > > >> > > > > > >> Carlos Rovira <
> > > > > > > >> > > >> > > >> > > > carlosrovira@apache.org<ma...@apache.org>
> > > > > > > >> > > >> > > >> > > > > >
> > > > > > > >> > > >> > > >> > > > > > >> 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:
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > > > > > >> > <additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > >
> > > > > > > >> > > >>
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > > > >> > > >> +aven
> > > > > > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > > > > > >> > and in TDJ:
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > >
> > > > > > > >> > > >>
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > > > >> > > >> +aven
> > > > > > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > > > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > > > > > >> > but no luck.
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > > > > > >> > So if +royalelib doesn't work
> > > > > > > >> > > >> > > >> > > > > > >> > for
> > > > Maven
> > > > > > > >> maybe it
> > > > > > > >> > > >> should
> > > > > > > >> > > >> > > be
> > > > > > > >> > > >> > > >> > > > something
> > > > > > > >> > > >> > > >> > > > > > >> like
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > "-source-map-source-root=$$$/frameworks/projects/J
> > > > > > > >> > > >> > ew
> > > > > > > >> > > >> > el/",
> > > > > > > >> > > >> > > >> > 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.dutz@c-ware.de<ma...@c-ware.de>>)
> > > > > > > >> > > >> > > >> > > > > > >> > escribió:
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > > > > > >> >> Hi all,
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > > >> >> Sure, happy to help, but what
> > > > exactly
> > > > > > > >> > > >> > > >> > > > > > >> >> do you
> > > > > > > >> > > need?
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > > >> >> Chris
> > > > > > > >> > > >> > > >> > > > > > >> >> -----------------------------
> > > > > > > >> > > >> > > >> > > > > > >> >> -
> > > > > > > >> > > >> > > >> > > > > > >> >> *Von:* Carlos Rovira <
> > > > > > > >> carlosrovira@apache.org<ma...@apache.org>>
> > > > > > > >> > > >> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3.
> > > > > > > >> > > >> > > >> > > > > > >> >> Januar
> > > > > > > >> > > >> > > >> > > > > > >> >> 2021
> > > > > > > >> > > >> > > >> > > > > > >> >> 23:23
> > > > > > > >> > > >> > > >> > > > > > >> >> *An:* Josh Tynjala <
> > > > > > > >> joshtynjala@bowlerhat.dev<ma...@bowlerhat.dev>
> > > > > > > >> > >;
> > > > > > > >> > > >> > > >> Christofer
> > > > > > > >> > > >> > > >> > > Dutz
> > > > > > > >> > > >> > > >> > > > <
> > > > > > > >> > > >> > > >> > > > > > >> >> christofer.dutz@c-ware.de<ma...@c-ware.de>>;
> > > > > > > >> > > >> > > >> > > > > > >> >> Apache Royale
> > > > > > > >> > > >> > Development <
> > > > > > > >> > > >> > > >> > > > > > >> >> dev@royale.apache.org<ma...@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 (<
> > > > > > > >> > > >> > > >> > > > > > >> joshtynjala@bowlerhat.dev<ma...@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/framewo
> > > > > > > >> > > >> > > >> > > > > > >> >> +rks/
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > > >> >> 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 <
> > > > > > > >> > > >> > > >> > > > > > carlosrovira@apache.org<ma...@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:
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > <additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >> >> -source-map=true;
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > >
> > > > > > > >> > > >> -source-map-source-root=/frameworks/projects/Jewel/t
> > > > > > > >> > > >> ar
> > > > > > > >> > > >> get/
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > </additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > > >> >> And in TDJ this:
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > > >> >> -source-map=true;
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > >
> > > > > > > >> > > >> -source-map-source-root=/examples/jewel/TourDeJewel/
> > > > > > > >> > > >> ta
> > > > > > > >> > > >> rget
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > </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
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > > > > > >> > -- 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
> > > > > > > >> > > >> > > >> > > > > >
> > > > > > > >> > > >> > > >> > > > >
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > > --
> > > > > > > >> > > >> > > >> > > > 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
> > > > > > > >> > > >> > > >
> > > > > > > >> > > >> > > >
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > > --
> > > > > > > >> > > >> > > 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
> > > > > > > >>
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > 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
> >
>
Re: Configuring source maps on Royale with new compiler options
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
> Why will the error only occur when I compile the application with
Droyalelib?
An SDK created with Maven is missing that spark.css file. This means that
creating an SDK with Maven is not currently the same as creating an SDK
with Ant. That's a bug. Someone needs to fix it, and then you won't get
that error.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Mon, Jan 18, 2021 at 2:03 PM Maria Jose Esteve <mj...@iest.com> wrote:
> Hi, he hadn't seen this bug before. It only occurs when I compile with
> Droyalelib. It is a jewel application, and I don't use the option-with-swf
> profile, but with it I also get the same error.
>
> Continuing with the tests, I downloaded the jenkins SDK compilation and
> saw that there did exist the theme / Spark folder and the spark.css file,
> so I compiled my local SDK with ant (I checked that spark.css existed) and
> then I compiled my application with Droyalelib successfully.
>
> Why will the error only occur when I compile the application with
> Droyalelib?
>
> A side effect of putting Droyalelib is that I have lost debugging within
> my library project, but I am still debugging this.
>
> Hiedra.
>
> -----Mensaje original-----
> De: Josh Tynjala <jo...@bowlerhat.dev>
> Enviado el: lunes, 18 de enero de 2021 19:21
> Para: Apache Royale Development <de...@royale.apache.org>
> Asunto: Re: Configuring source maps on Royale with new compiler options
>
> If I recall correctly, spark.css is a file that Flash Builder requires to
> be present to be recognized as a valid SDK. I'm surprised that you're
> getting an error about it when run from Maven on the command line, though.
>
> Regardless, it looks like the Maven distribution is missing this file, but
> it is required to be included to be a fully IDE-compatible SDK.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Mon, Jan 18, 2021 at 12:59 AM Maria Jose Esteve <mj...@iest.com>
> wrote:
>
> > Hello,
> > I compile, run and debug TDJ perfectly with the latest SDK hints and
> > modifications. In my case I only get debugging if I link the frameworks /
> > projects folder: working with vscode we will include in the workspace a
> > path to the asjs folder or directly to the TDJ folder and a path to the
> > projects directory of the SDK - royalelib.
> >
> > But when I try to do the same with my project I can't compile it with
> > Droyalelib I get the error:
> >
> D:\Desarrollo_Royale\Royale-git\fork_sdk_asjs\frameworks\projects\defaults
> > unable to open
> >
> >
> 'D:\Desarrollo_Royale\Royale-git\fork_sdk_asjs\frameworks\themes\Spark\spark.css'.
> > defaults (line: -1)
> >
> > I have looked for information and I have found a couple of entries from a
> > few years ago but I have not gotten anything clear.
> > Does anyone know what happens?
> >
> > I have inspected the SDK and found only one match in the
> > royale-asjs/build.xml (I compile with maven):
> > ...
> > <!-- hack to keep compiler happy -->
> > <mkdir dir="${ROYALE_HOME}/frameworks/themes/Spark" />
> > <echo file="${ROYALE_HOME}/frameworks/themes/Spark/spark.css">/*
> > * Licensed to the Apache Software Foundation (ASF) under one or more
> > * contributor license agreements. See the NOTICE file distributed with
> > * this work for additional information regarding copyright ownership.
> > * The ASF licenses this file to You under the Apache License, Version
> 2.0
> > * (the "License"); you may not use this file except in compliance with
> > * the License. You may obtain a copy of the License at
> > *
> > * http://www.apache.org/licenses/LICENSE-2.0
> > *
> > * Unless required by applicable law or agreed to in writing, software
> > * distributed under the License is distributed on an "AS IS" BASIS,
> > * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> > * See the License for the specific language governing permissions and
> > * limitations under the License.
> > *
> > */
> > /* generated by build script */
> > </echo>
> >
> > I can't move forward with the compilation of my project with Droyalelib.
> >
> > Thx.
> > Hiedra.
> >
> > -----Mensaje original-----
> > De: Carlos Rovira <ca...@apache.org>
> > Enviado el: domingo, 17 de enero de 2021 12:06
> > Para: Apache Royale Development <de...@royale.apache.org>
> > Asunto: Re: Configuring source maps on Royale with new compiler options
> >
> > Thanks Josh!
> >
> > I'll take a look in the next few days. I'm these days with some
> > complications but hopefully will return soon :) Thanks for letting me
> know!
> >
> > Carlos
> >
> >
> > El sáb, 16 ene 2021 a las 3:00, Maria Jose Esteve (<mj...@iest.com>)
> > escribió:
> >
> > > Have you noticed that it recognizes the "... / royale" directory as a
> > > file?
> > >
> > >
> > >
> >
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/Jewel/src/main/royale"
> > >
> > > (I'm looking at this now)
> > > Hiedra
> > >
> > > -----Mensaje original-----
> > > De: Josh Tynjala <jo...@bowlerhat.dev> Enviado el: viernes, 15
> > > de enero de 2021 20:04
> > > Para: Apache Royale Development <de...@royale.apache.org>
> > > Asunto: Re: Configuring source maps on Royale with new compiler
> > > options
> > >
> > > Your changes are now working for me!
> > >
> > > I just pulled your latest changes in royale-asjs, running the
> > > following command to build the framework SWCs:
> > >
> > > mvn clean install -DskipTests
> > >
> > > Then, I ran a clean build of TDJ, with the following command:
> > >
> > > mvn clean install
> > > -Droyalelib=c:/Users/josht/Development/apache/royale-asjs/frameworks
> > >
> > > I am seeing the expected full sourceRoot in Button.js.map that
> > > includes the content of -Droyalelib.
> > >
> > >
> > >
> >
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/Jewel/src/main/royale"
> > >
> > > I added a breakpoint in the text setter in Button.as on this line:
> > >
> > > spanLabel.textContent = value;
> > >
> > > And the debugger stopped correctly when I launched in Chrome.
> > >
> > > Your sourceRoot in Button.js.map is wrong. Make sure that you clean
> > > the project when you build, so that you don't have a cached
> > > Button.js.map. And don't forget the -Droyalelib option.
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >
> > >
> > > On Fri, Jan 15, 2021 at 6:40 AM Carlos Rovira
> > > <ca...@apache.org>
> > > wrote:
> > >
> > > > Oops! You're right Josh, I commited a fix for that.
> > > >
> > > > Anyway, I tried within Jewel adding hardcoded code (as you showed)
> > > > and it didn't worked. In both cases:
> > > >
> > > > For Button.js, I get this:
> > > >
> > > > //# sourceMappingURL=./Button.js.map
> > > >
> > > > and Button.js.map has:
> > > >
> > > > "sourceRoot":"/frameworks/projects/Jewel/src/main/royale/",
> > > >
> > > > If you have the same code, maybe the problem is not maven build but
> > > > something related to VSCode.
> > > >
> > > > Thanks
> > > >
> > > > Carlos
> > > >
> > > >
> > > > El jue, 14 ene 2021 a las 18:55, Josh Tynjala
> > > > (<joshtynjala@bowlerhat.dev
> > > > >)
> > > > escribió:
> > > >
> > > > > This is what I see in the Button.js.map file:
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/{$project.artifactId}/src/main/royale"
> > > > >
> > > > > The {$project.artifactId} token seems incorrect. Did you mean
> > > > > ${project.artifactId} instead?
> > > > >
> > > > > --
> > > > > Josh Tynjala
> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >
> > > > >
> > > > > On Thu, Jan 14, 2021 at 1:59 AM Carlos Rovira
> > > > > <ca...@apache.org>
> > > > > wrote:
> > > > >
> > > > > > Hi Josh,
> > > > > >
> > > > > > just tried your recommendations, but seems not to work.
> > > > > >
> > > > > > I added to Jewel:
> > > > > >
> > > > > > <additionalCompilerOptions>
> > > > > > -source-map=true;
> > > > > > -source-map-source-root=/frameworks/projects/Jewel/src/main/roya
> > > > > > le
> > > > > > /
> > > > > > </additionalCompilerOptions>
> > > > > >
> > > > > > and in TDJ just:
> > > > > >
> > > > > > -source-map=true;
> > > > > >
> > > > > > I added in my VSCode tasks the argument to compile TDJ
> > > > > >
> > > > > > "args": [
> > > > > > "clean",
> > > > > > "install",
> > > > > > "-P option-with-swf",
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> "-Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks"
> > > > > > ,
> > > > > > "-DskipTests"
> > > > > > ]
> > > > > >
> > > > > > setting a break point in jewel button is marked with an empty
> > > > > > circle in VSCode and doesn't stop, but TDJ works ok.
> > > > > >
> > > > > > I think I followed your indications right, and also committed
> > > > > > (but the commit is more general since I added the config to
> > > > > > frameworks/projects
> > > > to
> > > > > > affect to all SWC libs at once). Maybe there's some detail that
> > > > > > is preventing it to work.
> > > > > >
> > > > > > Thanks for your time and taking a look
> > > > > >
> > > > > > Carlos
> > > > > >
> > > > > >
> > > > > > El jue, 14 ene 2021 a las 9:25, Maria Jose Esteve
> > > > > > (<mjesteve@iest.com
> > > > >)
> > > > > > escribió:
> > > > > >
> > > > > > > Hi, It does not work for me.
> > > > > > > I have modified Jewel's pom.xml, main pom "/ projects /" and
> > > > > > > have
> > > > > > modified
> > > > > > > my maven build to include the Droyalelib option with the path
> > > > > > > to my / frameworks directory, the result error.
> > > > > > > Do I have to modify something else ?, the sdk does not compile
> > > > > > >
> > > > > > > Thx
> > > > > > > Hiedra
> > > > > > >
> > > > > > > -----Mensaje original-----
> > > > > > > De: Josh Tynjala <jo...@bowlerhat.dev> Enviado el:
> > > > > > > jueves,
> > > > > > > 14 de enero de 2021 0:40
> > > > > > > Para: Apache Royale Development <de...@royale.apache.org>
> > > > > > > Asunto: Re: Configuring source maps on Royale with new
> > > > > > > compiler
> > > > options
> > > > > > >
> > > > > > > Okay, I've determined a couple of tweaks to the process that
> > > > > > > made
> > > > > things
> > > > > > > work on my machine to allow source map debugging with Maven.
> > > > > > >
> > > > > > > The source-map-source-root for Jewel and other SDK libs must
> > > > > > > include src/main/royale/ at the end.
> > > > > > >
> > > > > > > <additionalCompilerOptions>
> > > > > > > -source-map=true;
> > > > > > >
> > > > > > > -source-map-source-root=/frameworks/projects/Jewel/src/main/ro
> > > > > > > ya
> > > > > > > le/
> > > > > > > </additionalCompilerOptions>
> > > > > > >
> > > > > > > For TDJ and other apps, you only need the source-map option.
> > > > > > > Do NOT
> > > > add
> > > > > > > source-map-source-root and do NOT add +royalelib.
> > > > > > >
> > > > > > > <additionalCompilerOptions>
> > > > > > > -source-map=true;
> > > > > > > </additionalCompilerOptions>
> > > > > > >
> > > > > > > Instead add an extra -Droyalelib option to your mvn command
> > > > > > > line. For
> > > > > > > example:
> > > > > > >
> > > > > > > mvn clean install
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > -Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/
> > > > fr
> > > > ameworks
> > > > > > >
> > > > > > > --
> > > > > > > Josh Tynjala
> > > > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >
> > > > > > >
> > > > > > > On Wed, Jan 13, 2021 at 2:57 PM Josh Tynjala <
> > > > > joshtynjala@bowlerhat.dev>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > I just gave it a try myself, and it looks like the compiler
> > > > > > > > is
> > > > > failing
> > > > > > > > to recognize the +royalelib token when you try to put it
> > > > > > > > into
> > > > Maven's
> > > > > > > > additionalCompilerOptions. As I implied, it was certainly
> > > > > > > > possible that this might or might not work.
> > > > > > > >
> > > > > > > > I'll let you know if I have another suggestion.
> > > > > > > >
> > > > > > > > --
> > > > > > > > Josh Tynjala
> > > > > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > >
> > > > > > > >
> > > > > > > > On Sat, Jan 9, 2021 at 1:01 AM Carlos Rovira <
> > > > > carlosrovira@apache.org>
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > >> Hi Josh,
> > > > > > > >>
> > > > > > > >> Thanks for taking a look, I'll check maven distribution to
> > > > > > > >> see how
> > > > > to
> > > > > > > >> add the missing folder. It's strange since I think I was
> > > > > > > >> debugging against the Maven SDK until now.
> > > > > > > >>
> > > > > > > >> I made now a quick try with ANT SDK, after my daily build
> > > > completed,
> > > > > > > >> with your latest changes from yesterday, and compiled TDJ
> > with:
> > > > > > > >>
> > > > > > > >>
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/frame
> > > > > +wo
> > > > > +r
> > > > > > > >> +ks
> > > > > > > >>
> > > > > > > >> to point to ANT instead to MAVEN, and the result was the
> > > > > > > >> same for royale ANT sdk: TDJ stops at breakpoints in VSCode
> > > > > > > >> but
> > > Jewel not.
> > > > I
> > > > > > > >> thought that ANT SDK should work right, isn't?
> > > > > > > >>
> > > > > > > >> Thanks
> > > > > > > >>
> > > > > > > >>
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> El vie, 8 ene 2021 a las 22:57, Greg Dove
> > > > > > > >> (<gr...@gmail.com>)
> > > > > > > >> escribió:
> > > > > > > >>
> > > > > > > >> > Thanks Josh, I guess there was still something cached at
> > > > > > > >> > a different
> > > > > > > >> level
> > > > > > > >> > in our local m2 that meant it was still working for
> > > > > > > >> > Hiedra and
> > > > me.
> > > > > > > >> > Nice sleuthing!
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> > On Sat, Jan 9, 2021 at 10:43 AM Josh Tynjala
> > > > > > > >> > <joshtynjala@bowlerhat.dev
> > > > > > > >> >
> > > > > > > >> > wrote:
> > > > > > > >> >
> > > > > > > >> > > Following up, since I can now successfully build the
> > > > > > > >> > > Maven
> > > > > > > >> distribution
> > > > > > > >> > > again.
> > > > > > > >> > >
> > > > > > > >> > > I've confirmed that frameworks/projects is missing from
> > > > > > > >> > > a
> > > > Maven
> > > > > > > >> > > distribution, like I had observed in the past. With
> > > > > > > >> > > that in
> > > > > mind,
> > > > > > > >> > > a
> > > > > > > >> Maven
> > > > > > > >> > > distribution cannot currently be referenced with
> > > > > > > >> > > +royalelib
> > > > for
> > > > > > > >> > > sourcemap-enabled debugging with the original .as files.
> > > > > > > >> > >
> > > > > > > >> > > --
> > > > > > > >> > > Josh Tynjala
> > > > > > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > >> > >
> > > > > > > >> > >
> > > > > > > >> > > On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <
> > > > > > > >> joshtynjala@bowlerhat.dev>
> > > > > > > >> > > wrote:
> > > > > > > >> > >
> > > > > > > >> > > > Carlos, are you using a Maven distribution as your
> > > > > > > >> > > > IDE-compatible
> > > > > > > >> SDK?
> > > > > > > >> > > The
> > > > > > > >> > > > last time that I built one, I seem to recall that the
> > > > > > > >> > > > distribution
> > > > > > > >> did
> > > > > > > >> > > not
> > > > > > > >> > > > include the original .as source files. I don't know
> > > > > > > >> > > > if
> > > > that's
> > > > > > > >> > > > still
> > > > > > > >> the
> > > > > > > >> > > > case or not. I tried building a Maven distribution
> > > > > > > >> > > > today to check,
> > > > > > > >> but
> > > > > > > >> > > the
> > > > > > > >> > > > build fails due to the current compiler being on
> > > > > > > >> > > > version
> > > > 0.9.9
> > > > > > > >> > > > and
> > > > > > > >> the
> > > > > > > >> > > > framework still expecting 0.9.8.
> > > > > > > >> > > >
> > > > > > > >> > > > --
> > > > > > > >> > > > Josh Tynjala
> > > > > > > >> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
> > > > > > > >> carlosrovira@apache.org
> > > > > > > >> > >
> > > > > > > >> > > > wrote:
> > > > > > > >> > > >
> > > > > > > >> > > >> Hi Josh,
> > > > > > > >> > > >>
> > > > > > > >> > > >> thanks, I added "frameworks" in TDJ +royalelib but
> > > > > > > >> > > >> seems it doesn't
> > > > > > > >> > have
> > > > > > > >> > > >> effect, stil debug TDJ but not classes in Jewel.
> > > > > > > >> > > >> Don't see what it could be :?
> > > > > > > >> > > >>
> > > > > > > >> > > >> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > > > > > > >> > > joshtynjala@bowlerhat.dev
> > > > > > > >> > > >> >)
> > > > > > > >> > > >> escribió:
> > > > > > > >> > > >>
> > > > > > > >> > > >> > Looking over previous emails in this thread, it
> > > > > > > >> > > >> > looks
> > > > like
> > > > > > > >> > > >> > you
> > > > > > > >> > forgot
> > > > > > > >> > > to
> > > > > > > >> > > >> > add /frameworks at the end of the +royalelib path.
> > > > > > > >> > > >> >
> > > > > > > >> > > >> > You have:
> > > > > > > >> > > >> >
> > > > > > > >> > > >> >
> > > > > > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royal
> > > > > > > >> +e-
> > > > > > > >> +maven
> > > > > > > >> > > >> >
> > > > > > > >> > > >> > It should be:
> > > > > > > >> > > >> >
> > > > > > > >> > > >> >
> > > > > > > >> > > >> >
> > > > > > > >> > > >>
> > > > > > > >> > >
> > > > > > > >> >
> > > > > > > >>
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > +/f
> > > > > +r
> > > > > > > >> +ameworks
> > > > > > > >> > > >> >
> > > > > > > >> > > >> > --
> > > > > > > >> > > >> > Josh Tynjala
> > > > > > > >> > > >> > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > >> > > >> >
> > > > > > > >> > > >> >
> > > > > > > >> > > >> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > > > > > > >> > > carlosrovira@apache.org>
> > > > > > > >> > > >> > wrote:
> > > > > > > >> > > >> >
> > > > > > > >> > > >> > > Hi,
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > > just fyi I added:
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> >
> > > > > > > >>
> > > > -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > > at frameworks/projects/pom.xml so now we have
> > > > > > > >> > > >> > > setup
> > > > > source
> > > > > > > >> > > >> > > maps in all libraries
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > > but while that seems ok, I'm not getting lib
> > > > > > > >> > > >> > > debugging
> > > > as
> > > > > > > >> > > >> > > I
> > > > > > > >> stated
> > > > > > > >> > > in
> > > > > > > >> > > >> my
> > > > > > > >> > > >> > > last email.
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > > > > > > >> > > >> carlosrovira@apache.org
> > > > > > > >> > > >> > >)
> > > > > > > >> > > >> > > escribió:
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > > > Ok Josh,
> > > > > > > >> > > >> > > >
> > > > > > > >> > > >> > > > so all seems ok, but debug is not working in
> > > > > > > >> > > >> > > > classes from
> > > > > > > >> Jewel
> > > > > > > >> > > lib.
> > > > > > > >> > > >> > > > I see the jewel.swc has the js.map files in
> > > > > > > >> > > >> > > > the same
> > > > > way
> > > > > > > >> > > >> > > > I
> > > > > > > >> > > related,
> > > > > > > >> > > >> so
> > > > > > > >> > > >> > > > that's ok as you stated.
> > > > > > > >> > > >> > > > I'm setting breakpoints in the same VSCode
> > > > > > > >> > > >> > > > window for Jewel
> > > > > > > >> and
> > > > > > > >> > > TDJ
> > > > > > > >> > > >> > > files,
> > > > > > > >> > > >> > > > but only TDJ files (in the root or subfolders)
> > > > > > > >> > > >> > > > are making
> > > > > > > >> > > execution
> > > > > > > >> > > >> > stop.
> > > > > > > >> > > >> > > > If I set up a breakpoint in let's say Jewel
> > > > Button.as,
> > > > > > > >> > > >> > > > that
> > > > > > > >> > > appears
> > > > > > > >> > > >> > empty
> > > > > > > >> > > >> > > > on execution and doesn't have effect, while
> > > > > > > >> > > >> > > > TDJ
> > > > appears
> > > > > > > >> > > >> > > > red
> > > > > > > >> and
> > > > > > > >> > > >> works
> > > > > > > >> > > >> > ok.
> > > > > > > >> > > >> > > >
> > > > > > > >> > > >> > > > Do you know what could be happening?
> > > > > > > >> > > >> > > >
> > > > > > > >> > > >> > > >
> > > > > > > >> > > >> > > >
> > > > > > > >> > > >> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala
> > > > > > > >> > > >> > > > (<
> > > > > > > >> > > >> > joshtynjala@bowlerhat.dev
> > > > > > > >> > > >> > > >)
> > > > > > > >> > > >> > > > escribió:
> > > > > > > >> > > >> > > >
> > > > > > > >> > > >> > > >> The path of the .js.map file is relative to
> > > > > > > >> > > >> > > >> the .js
> > > > > > file.
> > > > > > > >> > Since
> > > > > > > >> > > >> the
> > > > > > > >> > > >> > > >> .js.map file is supposed to be in the same
> > > > > > > >> > > >> > > >> folder as the .js
> > > > > > > >> > > file,
> > > > > > > >> > > >> > that
> > > > > > > >> > > >> > > >> looks correct to me.
> > > > > > > >> > > >> > > >>
> > > > > > > >> > > >> > > >> --
> > > > > > > >> > > >> > > >> Josh Tynjala
> > > > > > > >> > > >> > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > >> > > >> > > >>
> > > > > > > >> > > >> > > >>
> > > > > > > >> > > >> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira
> > > > > > > >> > > >> > > >> <
> > > > > > > >> > > >> > carlosrovira@apache.org>
> > > > > > > >> > > >> > > >> wrote:
> > > > > > > >> > > >> > > >>
> > > > > > > >> > > >> > > >> > Hi Josh,
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >> > > >> > I'm trying to debug jewel classes in TDJ
> > > > > > > >> > > >> > > >> > and for example
> > > > > > > >> > > >> > > >> AlertController.js
> > > > > > > >> > > >> > > >> > has at the end:
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >> > > >> > //#
> > > > > > > >> > > >> > > >> > sourceMappingURL=./AlertController.js.map
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >> > > >> > It's ok? I expect it to reference the
> > > > > > > >> > > >> > > >> > concrete
> > > > > > > subfolder:
> > > > > > > >> > > >> > > >> > org/apache/royale/jewel/beads/controllers
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >> > > >> > El jue, 7 ene 2021 a las 18:23, Josh
> > > > > > > >> > > >> > > >> > Tynjala (<
> > > > > > > >> > > >> > > >> joshtynjala@bowlerhat.dev>)
> > > > > > > >> > > >> > > >> > escribió:
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >> > > >> > > Yes, you're right that +royalelib should
> > > > > > > >> > > >> > > >> > > not be required
> > > > > > > >> > for
> > > > > > > >> > > >> > > framework
> > > > > > > >> > > >> > > >> > > libs. I wasn't paying close enough
> > > > > > > >> > > >> > > >> > > attention to
> > > > > see
> > > > > > > >> > > >> > > >> > > that
> > > > > > > >> > you
> > > > > > > >> > > >> had
> > > > > > > >> > > >> > > added
> > > > > > > >> > > >> > > >> > > +royalelib to both Jewel and TDJ.
> > > > > > > >> > > >> > > >> > >
> > > > > > > >> > > >> > > >> > > So, to summarize, you should use
> > > > > > > >> > > >> > > >> > > source-map-source-root
> > > > > > > >> > when
> > > > > > > >> > > >> > > building
> > > > > > > >> > > >> > > >> > > framework libs, and you should use
> > > > > > > >> > > >> > > >> > > +royalelib
> > > > when
> > > > > > > >> building
> > > > > > > >> > > >> > > >> > examples/apps.
> > > > > > > >> > > >> > > >> > > +royalelib is not necessary for framework
> > > > > > > >> > > >> > > >> > > +libs,
> > > > > and
> > > > > > > >> > > >> > > >> > source-map-source-root
> > > > > > > >> > > >> > > >> > > is (generally) not necessary for
> > > examples/apps.
> > > > > > > >> > > >> > > >> > >
> > > > > > > >> > > >> > > >> > > --
> > > > > > > >> > > >> > > >> > > Josh Tynjala Bowler Hat LLC
> > > > > > > >> > > >> > > >> > > <https://bowlerhat.dev>
> > > > > > > >> > > >> > > >> > >
> > > > > > > >> > > >> > > >> > >
> > > > > > > >> > > >> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos
> > > > > > > >> > > >> > > >> > > Rovira <
> > > > > > > >> > > >> > > carlosrovira@apache.org
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >> > > >> > > wrote:
> > > > > > > >> > > >> > > >> > >
> > > > > > > >> > > >> > > >> > > > Hi Josh,
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > > I discover right now that I was
> > > > > > > >> > > >> > > >> > > > understanding wrong
> > > > > > > >> how
> > > > > > > >> > all
> > > > > > > >> > > >> this
> > > > > > > >> > > >> > > >> works.
> > > > > > > >> > > >> > > >> > > > I thought we needed +royalelib in
> > > > > > > >> > > >> > > >> > > > framework
> > > > > libs,
> > > > > > > >> > > >> > > >> > > > but
> > > > > > > >> > it's
> > > > > > > >> > > >> not
> > > > > > > >> > > >> > the
> > > > > > > >> > > >> > > >> > case.
> > > > > > > >> > > >> > > >> > > > Just need to add +royalelib to a final
> > > > project,
> > > > > > > >> > > >> > > >> > > > so
> > > > > > > >> that
> > > > > > > >> > can
> > > > > > > >> > > >> be
> > > > > > > >> > > >> > > left
> > > > > > > >> > > >> > > >> to
> > > > > > > >> > > >> > > >> > > the
> > > > > > > >> > > >> > > >> > > > user.
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > > That means that we can add to all libs
> > this:
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >>
> > > > > > > >> > > >> -source-map-source-root=/frameworks/projects/XXX/tar
> > > > > > > >> > > >> ge
> > > > > > > >> > > >> t/
> > > > > > > >> > > >> > > >> > > > (Where XXX is the root libraryfolder)
> > > > > > > >> > > >> > > >> > > > -> For
> > > > > this
> > > > > > > >> I'll be
> > > > > > > >> > > >> adding
> > > > > > > >> > > >> > > in
> > > > > > > >> > > >> > > >> a
> > > > > > > >> > > >> > > >> > > > commit soon
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > > So, Chris, we don't need anything more
> > > > > > > >> > > >> > > >> > > > to implement,
> > > > > > > >> as I
> > > > > > > >> > > >> commit
> > > > > > > >> > > >> > > the
> > > > > > > >> > > >> > > >> > > > -source-map-source-root line in all
> > > > > > > >> > > >> > > >> > > > framework
> > > > > > poms.
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > > Another thing is if we should upload
> > > > > > > >> > > >> > > >> > > > all
> > > > source
> > > > > > > >> > > >> > > >> > > > maps
> > > > > > > >> > > (js.map
> > > > > > > >> > > >> > > files)
> > > > > > > >> > > >> > > >> of
> > > > > > > >> > > >> > > >> > > all
> > > > > > > >> > > >> > > >> > > > framework libs to some r.a.o url (for
> > > > > > > >> > > >> > > >> > > > example /debug),
> > > > > > > >> > and
> > > > > > > >> > > if
> > > > > > > >> > > >> > > people
> > > > > > > >> > > >> > > >> > can
> > > > > > > >> > > >> > > >> > > > point with +royalelib (i.e: +royalelib=
> > > > > > > >> > > >> > > >> http://royale.apache.org/debug
> > > > > > > >> > > >> > > >> > )
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > > What do you think?
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh
> > > > > > > >> > > >> > > >> > > > Tynjala
> > > > (<
> > > > > > > >> > > >> > > >> > joshtynjala@bowlerhat.dev
> > > > > > > >> > > >> > > >> > > >)
> > > > > > > >> > > >> > > >> > > > escribió:
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > > > While we can set
> > > > > > > >> > > >> > > >> > > > > source-map-source-root in
> > > > all
> > > > > > > >> > > >> > > >> > > > > of
> > > > > > > >> the
> > > > > > > >> > > >> library
> > > > > > > >> > > >> > > >> > > projects, I
> > > > > > > >> > > >> > > >> > > > > don't think that there's any way for
> > > > > > > >> > > >> > > >> > > > > us to specify
> > > > > > > >> > > >> +royalelib
> > > > > > > >> > > >> > > for
> > > > > > > >> > > >> > > >> TDJ
> > > > > > > >> > > >> > > >> > > and
> > > > > > > >> > > >> > > >> > > > > other examples in a general way.
> > > > > > > >> > > >> > > >> > > > > That's the
> > > > > one
> > > > > > > >> thing
> > > > > > > >> > > that
> > > > > > > >> > > >> > users
> > > > > > > >> > > >> > > >> will
> > > > > > > >> > > >> > > >> > > > > probably need to set up manually
> > > > > > > >> > > >> > > >> > > > > because the source
> > > > > > > >> > files
> > > > > > > >> > > >> come
> > > > > > > >> > > >> > > >> from
> > > > > > > >> > > >> > > >> > an
> > > > > > > >> > > >> > > >> > > > > IDE-compatible SDK.
> > > > > > > >> > > >> > > >> > > > >
> > > > > > > >> > > >> > > >> > > > > --
> > > > > > > >> > > >> > > >> > > > > Josh Tynjala Bowler Hat LLC
> > > > > > > >> > > >> > > >> > > > > <https://bowlerhat.dev>
> > > > > > > >> > > >> > > >> > > > >
> > > > > > > >> > > >> > > >> > > > >
> > > > > > > >> > > >> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos
> > > > Rovira <
> > > > > > > >> > > >> > > >> > carlosrovira@apache.org>
> > > > > > > >> > > >> > > >> > > > > wrote:
> > > > > > > >> > > >> > > >> > > > >
> > > > > > > >> > > >> > > >> > > > > > 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-mave
> > > > > > > >> > > +n
> > > > > > > >> > > >> > > >> > > > > >
> > > > > > > >> > > >> > > >> > > > > > 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
> > > > > > > >> > > >> > > >> > > > > > (<
> > > > > > > >> > > >> > > >> > > > carlosrovira@apache.org
> > > > > > > >> > > >> > > >> > > > > >)
> > > > > > > >> > > >> > > >> > > > > > escribió:
> > > > > > > >> > > >> > > >> > > > > >
> > > > > > > >> > > >> > > >> > > > > > > Hi Josh, Thanks! That worked and
> > > > > > > >> > > >> > > >> > > > > > > I
> > > > finally
> > > > > > > >> > > >> > > >> > > > > > > have
> > > > > > > >> > > >> debugging
> > > > > > > >> > > >> > > >> again!
> > > > > > > >> > > >> > > >> > :D
> > > > > > > >> > > >> > > >> > > > > > >
> > > > > > > >> > > >> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34,
> > > > > > > >> > > >> > > >> > > > > > > Josh Tynjala (<
> > > > > > > >> > > >> > > >> > > > > joshtynjala@bowlerhat.dev
> > > > > > > >> > > >> > > >> > > > > > >)
> > > > > > > >> > > >> > > >> > > > > > > escribió:
> > > > > > > >> > > >> > > >> > > > > > >
> > > > > > > >> > > >> > > >> > > > > > >> Hey Carlos,
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> > > > > > >> Try using source-map-source-root
> > > > > > > >> > > >> > > >> > > > > > >> with Jewel
> > > > > > > >> only,
> > > > > > > >> > > and
> > > > > > > >> > > >> > omit
> > > > > > > >> > > >> > > it
> > > > > > > >> > > >> > > >> > from
> > > > > > > >> > > >> > > >> > > > > TDJ.
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> > > > > > >> Jewel:
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >>
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > > > >> > > >> +aven
> > > > > > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> > > > > > >> TDJ:
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> >
> > > > > > > >> > > >>
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > > > >> > > >> +aven
> > > > > > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > > > > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> > > > > > >> 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
> > > > > > > >> > > >> > > >> > > > > > >> <https://bowlerhat.dev>
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> > > > > > >>
> > > > > > > >> > > >> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM
> > > > > > > >> > > >> > > >> > > > > > >> Carlos Rovira <
> > > > > > > >> > > >> > > >> > > > carlosrovira@apache.org
> > > > > > > >> > > >> > > >> > > > > >
> > > > > > > >> > > >> > > >> > > > > > >> 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:
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > > > > > >> > <additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > >
> > > > > > > >> > > >>
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > > > >> > > >> +aven
> > > > > > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > > > > > >> > and in TDJ:
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > >
> > > > > > > >> > > >>
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > > > >> > > >> +aven
> > > > > > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > > > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > > > > > >> > but no luck.
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > > > > > >> > So if +royalelib doesn't work
> > > > > > > >> > > >> > > >> > > > > > >> > for
> > > > Maven
> > > > > > > >> maybe it
> > > > > > > >> > > >> should
> > > > > > > >> > > >> > > be
> > > > > > > >> > > >> > > >> > > > something
> > > > > > > >> > > >> > > >> > > > > > >> like
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > "-source-map-source-root=$$$/frameworks/projects/J
> > > > > > > >> > > >> > ew
> > > > > > > >> > > >> > el/",
> > > > > > > >> > > >> > > >> > 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.dutz@c-ware.de>)
> > > > > > > >> > > >> > > >> > > > > > >> > escribió:
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > > > > > >> >> Hi all,
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > > >> >> Sure, happy to help, but what
> > > > exactly
> > > > > > > >> > > >> > > >> > > > > > >> >> do you
> > > > > > > >> > > need?
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > > >> >> Chris
> > > > > > > >> > > >> > > >> > > > > > >> >> -----------------------------
> > > > > > > >> > > >> > > >> > > > > > >> >> -
> > > > > > > >> > > >> > > >> > > > > > >> >> *Von:* Carlos Rovira <
> > > > > > > >> carlosrovira@apache.org>
> > > > > > > >> > > >> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3.
> > > > > > > >> > > >> > > >> > > > > > >> >> Januar
> > > > > > > >> > > >> > > >> > > > > > >> >> 2021
> > > > > > > >> > > >> > > >> > > > > > >> >> 23:23
> > > > > > > >> > > >> > > >> > > > > > >> >> *An:* Josh Tynjala <
> > > > > > > >> joshtynjala@bowlerhat.dev
> > > > > > > >> > >;
> > > > > > > >> > > >> > > >> Christofer
> > > > > > > >> > > >> > > >> > > Dutz
> > > > > > > >> > > >> > > >> > > > <
> > > > > > > >> > > >> > > >> > > > > > >> >> christofer.dutz@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 (<
> > > > > > > >> > > >> > > >> > > > > > >> joshtynjala@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/framewo
> > > > > > > >> > > >> > > >> > > > > > >> >> +rks/
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > > >> >> 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 <
> > > > > > > >> > > >> > > >> > > > > > carlosrovira@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:
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > <additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >> >> -source-map=true;
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > >
> > > > > > > >> > > >> -source-map-source-root=/frameworks/projects/Jewel/t
> > > > > > > >> > > >> ar
> > > > > > > >> > > >> get/
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > </additionalCompilerOptions>
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > > >> >> And in TDJ this:
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > > >> >> -source-map=true;
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > >
> > > > > > > >> > > >> -source-map-source-root=/examples/jewel/TourDeJewel/
> > > > > > > >> > > >> ta
> > > > > > > >> > > >> rget
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > </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
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > > >> > > >> > > >> > > > > > >> > -- 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
> > > > > > > >> > > >> > > >> > > > > >
> > > > > > > >> > > >> > > >> > > > >
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > >
> > > > > > > >> > > >> > > >> > > > --
> > > > > > > >> > > >> > > >> > > > 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
> > > > > > > >> > > >> > > >
> > > > > > > >> > > >> > > >
> > > > > > > >> > > >> > >
> > > > > > > >> > > >> > > --
> > > > > > > >> > > >> > > 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
> > > > > > > >>
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > 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
> >
>
RE: Configuring source maps on Royale with new compiler options
Posted by Maria Jose Esteve <mj...@iest.com>.
Hi, he hadn't seen this bug before. It only occurs when I compile with Droyalelib. It is a jewel application, and I don't use the option-with-swf profile, but with it I also get the same error.
Continuing with the tests, I downloaded the jenkins SDK compilation and saw that there did exist the theme / Spark folder and the spark.css file, so I compiled my local SDK with ant (I checked that spark.css existed) and then I compiled my application with Droyalelib successfully.
Why will the error only occur when I compile the application with Droyalelib?
A side effect of putting Droyalelib is that I have lost debugging within my library project, but I am still debugging this.
Hiedra.
-----Mensaje original-----
De: Josh Tynjala <jo...@bowlerhat.dev>
Enviado el: lunes, 18 de enero de 2021 19:21
Para: Apache Royale Development <de...@royale.apache.org>
Asunto: Re: Configuring source maps on Royale with new compiler options
If I recall correctly, spark.css is a file that Flash Builder requires to
be present to be recognized as a valid SDK. I'm surprised that you're
getting an error about it when run from Maven on the command line, though.
Regardless, it looks like the Maven distribution is missing this file, but
it is required to be included to be a fully IDE-compatible SDK.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Mon, Jan 18, 2021 at 12:59 AM Maria Jose Esteve <mj...@iest.com>
wrote:
> Hello,
> I compile, run and debug TDJ perfectly with the latest SDK hints and
> modifications. In my case I only get debugging if I link the frameworks /
> projects folder: working with vscode we will include in the workspace a
> path to the asjs folder or directly to the TDJ folder and a path to the
> projects directory of the SDK - royalelib.
>
> But when I try to do the same with my project I can't compile it with
> Droyalelib I get the error:
> D:\Desarrollo_Royale\Royale-git\fork_sdk_asjs\frameworks\projects\defaults
> unable to open
>
> 'D:\Desarrollo_Royale\Royale-git\fork_sdk_asjs\frameworks\themes\Spark\spark.css'.
> defaults (line: -1)
>
> I have looked for information and I have found a couple of entries from a
> few years ago but I have not gotten anything clear.
> Does anyone know what happens?
>
> I have inspected the SDK and found only one match in the
> royale-asjs/build.xml (I compile with maven):
> ...
> <!-- hack to keep compiler happy -->
> <mkdir dir="${ROYALE_HOME}/frameworks/themes/Spark" />
> <echo file="${ROYALE_HOME}/frameworks/themes/Spark/spark.css">/*
> * Licensed to the Apache Software Foundation (ASF) under one or more
> * contributor license agreements. See the NOTICE file distributed with
> * this work for additional information regarding copyright ownership.
> * The ASF licenses this file to You under the Apache License, Version 2.0
> * (the "License"); you may not use this file except in compliance with
> * the License. You may obtain a copy of the License at
> *
> * http://www.apache.org/licenses/LICENSE-2.0
> *
> * Unless required by applicable law or agreed to in writing, software
> * distributed under the License is distributed on an "AS IS" BASIS,
> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> * See the License for the specific language governing permissions and
> * limitations under the License.
> *
> */
> /* generated by build script */
> </echo>
>
> I can't move forward with the compilation of my project with Droyalelib.
>
> Thx.
> Hiedra.
>
> -----Mensaje original-----
> De: Carlos Rovira <ca...@apache.org>
> Enviado el: domingo, 17 de enero de 2021 12:06
> Para: Apache Royale Development <de...@royale.apache.org>
> Asunto: Re: Configuring source maps on Royale with new compiler options
>
> Thanks Josh!
>
> I'll take a look in the next few days. I'm these days with some
> complications but hopefully will return soon :) Thanks for letting me know!
>
> Carlos
>
>
> El sáb, 16 ene 2021 a las 3:00, Maria Jose Esteve (<mj...@iest.com>)
> escribió:
>
> > Have you noticed that it recognizes the "... / royale" directory as a
> > file?
> >
> >
> >
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/Jewel/src/main/royale"
> >
> > (I'm looking at this now)
> > Hiedra
> >
> > -----Mensaje original-----
> > De: Josh Tynjala <jo...@bowlerhat.dev> Enviado el: viernes, 15
> > de enero de 2021 20:04
> > Para: Apache Royale Development <de...@royale.apache.org>
> > Asunto: Re: Configuring source maps on Royale with new compiler
> > options
> >
> > Your changes are now working for me!
> >
> > I just pulled your latest changes in royale-asjs, running the
> > following command to build the framework SWCs:
> >
> > mvn clean install -DskipTests
> >
> > Then, I ran a clean build of TDJ, with the following command:
> >
> > mvn clean install
> > -Droyalelib=c:/Users/josht/Development/apache/royale-asjs/frameworks
> >
> > I am seeing the expected full sourceRoot in Button.js.map that
> > includes the content of -Droyalelib.
> >
> >
> >
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/Jewel/src/main/royale"
> >
> > I added a breakpoint in the text setter in Button.as on this line:
> >
> > spanLabel.textContent = value;
> >
> > And the debugger stopped correctly when I launched in Chrome.
> >
> > Your sourceRoot in Button.js.map is wrong. Make sure that you clean
> > the project when you build, so that you don't have a cached
> > Button.js.map. And don't forget the -Droyalelib option.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Fri, Jan 15, 2021 at 6:40 AM Carlos Rovira
> > <ca...@apache.org>
> > wrote:
> >
> > > Oops! You're right Josh, I commited a fix for that.
> > >
> > > Anyway, I tried within Jewel adding hardcoded code (as you showed)
> > > and it didn't worked. In both cases:
> > >
> > > For Button.js, I get this:
> > >
> > > //# sourceMappingURL=./Button.js.map
> > >
> > > and Button.js.map has:
> > >
> > > "sourceRoot":"/frameworks/projects/Jewel/src/main/royale/",
> > >
> > > If you have the same code, maybe the problem is not maven build but
> > > something related to VSCode.
> > >
> > > Thanks
> > >
> > > Carlos
> > >
> > >
> > > El jue, 14 ene 2021 a las 18:55, Josh Tynjala
> > > (<joshtynjala@bowlerhat.dev
> > > >)
> > > escribió:
> > >
> > > > This is what I see in the Button.js.map file:
> > > >
> > > >
> > > >
> > >
> >
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/{$project.artifactId}/src/main/royale"
> > > >
> > > > The {$project.artifactId} token seems incorrect. Did you mean
> > > > ${project.artifactId} instead?
> > > >
> > > > --
> > > > Josh Tynjala
> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >
> > > >
> > > > On Thu, Jan 14, 2021 at 1:59 AM Carlos Rovira
> > > > <ca...@apache.org>
> > > > wrote:
> > > >
> > > > > Hi Josh,
> > > > >
> > > > > just tried your recommendations, but seems not to work.
> > > > >
> > > > > I added to Jewel:
> > > > >
> > > > > <additionalCompilerOptions>
> > > > > -source-map=true;
> > > > > -source-map-source-root=/frameworks/projects/Jewel/src/main/roya
> > > > > le
> > > > > /
> > > > > </additionalCompilerOptions>
> > > > >
> > > > > and in TDJ just:
> > > > >
> > > > > -source-map=true;
> > > > >
> > > > > I added in my VSCode tasks the argument to compile TDJ
> > > > >
> > > > > "args": [
> > > > > "clean",
> > > > > "install",
> > > > > "-P option-with-swf",
> > > > >
> > > > >
> > > >
> > >
> >
> "-Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks"
> > > > > ,
> > > > > "-DskipTests"
> > > > > ]
> > > > >
> > > > > setting a break point in jewel button is marked with an empty
> > > > > circle in VSCode and doesn't stop, but TDJ works ok.
> > > > >
> > > > > I think I followed your indications right, and also committed
> > > > > (but the commit is more general since I added the config to
> > > > > frameworks/projects
> > > to
> > > > > affect to all SWC libs at once). Maybe there's some detail that
> > > > > is preventing it to work.
> > > > >
> > > > > Thanks for your time and taking a look
> > > > >
> > > > > Carlos
> > > > >
> > > > >
> > > > > El jue, 14 ene 2021 a las 9:25, Maria Jose Esteve
> > > > > (<mjesteve@iest.com
> > > >)
> > > > > escribió:
> > > > >
> > > > > > Hi, It does not work for me.
> > > > > > I have modified Jewel's pom.xml, main pom "/ projects /" and
> > > > > > have
> > > > > modified
> > > > > > my maven build to include the Droyalelib option with the path
> > > > > > to my / frameworks directory, the result error.
> > > > > > Do I have to modify something else ?, the sdk does not compile
> > > > > >
> > > > > > Thx
> > > > > > Hiedra
> > > > > >
> > > > > > -----Mensaje original-----
> > > > > > De: Josh Tynjala <jo...@bowlerhat.dev> Enviado el:
> > > > > > jueves,
> > > > > > 14 de enero de 2021 0:40
> > > > > > Para: Apache Royale Development <de...@royale.apache.org>
> > > > > > Asunto: Re: Configuring source maps on Royale with new
> > > > > > compiler
> > > options
> > > > > >
> > > > > > Okay, I've determined a couple of tweaks to the process that
> > > > > > made
> > > > things
> > > > > > work on my machine to allow source map debugging with Maven.
> > > > > >
> > > > > > The source-map-source-root for Jewel and other SDK libs must
> > > > > > include src/main/royale/ at the end.
> > > > > >
> > > > > > <additionalCompilerOptions>
> > > > > > -source-map=true;
> > > > > >
> > > > > > -source-map-source-root=/frameworks/projects/Jewel/src/main/ro
> > > > > > ya
> > > > > > le/
> > > > > > </additionalCompilerOptions>
> > > > > >
> > > > > > For TDJ and other apps, you only need the source-map option.
> > > > > > Do NOT
> > > add
> > > > > > source-map-source-root and do NOT add +royalelib.
> > > > > >
> > > > > > <additionalCompilerOptions>
> > > > > > -source-map=true;
> > > > > > </additionalCompilerOptions>
> > > > > >
> > > > > > Instead add an extra -Droyalelib option to your mvn command
> > > > > > line. For
> > > > > > example:
> > > > > >
> > > > > > mvn clean install
> > > > > >
> > > > > >
> > > > >
> > > >
> > > -Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/
> > > fr
> > > ameworks
> > > > > >
> > > > > > --
> > > > > > Josh Tynjala
> > > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >
> > > > > >
> > > > > > On Wed, Jan 13, 2021 at 2:57 PM Josh Tynjala <
> > > > joshtynjala@bowlerhat.dev>
> > > > > > wrote:
> > > > > >
> > > > > > > I just gave it a try myself, and it looks like the compiler
> > > > > > > is
> > > > failing
> > > > > > > to recognize the +royalelib token when you try to put it
> > > > > > > into
> > > Maven's
> > > > > > > additionalCompilerOptions. As I implied, it was certainly
> > > > > > > possible that this might or might not work.
> > > > > > >
> > > > > > > I'll let you know if I have another suggestion.
> > > > > > >
> > > > > > > --
> > > > > > > Josh Tynjala
> > > > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >
> > > > > > >
> > > > > > > On Sat, Jan 9, 2021 at 1:01 AM Carlos Rovira <
> > > > carlosrovira@apache.org>
> > > > > > > wrote:
> > > > > > >
> > > > > > >> Hi Josh,
> > > > > > >>
> > > > > > >> Thanks for taking a look, I'll check maven distribution to
> > > > > > >> see how
> > > > to
> > > > > > >> add the missing folder. It's strange since I think I was
> > > > > > >> debugging against the Maven SDK until now.
> > > > > > >>
> > > > > > >> I made now a quick try with ANT SDK, after my daily build
> > > completed,
> > > > > > >> with your latest changes from yesterday, and compiled TDJ
> with:
> > > > > > >>
> > > > > > >>
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/frame
> > > > +wo
> > > > +r
> > > > > > >> +ks
> > > > > > >>
> > > > > > >> to point to ANT instead to MAVEN, and the result was the
> > > > > > >> same for royale ANT sdk: TDJ stops at breakpoints in VSCode
> > > > > > >> but
> > Jewel not.
> > > I
> > > > > > >> thought that ANT SDK should work right, isn't?
> > > > > > >>
> > > > > > >> Thanks
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >> El vie, 8 ene 2021 a las 22:57, Greg Dove
> > > > > > >> (<gr...@gmail.com>)
> > > > > > >> escribió:
> > > > > > >>
> > > > > > >> > Thanks Josh, I guess there was still something cached at
> > > > > > >> > a different
> > > > > > >> level
> > > > > > >> > in our local m2 that meant it was still working for
> > > > > > >> > Hiedra and
> > > me.
> > > > > > >> > Nice sleuthing!
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > On Sat, Jan 9, 2021 at 10:43 AM Josh Tynjala
> > > > > > >> > <joshtynjala@bowlerhat.dev
> > > > > > >> >
> > > > > > >> > wrote:
> > > > > > >> >
> > > > > > >> > > Following up, since I can now successfully build the
> > > > > > >> > > Maven
> > > > > > >> distribution
> > > > > > >> > > again.
> > > > > > >> > >
> > > > > > >> > > I've confirmed that frameworks/projects is missing from
> > > > > > >> > > a
> > > Maven
> > > > > > >> > > distribution, like I had observed in the past. With
> > > > > > >> > > that in
> > > > mind,
> > > > > > >> > > a
> > > > > > >> Maven
> > > > > > >> > > distribution cannot currently be referenced with
> > > > > > >> > > +royalelib
> > > for
> > > > > > >> > > sourcemap-enabled debugging with the original .as files.
> > > > > > >> > >
> > > > > > >> > > --
> > > > > > >> > > Josh Tynjala
> > > > > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> > > On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <
> > > > > > >> joshtynjala@bowlerhat.dev>
> > > > > > >> > > wrote:
> > > > > > >> > >
> > > > > > >> > > > Carlos, are you using a Maven distribution as your
> > > > > > >> > > > IDE-compatible
> > > > > > >> SDK?
> > > > > > >> > > The
> > > > > > >> > > > last time that I built one, I seem to recall that the
> > > > > > >> > > > distribution
> > > > > > >> did
> > > > > > >> > > not
> > > > > > >> > > > include the original .as source files. I don't know
> > > > > > >> > > > if
> > > that's
> > > > > > >> > > > still
> > > > > > >> the
> > > > > > >> > > > case or not. I tried building a Maven distribution
> > > > > > >> > > > today to check,
> > > > > > >> but
> > > > > > >> > > the
> > > > > > >> > > > build fails due to the current compiler being on
> > > > > > >> > > > version
> > > 0.9.9
> > > > > > >> > > > and
> > > > > > >> the
> > > > > > >> > > > framework still expecting 0.9.8.
> > > > > > >> > > >
> > > > > > >> > > > --
> > > > > > >> > > > Josh Tynjala
> > > > > > >> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
> > > > > > >> carlosrovira@apache.org
> > > > > > >> > >
> > > > > > >> > > > wrote:
> > > > > > >> > > >
> > > > > > >> > > >> Hi Josh,
> > > > > > >> > > >>
> > > > > > >> > > >> thanks, I added "frameworks" in TDJ +royalelib but
> > > > > > >> > > >> seems it doesn't
> > > > > > >> > have
> > > > > > >> > > >> effect, stil debug TDJ but not classes in Jewel.
> > > > > > >> > > >> Don't see what it could be :?
> > > > > > >> > > >>
> > > > > > >> > > >> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > > > > > >> > > joshtynjala@bowlerhat.dev
> > > > > > >> > > >> >)
> > > > > > >> > > >> escribió:
> > > > > > >> > > >>
> > > > > > >> > > >> > Looking over previous emails in this thread, it
> > > > > > >> > > >> > looks
> > > like
> > > > > > >> > > >> > you
> > > > > > >> > forgot
> > > > > > >> > > to
> > > > > > >> > > >> > add /frameworks at the end of the +royalelib path.
> > > > > > >> > > >> >
> > > > > > >> > > >> > You have:
> > > > > > >> > > >> >
> > > > > > >> > > >> >
> > > > > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royal
> > > > > > >> +e-
> > > > > > >> +maven
> > > > > > >> > > >> >
> > > > > > >> > > >> > It should be:
> > > > > > >> > > >> >
> > > > > > >> > > >> >
> > > > > > >> > > >> >
> > > > > > >> > > >>
> > > > > > >> > >
> > > > > > >> >
> > > > > > >>
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > +/f
> > > > +r
> > > > > > >> +ameworks
> > > > > > >> > > >> >
> > > > > > >> > > >> > --
> > > > > > >> > > >> > Josh Tynjala
> > > > > > >> > > >> > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >> > > >> >
> > > > > > >> > > >> >
> > > > > > >> > > >> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > > > > > >> > > carlosrovira@apache.org>
> > > > > > >> > > >> > wrote:
> > > > > > >> > > >> >
> > > > > > >> > > >> > > Hi,
> > > > > > >> > > >> > >
> > > > > > >> > > >> > > just fyi I added:
> > > > > > >> > > >> > >
> > > > > > >> > > >> > >
> > > > > > >> > > >> >
> > > > > > >>
> > > -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > > > > >> > > >> > >
> > > > > > >> > > >> > > at frameworks/projects/pom.xml so now we have
> > > > > > >> > > >> > > setup
> > > > source
> > > > > > >> > > >> > > maps in all libraries
> > > > > > >> > > >> > >
> > > > > > >> > > >> > > but while that seems ok, I'm not getting lib
> > > > > > >> > > >> > > debugging
> > > as
> > > > > > >> > > >> > > I
> > > > > > >> stated
> > > > > > >> > > in
> > > > > > >> > > >> my
> > > > > > >> > > >> > > last email.
> > > > > > >> > > >> > >
> > > > > > >> > > >> > >
> > > > > > >> > > >> > >
> > > > > > >> > > >> > >
> > > > > > >> > > >> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > > > > > >> > > >> carlosrovira@apache.org
> > > > > > >> > > >> > >)
> > > > > > >> > > >> > > escribió:
> > > > > > >> > > >> > >
> > > > > > >> > > >> > > > Ok Josh,
> > > > > > >> > > >> > > >
> > > > > > >> > > >> > > > so all seems ok, but debug is not working in
> > > > > > >> > > >> > > > classes from
> > > > > > >> Jewel
> > > > > > >> > > lib.
> > > > > > >> > > >> > > > I see the jewel.swc has the js.map files in
> > > > > > >> > > >> > > > the same
> > > > way
> > > > > > >> > > >> > > > I
> > > > > > >> > > related,
> > > > > > >> > > >> so
> > > > > > >> > > >> > > > that's ok as you stated.
> > > > > > >> > > >> > > > I'm setting breakpoints in the same VSCode
> > > > > > >> > > >> > > > window for Jewel
> > > > > > >> and
> > > > > > >> > > TDJ
> > > > > > >> > > >> > > files,
> > > > > > >> > > >> > > > but only TDJ files (in the root or subfolders)
> > > > > > >> > > >> > > > are making
> > > > > > >> > > execution
> > > > > > >> > > >> > stop.
> > > > > > >> > > >> > > > If I set up a breakpoint in let's say Jewel
> > > Button.as,
> > > > > > >> > > >> > > > that
> > > > > > >> > > appears
> > > > > > >> > > >> > empty
> > > > > > >> > > >> > > > on execution and doesn't have effect, while
> > > > > > >> > > >> > > > TDJ
> > > appears
> > > > > > >> > > >> > > > red
> > > > > > >> and
> > > > > > >> > > >> works
> > > > > > >> > > >> > ok.
> > > > > > >> > > >> > > >
> > > > > > >> > > >> > > > Do you know what could be happening?
> > > > > > >> > > >> > > >
> > > > > > >> > > >> > > >
> > > > > > >> > > >> > > >
> > > > > > >> > > >> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala
> > > > > > >> > > >> > > > (<
> > > > > > >> > > >> > joshtynjala@bowlerhat.dev
> > > > > > >> > > >> > > >)
> > > > > > >> > > >> > > > escribió:
> > > > > > >> > > >> > > >
> > > > > > >> > > >> > > >> The path of the .js.map file is relative to
> > > > > > >> > > >> > > >> the .js
> > > > > file.
> > > > > > >> > Since
> > > > > > >> > > >> the
> > > > > > >> > > >> > > >> .js.map file is supposed to be in the same
> > > > > > >> > > >> > > >> folder as the .js
> > > > > > >> > > file,
> > > > > > >> > > >> > that
> > > > > > >> > > >> > > >> looks correct to me.
> > > > > > >> > > >> > > >>
> > > > > > >> > > >> > > >> --
> > > > > > >> > > >> > > >> Josh Tynjala
> > > > > > >> > > >> > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >> > > >> > > >>
> > > > > > >> > > >> > > >>
> > > > > > >> > > >> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira
> > > > > > >> > > >> > > >> <
> > > > > > >> > > >> > carlosrovira@apache.org>
> > > > > > >> > > >> > > >> wrote:
> > > > > > >> > > >> > > >>
> > > > > > >> > > >> > > >> > Hi Josh,
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >> > > >> > I'm trying to debug jewel classes in TDJ
> > > > > > >> > > >> > > >> > and for example
> > > > > > >> > > >> > > >> AlertController.js
> > > > > > >> > > >> > > >> > has at the end:
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >> > > >> > //#
> > > > > > >> > > >> > > >> > sourceMappingURL=./AlertController.js.map
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >> > > >> > It's ok? I expect it to reference the
> > > > > > >> > > >> > > >> > concrete
> > > > > > subfolder:
> > > > > > >> > > >> > > >> > org/apache/royale/jewel/beads/controllers
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >> > > >> > El jue, 7 ene 2021 a las 18:23, Josh
> > > > > > >> > > >> > > >> > Tynjala (<
> > > > > > >> > > >> > > >> joshtynjala@bowlerhat.dev>)
> > > > > > >> > > >> > > >> > escribió:
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >> > > >> > > Yes, you're right that +royalelib should
> > > > > > >> > > >> > > >> > > not be required
> > > > > > >> > for
> > > > > > >> > > >> > > framework
> > > > > > >> > > >> > > >> > > libs. I wasn't paying close enough
> > > > > > >> > > >> > > >> > > attention to
> > > > see
> > > > > > >> > > >> > > >> > > that
> > > > > > >> > you
> > > > > > >> > > >> had
> > > > > > >> > > >> > > added
> > > > > > >> > > >> > > >> > > +royalelib to both Jewel and TDJ.
> > > > > > >> > > >> > > >> > >
> > > > > > >> > > >> > > >> > > So, to summarize, you should use
> > > > > > >> > > >> > > >> > > source-map-source-root
> > > > > > >> > when
> > > > > > >> > > >> > > building
> > > > > > >> > > >> > > >> > > framework libs, and you should use
> > > > > > >> > > >> > > >> > > +royalelib
> > > when
> > > > > > >> building
> > > > > > >> > > >> > > >> > examples/apps.
> > > > > > >> > > >> > > >> > > +royalelib is not necessary for framework
> > > > > > >> > > >> > > >> > > +libs,
> > > > and
> > > > > > >> > > >> > > >> > source-map-source-root
> > > > > > >> > > >> > > >> > > is (generally) not necessary for
> > examples/apps.
> > > > > > >> > > >> > > >> > >
> > > > > > >> > > >> > > >> > > --
> > > > > > >> > > >> > > >> > > Josh Tynjala Bowler Hat LLC
> > > > > > >> > > >> > > >> > > <https://bowlerhat.dev>
> > > > > > >> > > >> > > >> > >
> > > > > > >> > > >> > > >> > >
> > > > > > >> > > >> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos
> > > > > > >> > > >> > > >> > > Rovira <
> > > > > > >> > > >> > > carlosrovira@apache.org
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >> > > >> > > wrote:
> > > > > > >> > > >> > > >> > >
> > > > > > >> > > >> > > >> > > > Hi Josh,
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > > I discover right now that I was
> > > > > > >> > > >> > > >> > > > understanding wrong
> > > > > > >> how
> > > > > > >> > all
> > > > > > >> > > >> this
> > > > > > >> > > >> > > >> works.
> > > > > > >> > > >> > > >> > > > I thought we needed +royalelib in
> > > > > > >> > > >> > > >> > > > framework
> > > > libs,
> > > > > > >> > > >> > > >> > > > but
> > > > > > >> > it's
> > > > > > >> > > >> not
> > > > > > >> > > >> > the
> > > > > > >> > > >> > > >> > case.
> > > > > > >> > > >> > > >> > > > Just need to add +royalelib to a final
> > > project,
> > > > > > >> > > >> > > >> > > > so
> > > > > > >> that
> > > > > > >> > can
> > > > > > >> > > >> be
> > > > > > >> > > >> > > left
> > > > > > >> > > >> > > >> to
> > > > > > >> > > >> > > >> > > the
> > > > > > >> > > >> > > >> > > > user.
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > > That means that we can add to all libs
> this:
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >>
> > > > > > >> > > >> -source-map-source-root=/frameworks/projects/XXX/tar
> > > > > > >> > > >> ge
> > > > > > >> > > >> t/
> > > > > > >> > > >> > > >> > > > (Where XXX is the root libraryfolder)
> > > > > > >> > > >> > > >> > > > -> For
> > > > this
> > > > > > >> I'll be
> > > > > > >> > > >> adding
> > > > > > >> > > >> > > in
> > > > > > >> > > >> > > >> a
> > > > > > >> > > >> > > >> > > > commit soon
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > > So, Chris, we don't need anything more
> > > > > > >> > > >> > > >> > > > to implement,
> > > > > > >> as I
> > > > > > >> > > >> commit
> > > > > > >> > > >> > > the
> > > > > > >> > > >> > > >> > > > -source-map-source-root line in all
> > > > > > >> > > >> > > >> > > > framework
> > > > > poms.
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > > Another thing is if we should upload
> > > > > > >> > > >> > > >> > > > all
> > > source
> > > > > > >> > > >> > > >> > > > maps
> > > > > > >> > > (js.map
> > > > > > >> > > >> > > files)
> > > > > > >> > > >> > > >> of
> > > > > > >> > > >> > > >> > > all
> > > > > > >> > > >> > > >> > > > framework libs to some r.a.o url (for
> > > > > > >> > > >> > > >> > > > example /debug),
> > > > > > >> > and
> > > > > > >> > > if
> > > > > > >> > > >> > > people
> > > > > > >> > > >> > > >> > can
> > > > > > >> > > >> > > >> > > > point with +royalelib (i.e: +royalelib=
> > > > > > >> > > >> > > >> http://royale.apache.org/debug
> > > > > > >> > > >> > > >> > )
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > > What do you think?
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh
> > > > > > >> > > >> > > >> > > > Tynjala
> > > (<
> > > > > > >> > > >> > > >> > joshtynjala@bowlerhat.dev
> > > > > > >> > > >> > > >> > > >)
> > > > > > >> > > >> > > >> > > > escribió:
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > > > While we can set
> > > > > > >> > > >> > > >> > > > > source-map-source-root in
> > > all
> > > > > > >> > > >> > > >> > > > > of
> > > > > > >> the
> > > > > > >> > > >> library
> > > > > > >> > > >> > > >> > > projects, I
> > > > > > >> > > >> > > >> > > > > don't think that there's any way for
> > > > > > >> > > >> > > >> > > > > us to specify
> > > > > > >> > > >> +royalelib
> > > > > > >> > > >> > > for
> > > > > > >> > > >> > > >> TDJ
> > > > > > >> > > >> > > >> > > and
> > > > > > >> > > >> > > >> > > > > other examples in a general way.
> > > > > > >> > > >> > > >> > > > > That's the
> > > > one
> > > > > > >> thing
> > > > > > >> > > that
> > > > > > >> > > >> > users
> > > > > > >> > > >> > > >> will
> > > > > > >> > > >> > > >> > > > > probably need to set up manually
> > > > > > >> > > >> > > >> > > > > because the source
> > > > > > >> > files
> > > > > > >> > > >> come
> > > > > > >> > > >> > > >> from
> > > > > > >> > > >> > > >> > an
> > > > > > >> > > >> > > >> > > > > IDE-compatible SDK.
> > > > > > >> > > >> > > >> > > > >
> > > > > > >> > > >> > > >> > > > > --
> > > > > > >> > > >> > > >> > > > > Josh Tynjala Bowler Hat LLC
> > > > > > >> > > >> > > >> > > > > <https://bowlerhat.dev>
> > > > > > >> > > >> > > >> > > > >
> > > > > > >> > > >> > > >> > > > >
> > > > > > >> > > >> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos
> > > Rovira <
> > > > > > >> > > >> > > >> > carlosrovira@apache.org>
> > > > > > >> > > >> > > >> > > > > wrote:
> > > > > > >> > > >> > > >> > > > >
> > > > > > >> > > >> > > >> > > > > > 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-mave
> > > > > > >> > > +n
> > > > > > >> > > >> > > >> > > > > >
> > > > > > >> > > >> > > >> > > > > > 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
> > > > > > >> > > >> > > >> > > > > > (<
> > > > > > >> > > >> > > >> > > > carlosrovira@apache.org
> > > > > > >> > > >> > > >> > > > > >)
> > > > > > >> > > >> > > >> > > > > > escribió:
> > > > > > >> > > >> > > >> > > > > >
> > > > > > >> > > >> > > >> > > > > > > Hi Josh, Thanks! That worked and
> > > > > > >> > > >> > > >> > > > > > > I
> > > finally
> > > > > > >> > > >> > > >> > > > > > > have
> > > > > > >> > > >> debugging
> > > > > > >> > > >> > > >> again!
> > > > > > >> > > >> > > >> > :D
> > > > > > >> > > >> > > >> > > > > > >
> > > > > > >> > > >> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34,
> > > > > > >> > > >> > > >> > > > > > > Josh Tynjala (<
> > > > > > >> > > >> > > >> > > > > joshtynjala@bowlerhat.dev
> > > > > > >> > > >> > > >> > > > > > >)
> > > > > > >> > > >> > > >> > > > > > > escribió:
> > > > > > >> > > >> > > >> > > > > > >
> > > > > > >> > > >> > > >> > > > > > >> Hey Carlos,
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> > > > > > >> Try using source-map-source-root
> > > > > > >> > > >> > > >> > > > > > >> with Jewel
> > > > > > >> only,
> > > > > > >> > > and
> > > > > > >> > > >> > omit
> > > > > > >> > > >> > > it
> > > > > > >> > > >> > > >> > from
> > > > > > >> > > >> > > >> > > > > TDJ.
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> > > > > > >> Jewel:
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >>
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > > >> > > >> +aven
> > > > > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> > > > > > >> TDJ:
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >>
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > > >> > > >> +aven
> > > > > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > > > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> > > > > > >> 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
> > > > > > >> > > >> > > >> > > > > > >> <https://bowlerhat.dev>
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM
> > > > > > >> > > >> > > >> > > > > > >> Carlos Rovira <
> > > > > > >> > > >> > > >> > > > carlosrovira@apache.org
> > > > > > >> > > >> > > >> > > > > >
> > > > > > >> > > >> > > >> > > > > > >> 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:
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > > > > > >> > <additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > >
> > > > > > >> > > >>
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > > >> > > >> +aven
> > > > > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > > > > > >> > and in TDJ:
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > >
> > > > > > >> > > >>
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > > >> > > >> +aven
> > > > > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > > > > > >> > but no luck.
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > > > > > >> > So if +royalelib doesn't work
> > > > > > >> > > >> > > >> > > > > > >> > for
> > > Maven
> > > > > > >> maybe it
> > > > > > >> > > >> should
> > > > > > >> > > >> > > be
> > > > > > >> > > >> > > >> > > > something
> > > > > > >> > > >> > > >> > > > > > >> like
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > "-source-map-source-root=$$$/frameworks/projects/J
> > > > > > >> > > >> > ew
> > > > > > >> > > >> > el/",
> > > > > > >> > > >> > > >> > 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.dutz@c-ware.de>)
> > > > > > >> > > >> > > >> > > > > > >> > escribió:
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > > > > > >> >> Hi all,
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > > >> >> Sure, happy to help, but what
> > > exactly
> > > > > > >> > > >> > > >> > > > > > >> >> do you
> > > > > > >> > > need?
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > > >> >> Chris
> > > > > > >> > > >> > > >> > > > > > >> >> -----------------------------
> > > > > > >> > > >> > > >> > > > > > >> >> -
> > > > > > >> > > >> > > >> > > > > > >> >> *Von:* Carlos Rovira <
> > > > > > >> carlosrovira@apache.org>
> > > > > > >> > > >> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3.
> > > > > > >> > > >> > > >> > > > > > >> >> Januar
> > > > > > >> > > >> > > >> > > > > > >> >> 2021
> > > > > > >> > > >> > > >> > > > > > >> >> 23:23
> > > > > > >> > > >> > > >> > > > > > >> >> *An:* Josh Tynjala <
> > > > > > >> joshtynjala@bowlerhat.dev
> > > > > > >> > >;
> > > > > > >> > > >> > > >> Christofer
> > > > > > >> > > >> > > >> > > Dutz
> > > > > > >> > > >> > > >> > > > <
> > > > > > >> > > >> > > >> > > > > > >> >> christofer.dutz@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 (<
> > > > > > >> > > >> > > >> > > > > > >> joshtynjala@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/framewo
> > > > > > >> > > >> > > >> > > > > > >> >> +rks/
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > > >> >> 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 <
> > > > > > >> > > >> > > >> > > > > > carlosrovira@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:
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > <additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >> >> -source-map=true;
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > >
> > > > > > >> > > >> -source-map-source-root=/frameworks/projects/Jewel/t
> > > > > > >> > > >> ar
> > > > > > >> > > >> get/
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > </additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > > >> >> And in TDJ this:
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > > >> >> -source-map=true;
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > >
> > > > > > >> > > >> -source-map-source-root=/examples/jewel/TourDeJewel/
> > > > > > >> > > >> ta
> > > > > > >> > > >> rget
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > </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
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > > > > > >> > -- 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
> > > > > > >> > > >> > > >> > > > > >
> > > > > > >> > > >> > > >> > > > >
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > > --
> > > > > > >> > > >> > > >> > > > 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
> > > > > > >> > > >> > > >
> > > > > > >> > > >> > > >
> > > > > > >> > > >> > >
> > > > > > >> > > >> > > --
> > > > > > >> > > >> > > 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
> > > > > > >>
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > 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
>
Re: Configuring source maps on Royale with new compiler options
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
If I recall correctly, spark.css is a file that Flash Builder requires to
be present to be recognized as a valid SDK. I'm surprised that you're
getting an error about it when run from Maven on the command line, though.
Regardless, it looks like the Maven distribution is missing this file, but
it is required to be included to be a fully IDE-compatible SDK.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Mon, Jan 18, 2021 at 12:59 AM Maria Jose Esteve <mj...@iest.com>
wrote:
> Hello,
> I compile, run and debug TDJ perfectly with the latest SDK hints and
> modifications. In my case I only get debugging if I link the frameworks /
> projects folder: working with vscode we will include in the workspace a
> path to the asjs folder or directly to the TDJ folder and a path to the
> projects directory of the SDK - royalelib.
>
> But when I try to do the same with my project I can't compile it with
> Droyalelib I get the error:
> D:\Desarrollo_Royale\Royale-git\fork_sdk_asjs\frameworks\projects\defaults
> unable to open
>
> 'D:\Desarrollo_Royale\Royale-git\fork_sdk_asjs\frameworks\themes\Spark\spark.css'.
> defaults (line: -1)
>
> I have looked for information and I have found a couple of entries from a
> few years ago but I have not gotten anything clear.
> Does anyone know what happens?
>
> I have inspected the SDK and found only one match in the
> royale-asjs/build.xml (I compile with maven):
> ...
> <!-- hack to keep compiler happy -->
> <mkdir dir="${ROYALE_HOME}/frameworks/themes/Spark" />
> <echo file="${ROYALE_HOME}/frameworks/themes/Spark/spark.css">/*
> * Licensed to the Apache Software Foundation (ASF) under one or more
> * contributor license agreements. See the NOTICE file distributed with
> * this work for additional information regarding copyright ownership.
> * The ASF licenses this file to You under the Apache License, Version 2.0
> * (the "License"); you may not use this file except in compliance with
> * the License. You may obtain a copy of the License at
> *
> * http://www.apache.org/licenses/LICENSE-2.0
> *
> * Unless required by applicable law or agreed to in writing, software
> * distributed under the License is distributed on an "AS IS" BASIS,
> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> * See the License for the specific language governing permissions and
> * limitations under the License.
> *
> */
> /* generated by build script */
> </echo>
>
> I can't move forward with the compilation of my project with Droyalelib.
>
> Thx.
> Hiedra.
>
> -----Mensaje original-----
> De: Carlos Rovira <ca...@apache.org>
> Enviado el: domingo, 17 de enero de 2021 12:06
> Para: Apache Royale Development <de...@royale.apache.org>
> Asunto: Re: Configuring source maps on Royale with new compiler options
>
> Thanks Josh!
>
> I'll take a look in the next few days. I'm these days with some
> complications but hopefully will return soon :) Thanks for letting me know!
>
> Carlos
>
>
> El sáb, 16 ene 2021 a las 3:00, Maria Jose Esteve (<mj...@iest.com>)
> escribió:
>
> > Have you noticed that it recognizes the "... / royale" directory as a
> > file?
> >
> >
> >
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/Jewel/src/main/royale"
> >
> > (I'm looking at this now)
> > Hiedra
> >
> > -----Mensaje original-----
> > De: Josh Tynjala <jo...@bowlerhat.dev> Enviado el: viernes, 15
> > de enero de 2021 20:04
> > Para: Apache Royale Development <de...@royale.apache.org>
> > Asunto: Re: Configuring source maps on Royale with new compiler
> > options
> >
> > Your changes are now working for me!
> >
> > I just pulled your latest changes in royale-asjs, running the
> > following command to build the framework SWCs:
> >
> > mvn clean install -DskipTests
> >
> > Then, I ran a clean build of TDJ, with the following command:
> >
> > mvn clean install
> > -Droyalelib=c:/Users/josht/Development/apache/royale-asjs/frameworks
> >
> > I am seeing the expected full sourceRoot in Button.js.map that
> > includes the content of -Droyalelib.
> >
> >
> >
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/Jewel/src/main/royale"
> >
> > I added a breakpoint in the text setter in Button.as on this line:
> >
> > spanLabel.textContent = value;
> >
> > And the debugger stopped correctly when I launched in Chrome.
> >
> > Your sourceRoot in Button.js.map is wrong. Make sure that you clean
> > the project when you build, so that you don't have a cached
> > Button.js.map. And don't forget the -Droyalelib option.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Fri, Jan 15, 2021 at 6:40 AM Carlos Rovira
> > <ca...@apache.org>
> > wrote:
> >
> > > Oops! You're right Josh, I commited a fix for that.
> > >
> > > Anyway, I tried within Jewel adding hardcoded code (as you showed)
> > > and it didn't worked. In both cases:
> > >
> > > For Button.js, I get this:
> > >
> > > //# sourceMappingURL=./Button.js.map
> > >
> > > and Button.js.map has:
> > >
> > > "sourceRoot":"/frameworks/projects/Jewel/src/main/royale/",
> > >
> > > If you have the same code, maybe the problem is not maven build but
> > > something related to VSCode.
> > >
> > > Thanks
> > >
> > > Carlos
> > >
> > >
> > > El jue, 14 ene 2021 a las 18:55, Josh Tynjala
> > > (<joshtynjala@bowlerhat.dev
> > > >)
> > > escribió:
> > >
> > > > This is what I see in the Button.js.map file:
> > > >
> > > >
> > > >
> > >
> >
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/{$project.artifactId}/src/main/royale"
> > > >
> > > > The {$project.artifactId} token seems incorrect. Did you mean
> > > > ${project.artifactId} instead?
> > > >
> > > > --
> > > > Josh Tynjala
> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >
> > > >
> > > > On Thu, Jan 14, 2021 at 1:59 AM Carlos Rovira
> > > > <ca...@apache.org>
> > > > wrote:
> > > >
> > > > > Hi Josh,
> > > > >
> > > > > just tried your recommendations, but seems not to work.
> > > > >
> > > > > I added to Jewel:
> > > > >
> > > > > <additionalCompilerOptions>
> > > > > -source-map=true;
> > > > > -source-map-source-root=/frameworks/projects/Jewel/src/main/roya
> > > > > le
> > > > > /
> > > > > </additionalCompilerOptions>
> > > > >
> > > > > and in TDJ just:
> > > > >
> > > > > -source-map=true;
> > > > >
> > > > > I added in my VSCode tasks the argument to compile TDJ
> > > > >
> > > > > "args": [
> > > > > "clean",
> > > > > "install",
> > > > > "-P option-with-swf",
> > > > >
> > > > >
> > > >
> > >
> >
> "-Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks"
> > > > > ,
> > > > > "-DskipTests"
> > > > > ]
> > > > >
> > > > > setting a break point in jewel button is marked with an empty
> > > > > circle in VSCode and doesn't stop, but TDJ works ok.
> > > > >
> > > > > I think I followed your indications right, and also committed
> > > > > (but the commit is more general since I added the config to
> > > > > frameworks/projects
> > > to
> > > > > affect to all SWC libs at once). Maybe there's some detail that
> > > > > is preventing it to work.
> > > > >
> > > > > Thanks for your time and taking a look
> > > > >
> > > > > Carlos
> > > > >
> > > > >
> > > > > El jue, 14 ene 2021 a las 9:25, Maria Jose Esteve
> > > > > (<mjesteve@iest.com
> > > >)
> > > > > escribió:
> > > > >
> > > > > > Hi, It does not work for me.
> > > > > > I have modified Jewel's pom.xml, main pom "/ projects /" and
> > > > > > have
> > > > > modified
> > > > > > my maven build to include the Droyalelib option with the path
> > > > > > to my / frameworks directory, the result error.
> > > > > > Do I have to modify something else ?, the sdk does not compile
> > > > > >
> > > > > > Thx
> > > > > > Hiedra
> > > > > >
> > > > > > -----Mensaje original-----
> > > > > > De: Josh Tynjala <jo...@bowlerhat.dev> Enviado el:
> > > > > > jueves,
> > > > > > 14 de enero de 2021 0:40
> > > > > > Para: Apache Royale Development <de...@royale.apache.org>
> > > > > > Asunto: Re: Configuring source maps on Royale with new
> > > > > > compiler
> > > options
> > > > > >
> > > > > > Okay, I've determined a couple of tweaks to the process that
> > > > > > made
> > > > things
> > > > > > work on my machine to allow source map debugging with Maven.
> > > > > >
> > > > > > The source-map-source-root for Jewel and other SDK libs must
> > > > > > include src/main/royale/ at the end.
> > > > > >
> > > > > > <additionalCompilerOptions>
> > > > > > -source-map=true;
> > > > > >
> > > > > > -source-map-source-root=/frameworks/projects/Jewel/src/main/ro
> > > > > > ya
> > > > > > le/
> > > > > > </additionalCompilerOptions>
> > > > > >
> > > > > > For TDJ and other apps, you only need the source-map option.
> > > > > > Do NOT
> > > add
> > > > > > source-map-source-root and do NOT add +royalelib.
> > > > > >
> > > > > > <additionalCompilerOptions>
> > > > > > -source-map=true;
> > > > > > </additionalCompilerOptions>
> > > > > >
> > > > > > Instead add an extra -Droyalelib option to your mvn command
> > > > > > line. For
> > > > > > example:
> > > > > >
> > > > > > mvn clean install
> > > > > >
> > > > > >
> > > > >
> > > >
> > > -Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/
> > > fr
> > > ameworks
> > > > > >
> > > > > > --
> > > > > > Josh Tynjala
> > > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >
> > > > > >
> > > > > > On Wed, Jan 13, 2021 at 2:57 PM Josh Tynjala <
> > > > joshtynjala@bowlerhat.dev>
> > > > > > wrote:
> > > > > >
> > > > > > > I just gave it a try myself, and it looks like the compiler
> > > > > > > is
> > > > failing
> > > > > > > to recognize the +royalelib token when you try to put it
> > > > > > > into
> > > Maven's
> > > > > > > additionalCompilerOptions. As I implied, it was certainly
> > > > > > > possible that this might or might not work.
> > > > > > >
> > > > > > > I'll let you know if I have another suggestion.
> > > > > > >
> > > > > > > --
> > > > > > > Josh Tynjala
> > > > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >
> > > > > > >
> > > > > > > On Sat, Jan 9, 2021 at 1:01 AM Carlos Rovira <
> > > > carlosrovira@apache.org>
> > > > > > > wrote:
> > > > > > >
> > > > > > >> Hi Josh,
> > > > > > >>
> > > > > > >> Thanks for taking a look, I'll check maven distribution to
> > > > > > >> see how
> > > > to
> > > > > > >> add the missing folder. It's strange since I think I was
> > > > > > >> debugging against the Maven SDK until now.
> > > > > > >>
> > > > > > >> I made now a quick try with ANT SDK, after my daily build
> > > completed,
> > > > > > >> with your latest changes from yesterday, and compiled TDJ
> with:
> > > > > > >>
> > > > > > >>
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/frame
> > > > +wo
> > > > +r
> > > > > > >> +ks
> > > > > > >>
> > > > > > >> to point to ANT instead to MAVEN, and the result was the
> > > > > > >> same for royale ANT sdk: TDJ stops at breakpoints in VSCode
> > > > > > >> but
> > Jewel not.
> > > I
> > > > > > >> thought that ANT SDK should work right, isn't?
> > > > > > >>
> > > > > > >> Thanks
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >> El vie, 8 ene 2021 a las 22:57, Greg Dove
> > > > > > >> (<gr...@gmail.com>)
> > > > > > >> escribió:
> > > > > > >>
> > > > > > >> > Thanks Josh, I guess there was still something cached at
> > > > > > >> > a different
> > > > > > >> level
> > > > > > >> > in our local m2 that meant it was still working for
> > > > > > >> > Hiedra and
> > > me.
> > > > > > >> > Nice sleuthing!
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > On Sat, Jan 9, 2021 at 10:43 AM Josh Tynjala
> > > > > > >> > <joshtynjala@bowlerhat.dev
> > > > > > >> >
> > > > > > >> > wrote:
> > > > > > >> >
> > > > > > >> > > Following up, since I can now successfully build the
> > > > > > >> > > Maven
> > > > > > >> distribution
> > > > > > >> > > again.
> > > > > > >> > >
> > > > > > >> > > I've confirmed that frameworks/projects is missing from
> > > > > > >> > > a
> > > Maven
> > > > > > >> > > distribution, like I had observed in the past. With
> > > > > > >> > > that in
> > > > mind,
> > > > > > >> > > a
> > > > > > >> Maven
> > > > > > >> > > distribution cannot currently be referenced with
> > > > > > >> > > +royalelib
> > > for
> > > > > > >> > > sourcemap-enabled debugging with the original .as files.
> > > > > > >> > >
> > > > > > >> > > --
> > > > > > >> > > Josh Tynjala
> > > > > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> > > On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <
> > > > > > >> joshtynjala@bowlerhat.dev>
> > > > > > >> > > wrote:
> > > > > > >> > >
> > > > > > >> > > > Carlos, are you using a Maven distribution as your
> > > > > > >> > > > IDE-compatible
> > > > > > >> SDK?
> > > > > > >> > > The
> > > > > > >> > > > last time that I built one, I seem to recall that the
> > > > > > >> > > > distribution
> > > > > > >> did
> > > > > > >> > > not
> > > > > > >> > > > include the original .as source files. I don't know
> > > > > > >> > > > if
> > > that's
> > > > > > >> > > > still
> > > > > > >> the
> > > > > > >> > > > case or not. I tried building a Maven distribution
> > > > > > >> > > > today to check,
> > > > > > >> but
> > > > > > >> > > the
> > > > > > >> > > > build fails due to the current compiler being on
> > > > > > >> > > > version
> > > 0.9.9
> > > > > > >> > > > and
> > > > > > >> the
> > > > > > >> > > > framework still expecting 0.9.8.
> > > > > > >> > > >
> > > > > > >> > > > --
> > > > > > >> > > > Josh Tynjala
> > > > > > >> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
> > > > > > >> carlosrovira@apache.org
> > > > > > >> > >
> > > > > > >> > > > wrote:
> > > > > > >> > > >
> > > > > > >> > > >> Hi Josh,
> > > > > > >> > > >>
> > > > > > >> > > >> thanks, I added "frameworks" in TDJ +royalelib but
> > > > > > >> > > >> seems it doesn't
> > > > > > >> > have
> > > > > > >> > > >> effect, stil debug TDJ but not classes in Jewel.
> > > > > > >> > > >> Don't see what it could be :?
> > > > > > >> > > >>
> > > > > > >> > > >> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > > > > > >> > > joshtynjala@bowlerhat.dev
> > > > > > >> > > >> >)
> > > > > > >> > > >> escribió:
> > > > > > >> > > >>
> > > > > > >> > > >> > Looking over previous emails in this thread, it
> > > > > > >> > > >> > looks
> > > like
> > > > > > >> > > >> > you
> > > > > > >> > forgot
> > > > > > >> > > to
> > > > > > >> > > >> > add /frameworks at the end of the +royalelib path.
> > > > > > >> > > >> >
> > > > > > >> > > >> > You have:
> > > > > > >> > > >> >
> > > > > > >> > > >> >
> > > > > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royal
> > > > > > >> +e-
> > > > > > >> +maven
> > > > > > >> > > >> >
> > > > > > >> > > >> > It should be:
> > > > > > >> > > >> >
> > > > > > >> > > >> >
> > > > > > >> > > >> >
> > > > > > >> > > >>
> > > > > > >> > >
> > > > > > >> >
> > > > > > >>
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > +/f
> > > > +r
> > > > > > >> +ameworks
> > > > > > >> > > >> >
> > > > > > >> > > >> > --
> > > > > > >> > > >> > Josh Tynjala
> > > > > > >> > > >> > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >> > > >> >
> > > > > > >> > > >> >
> > > > > > >> > > >> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > > > > > >> > > carlosrovira@apache.org>
> > > > > > >> > > >> > wrote:
> > > > > > >> > > >> >
> > > > > > >> > > >> > > Hi,
> > > > > > >> > > >> > >
> > > > > > >> > > >> > > just fyi I added:
> > > > > > >> > > >> > >
> > > > > > >> > > >> > >
> > > > > > >> > > >> >
> > > > > > >>
> > > -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > > > > >> > > >> > >
> > > > > > >> > > >> > > at frameworks/projects/pom.xml so now we have
> > > > > > >> > > >> > > setup
> > > > source
> > > > > > >> > > >> > > maps in all libraries
> > > > > > >> > > >> > >
> > > > > > >> > > >> > > but while that seems ok, I'm not getting lib
> > > > > > >> > > >> > > debugging
> > > as
> > > > > > >> > > >> > > I
> > > > > > >> stated
> > > > > > >> > > in
> > > > > > >> > > >> my
> > > > > > >> > > >> > > last email.
> > > > > > >> > > >> > >
> > > > > > >> > > >> > >
> > > > > > >> > > >> > >
> > > > > > >> > > >> > >
> > > > > > >> > > >> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > > > > > >> > > >> carlosrovira@apache.org
> > > > > > >> > > >> > >)
> > > > > > >> > > >> > > escribió:
> > > > > > >> > > >> > >
> > > > > > >> > > >> > > > Ok Josh,
> > > > > > >> > > >> > > >
> > > > > > >> > > >> > > > so all seems ok, but debug is not working in
> > > > > > >> > > >> > > > classes from
> > > > > > >> Jewel
> > > > > > >> > > lib.
> > > > > > >> > > >> > > > I see the jewel.swc has the js.map files in
> > > > > > >> > > >> > > > the same
> > > > way
> > > > > > >> > > >> > > > I
> > > > > > >> > > related,
> > > > > > >> > > >> so
> > > > > > >> > > >> > > > that's ok as you stated.
> > > > > > >> > > >> > > > I'm setting breakpoints in the same VSCode
> > > > > > >> > > >> > > > window for Jewel
> > > > > > >> and
> > > > > > >> > > TDJ
> > > > > > >> > > >> > > files,
> > > > > > >> > > >> > > > but only TDJ files (in the root or subfolders)
> > > > > > >> > > >> > > > are making
> > > > > > >> > > execution
> > > > > > >> > > >> > stop.
> > > > > > >> > > >> > > > If I set up a breakpoint in let's say Jewel
> > > Button.as,
> > > > > > >> > > >> > > > that
> > > > > > >> > > appears
> > > > > > >> > > >> > empty
> > > > > > >> > > >> > > > on execution and doesn't have effect, while
> > > > > > >> > > >> > > > TDJ
> > > appears
> > > > > > >> > > >> > > > red
> > > > > > >> and
> > > > > > >> > > >> works
> > > > > > >> > > >> > ok.
> > > > > > >> > > >> > > >
> > > > > > >> > > >> > > > Do you know what could be happening?
> > > > > > >> > > >> > > >
> > > > > > >> > > >> > > >
> > > > > > >> > > >> > > >
> > > > > > >> > > >> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala
> > > > > > >> > > >> > > > (<
> > > > > > >> > > >> > joshtynjala@bowlerhat.dev
> > > > > > >> > > >> > > >)
> > > > > > >> > > >> > > > escribió:
> > > > > > >> > > >> > > >
> > > > > > >> > > >> > > >> The path of the .js.map file is relative to
> > > > > > >> > > >> > > >> the .js
> > > > > file.
> > > > > > >> > Since
> > > > > > >> > > >> the
> > > > > > >> > > >> > > >> .js.map file is supposed to be in the same
> > > > > > >> > > >> > > >> folder as the .js
> > > > > > >> > > file,
> > > > > > >> > > >> > that
> > > > > > >> > > >> > > >> looks correct to me.
> > > > > > >> > > >> > > >>
> > > > > > >> > > >> > > >> --
> > > > > > >> > > >> > > >> Josh Tynjala
> > > > > > >> > > >> > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >> > > >> > > >>
> > > > > > >> > > >> > > >>
> > > > > > >> > > >> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira
> > > > > > >> > > >> > > >> <
> > > > > > >> > > >> > carlosrovira@apache.org>
> > > > > > >> > > >> > > >> wrote:
> > > > > > >> > > >> > > >>
> > > > > > >> > > >> > > >> > Hi Josh,
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >> > > >> > I'm trying to debug jewel classes in TDJ
> > > > > > >> > > >> > > >> > and for example
> > > > > > >> > > >> > > >> AlertController.js
> > > > > > >> > > >> > > >> > has at the end:
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >> > > >> > //#
> > > > > > >> > > >> > > >> > sourceMappingURL=./AlertController.js.map
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >> > > >> > It's ok? I expect it to reference the
> > > > > > >> > > >> > > >> > concrete
> > > > > > subfolder:
> > > > > > >> > > >> > > >> > org/apache/royale/jewel/beads/controllers
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >> > > >> > El jue, 7 ene 2021 a las 18:23, Josh
> > > > > > >> > > >> > > >> > Tynjala (<
> > > > > > >> > > >> > > >> joshtynjala@bowlerhat.dev>)
> > > > > > >> > > >> > > >> > escribió:
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >> > > >> > > Yes, you're right that +royalelib should
> > > > > > >> > > >> > > >> > > not be required
> > > > > > >> > for
> > > > > > >> > > >> > > framework
> > > > > > >> > > >> > > >> > > libs. I wasn't paying close enough
> > > > > > >> > > >> > > >> > > attention to
> > > > see
> > > > > > >> > > >> > > >> > > that
> > > > > > >> > you
> > > > > > >> > > >> had
> > > > > > >> > > >> > > added
> > > > > > >> > > >> > > >> > > +royalelib to both Jewel and TDJ.
> > > > > > >> > > >> > > >> > >
> > > > > > >> > > >> > > >> > > So, to summarize, you should use
> > > > > > >> > > >> > > >> > > source-map-source-root
> > > > > > >> > when
> > > > > > >> > > >> > > building
> > > > > > >> > > >> > > >> > > framework libs, and you should use
> > > > > > >> > > >> > > >> > > +royalelib
> > > when
> > > > > > >> building
> > > > > > >> > > >> > > >> > examples/apps.
> > > > > > >> > > >> > > >> > > +royalelib is not necessary for framework
> > > > > > >> > > >> > > >> > > +libs,
> > > > and
> > > > > > >> > > >> > > >> > source-map-source-root
> > > > > > >> > > >> > > >> > > is (generally) not necessary for
> > examples/apps.
> > > > > > >> > > >> > > >> > >
> > > > > > >> > > >> > > >> > > --
> > > > > > >> > > >> > > >> > > Josh Tynjala Bowler Hat LLC
> > > > > > >> > > >> > > >> > > <https://bowlerhat.dev>
> > > > > > >> > > >> > > >> > >
> > > > > > >> > > >> > > >> > >
> > > > > > >> > > >> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos
> > > > > > >> > > >> > > >> > > Rovira <
> > > > > > >> > > >> > > carlosrovira@apache.org
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >> > > >> > > wrote:
> > > > > > >> > > >> > > >> > >
> > > > > > >> > > >> > > >> > > > Hi Josh,
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > > I discover right now that I was
> > > > > > >> > > >> > > >> > > > understanding wrong
> > > > > > >> how
> > > > > > >> > all
> > > > > > >> > > >> this
> > > > > > >> > > >> > > >> works.
> > > > > > >> > > >> > > >> > > > I thought we needed +royalelib in
> > > > > > >> > > >> > > >> > > > framework
> > > > libs,
> > > > > > >> > > >> > > >> > > > but
> > > > > > >> > it's
> > > > > > >> > > >> not
> > > > > > >> > > >> > the
> > > > > > >> > > >> > > >> > case.
> > > > > > >> > > >> > > >> > > > Just need to add +royalelib to a final
> > > project,
> > > > > > >> > > >> > > >> > > > so
> > > > > > >> that
> > > > > > >> > can
> > > > > > >> > > >> be
> > > > > > >> > > >> > > left
> > > > > > >> > > >> > > >> to
> > > > > > >> > > >> > > >> > > the
> > > > > > >> > > >> > > >> > > > user.
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > > That means that we can add to all libs
> this:
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >>
> > > > > > >> > > >> -source-map-source-root=/frameworks/projects/XXX/tar
> > > > > > >> > > >> ge
> > > > > > >> > > >> t/
> > > > > > >> > > >> > > >> > > > (Where XXX is the root libraryfolder)
> > > > > > >> > > >> > > >> > > > -> For
> > > > this
> > > > > > >> I'll be
> > > > > > >> > > >> adding
> > > > > > >> > > >> > > in
> > > > > > >> > > >> > > >> a
> > > > > > >> > > >> > > >> > > > commit soon
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > > So, Chris, we don't need anything more
> > > > > > >> > > >> > > >> > > > to implement,
> > > > > > >> as I
> > > > > > >> > > >> commit
> > > > > > >> > > >> > > the
> > > > > > >> > > >> > > >> > > > -source-map-source-root line in all
> > > > > > >> > > >> > > >> > > > framework
> > > > > poms.
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > > Another thing is if we should upload
> > > > > > >> > > >> > > >> > > > all
> > > source
> > > > > > >> > > >> > > >> > > > maps
> > > > > > >> > > (js.map
> > > > > > >> > > >> > > files)
> > > > > > >> > > >> > > >> of
> > > > > > >> > > >> > > >> > > all
> > > > > > >> > > >> > > >> > > > framework libs to some r.a.o url (for
> > > > > > >> > > >> > > >> > > > example /debug),
> > > > > > >> > and
> > > > > > >> > > if
> > > > > > >> > > >> > > people
> > > > > > >> > > >> > > >> > can
> > > > > > >> > > >> > > >> > > > point with +royalelib (i.e: +royalelib=
> > > > > > >> > > >> > > >> http://royale.apache.org/debug
> > > > > > >> > > >> > > >> > )
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > > What do you think?
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh
> > > > > > >> > > >> > > >> > > > Tynjala
> > > (<
> > > > > > >> > > >> > > >> > joshtynjala@bowlerhat.dev
> > > > > > >> > > >> > > >> > > >)
> > > > > > >> > > >> > > >> > > > escribió:
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > > > While we can set
> > > > > > >> > > >> > > >> > > > > source-map-source-root in
> > > all
> > > > > > >> > > >> > > >> > > > > of
> > > > > > >> the
> > > > > > >> > > >> library
> > > > > > >> > > >> > > >> > > projects, I
> > > > > > >> > > >> > > >> > > > > don't think that there's any way for
> > > > > > >> > > >> > > >> > > > > us to specify
> > > > > > >> > > >> +royalelib
> > > > > > >> > > >> > > for
> > > > > > >> > > >> > > >> TDJ
> > > > > > >> > > >> > > >> > > and
> > > > > > >> > > >> > > >> > > > > other examples in a general way.
> > > > > > >> > > >> > > >> > > > > That's the
> > > > one
> > > > > > >> thing
> > > > > > >> > > that
> > > > > > >> > > >> > users
> > > > > > >> > > >> > > >> will
> > > > > > >> > > >> > > >> > > > > probably need to set up manually
> > > > > > >> > > >> > > >> > > > > because the source
> > > > > > >> > files
> > > > > > >> > > >> come
> > > > > > >> > > >> > > >> from
> > > > > > >> > > >> > > >> > an
> > > > > > >> > > >> > > >> > > > > IDE-compatible SDK.
> > > > > > >> > > >> > > >> > > > >
> > > > > > >> > > >> > > >> > > > > --
> > > > > > >> > > >> > > >> > > > > Josh Tynjala Bowler Hat LLC
> > > > > > >> > > >> > > >> > > > > <https://bowlerhat.dev>
> > > > > > >> > > >> > > >> > > > >
> > > > > > >> > > >> > > >> > > > >
> > > > > > >> > > >> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos
> > > Rovira <
> > > > > > >> > > >> > > >> > carlosrovira@apache.org>
> > > > > > >> > > >> > > >> > > > > wrote:
> > > > > > >> > > >> > > >> > > > >
> > > > > > >> > > >> > > >> > > > > > 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-mave
> > > > > > >> > > +n
> > > > > > >> > > >> > > >> > > > > >
> > > > > > >> > > >> > > >> > > > > > 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
> > > > > > >> > > >> > > >> > > > > > (<
> > > > > > >> > > >> > > >> > > > carlosrovira@apache.org
> > > > > > >> > > >> > > >> > > > > >)
> > > > > > >> > > >> > > >> > > > > > escribió:
> > > > > > >> > > >> > > >> > > > > >
> > > > > > >> > > >> > > >> > > > > > > Hi Josh, Thanks! That worked and
> > > > > > >> > > >> > > >> > > > > > > I
> > > finally
> > > > > > >> > > >> > > >> > > > > > > have
> > > > > > >> > > >> debugging
> > > > > > >> > > >> > > >> again!
> > > > > > >> > > >> > > >> > :D
> > > > > > >> > > >> > > >> > > > > > >
> > > > > > >> > > >> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34,
> > > > > > >> > > >> > > >> > > > > > > Josh Tynjala (<
> > > > > > >> > > >> > > >> > > > > joshtynjala@bowlerhat.dev
> > > > > > >> > > >> > > >> > > > > > >)
> > > > > > >> > > >> > > >> > > > > > > escribió:
> > > > > > >> > > >> > > >> > > > > > >
> > > > > > >> > > >> > > >> > > > > > >> Hey Carlos,
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> > > > > > >> Try using source-map-source-root
> > > > > > >> > > >> > > >> > > > > > >> with Jewel
> > > > > > >> only,
> > > > > > >> > > and
> > > > > > >> > > >> > omit
> > > > > > >> > > >> > > it
> > > > > > >> > > >> > > >> > from
> > > > > > >> > > >> > > >> > > > > TDJ.
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> > > > > > >> Jewel:
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >>
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > > >> > > >> +aven
> > > > > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> > > > > > >> TDJ:
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> >
> > > > > > >> > > >>
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > > >> > > >> +aven
> > > > > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > > > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> > > > > > >> 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
> > > > > > >> > > >> > > >> > > > > > >> <https://bowlerhat.dev>
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> > > > > > >>
> > > > > > >> > > >> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM
> > > > > > >> > > >> > > >> > > > > > >> Carlos Rovira <
> > > > > > >> > > >> > > >> > > > carlosrovira@apache.org
> > > > > > >> > > >> > > >> > > > > >
> > > > > > >> > > >> > > >> > > > > > >> 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:
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > > > > > >> > <additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > >
> > > > > > >> > > >>
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > > >> > > >> +aven
> > > > > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > > > > > >> > and in TDJ:
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > >
> > > > > > >> > > >>
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > > >> > > >> +aven
> > > > > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > > > > > >> > but no luck.
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > > > > > >> > So if +royalelib doesn't work
> > > > > > >> > > >> > > >> > > > > > >> > for
> > > Maven
> > > > > > >> maybe it
> > > > > > >> > > >> should
> > > > > > >> > > >> > > be
> > > > > > >> > > >> > > >> > > > something
> > > > > > >> > > >> > > >> > > > > > >> like
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > "-source-map-source-root=$$$/frameworks/projects/J
> > > > > > >> > > >> > ew
> > > > > > >> > > >> > el/",
> > > > > > >> > > >> > > >> > 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.dutz@c-ware.de>)
> > > > > > >> > > >> > > >> > > > > > >> > escribió:
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > > > > > >> >> Hi all,
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > > >> >> Sure, happy to help, but what
> > > exactly
> > > > > > >> > > >> > > >> > > > > > >> >> do you
> > > > > > >> > > need?
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > > >> >> Chris
> > > > > > >> > > >> > > >> > > > > > >> >> -----------------------------
> > > > > > >> > > >> > > >> > > > > > >> >> -
> > > > > > >> > > >> > > >> > > > > > >> >> *Von:* Carlos Rovira <
> > > > > > >> carlosrovira@apache.org>
> > > > > > >> > > >> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3.
> > > > > > >> > > >> > > >> > > > > > >> >> Januar
> > > > > > >> > > >> > > >> > > > > > >> >> 2021
> > > > > > >> > > >> > > >> > > > > > >> >> 23:23
> > > > > > >> > > >> > > >> > > > > > >> >> *An:* Josh Tynjala <
> > > > > > >> joshtynjala@bowlerhat.dev
> > > > > > >> > >;
> > > > > > >> > > >> > > >> Christofer
> > > > > > >> > > >> > > >> > > Dutz
> > > > > > >> > > >> > > >> > > > <
> > > > > > >> > > >> > > >> > > > > > >> >> christofer.dutz@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 (<
> > > > > > >> > > >> > > >> > > > > > >> joshtynjala@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/framewo
> > > > > > >> > > >> > > >> > > > > > >> >> +rks/
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > > >> >> 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 <
> > > > > > >> > > >> > > >> > > > > > carlosrovira@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:
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > <additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >> >> -source-map=true;
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > >
> > > > > > >> > > >> -source-map-source-root=/frameworks/projects/Jewel/t
> > > > > > >> > > >> ar
> > > > > > >> > > >> get/
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > </additionalCompilerOptions>
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > > >> >> And in TDJ this:
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > > >> >> -source-map=true;
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > >
> > > > > > >> > > >> -source-map-source-root=/examples/jewel/TourDeJewel/
> > > > > > >> > > >> ta
> > > > > > >> > > >> rget
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > </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
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > > >> >>
> > > > > > >> > > >> > > >> > > > > > >> >
> > > > > > >> > > >> > > >> > > > > > >> > -- 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
> > > > > > >> > > >> > > >> > > > > >
> > > > > > >> > > >> > > >> > > > >
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > >
> > > > > > >> > > >> > > >> > > > --
> > > > > > >> > > >> > > >> > > > 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
> > > > > > >> > > >> > > >
> > > > > > >> > > >> > > >
> > > > > > >> > > >> > >
> > > > > > >> > > >> > > --
> > > > > > >> > > >> > > 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
> > > > > > >>
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > 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
>
RE: Configuring source maps on Royale with new compiler options
Posted by Maria Jose Esteve <mj...@iest.com>.
Hello,
I compile, run and debug TDJ perfectly with the latest SDK hints and modifications. In my case I only get debugging if I link the frameworks / projects folder: working with vscode we will include in the workspace a path to the asjs folder or directly to the TDJ folder and a path to the projects directory of the SDK - royalelib.
But when I try to do the same with my project I can't compile it with Droyalelib I get the error:
D:\Desarrollo_Royale\Royale-git\fork_sdk_asjs\frameworks\projects\defaults unable to open
'D:\Desarrollo_Royale\Royale-git\fork_sdk_asjs\frameworks\themes\Spark\spark.css'.
defaults (line: -1)
I have looked for information and I have found a couple of entries from a few years ago but I have not gotten anything clear.
Does anyone know what happens?
I have inspected the SDK and found only one match in the royale-asjs/build.xml (I compile with maven):
...
<!-- hack to keep compiler happy -->
<mkdir dir="${ROYALE_HOME}/frameworks/themes/Spark" />
<echo file="${ROYALE_HOME}/frameworks/themes/Spark/spark.css">/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
/* generated by build script */
</echo>
I can't move forward with the compilation of my project with Droyalelib.
Thx.
Hiedra.
-----Mensaje original-----
De: Carlos Rovira <ca...@apache.org>
Enviado el: domingo, 17 de enero de 2021 12:06
Para: Apache Royale Development <de...@royale.apache.org>
Asunto: Re: Configuring source maps on Royale with new compiler options
Thanks Josh!
I'll take a look in the next few days. I'm these days with some complications but hopefully will return soon :) Thanks for letting me know!
Carlos
El sáb, 16 ene 2021 a las 3:00, Maria Jose Esteve (<mj...@iest.com>)
escribió:
> Have you noticed that it recognizes the "... / royale" directory as a
> file?
>
>
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/Jewel/src/main/royale"
>
> (I'm looking at this now)
> Hiedra
>
> -----Mensaje original-----
> De: Josh Tynjala <jo...@bowlerhat.dev> Enviado el: viernes, 15
> de enero de 2021 20:04
> Para: Apache Royale Development <de...@royale.apache.org>
> Asunto: Re: Configuring source maps on Royale with new compiler
> options
>
> Your changes are now working for me!
>
> I just pulled your latest changes in royale-asjs, running the
> following command to build the framework SWCs:
>
> mvn clean install -DskipTests
>
> Then, I ran a clean build of TDJ, with the following command:
>
> mvn clean install
> -Droyalelib=c:/Users/josht/Development/apache/royale-asjs/frameworks
>
> I am seeing the expected full sourceRoot in Button.js.map that
> includes the content of -Droyalelib.
>
>
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/Jewel/src/main/royale"
>
> I added a breakpoint in the text setter in Button.as on this line:
>
> spanLabel.textContent = value;
>
> And the debugger stopped correctly when I launched in Chrome.
>
> Your sourceRoot in Button.js.map is wrong. Make sure that you clean
> the project when you build, so that you don't have a cached
> Button.js.map. And don't forget the -Droyalelib option.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Fri, Jan 15, 2021 at 6:40 AM Carlos Rovira
> <ca...@apache.org>
> wrote:
>
> > Oops! You're right Josh, I commited a fix for that.
> >
> > Anyway, I tried within Jewel adding hardcoded code (as you showed)
> > and it didn't worked. In both cases:
> >
> > For Button.js, I get this:
> >
> > //# sourceMappingURL=./Button.js.map
> >
> > and Button.js.map has:
> >
> > "sourceRoot":"/frameworks/projects/Jewel/src/main/royale/",
> >
> > If you have the same code, maybe the problem is not maven build but
> > something related to VSCode.
> >
> > Thanks
> >
> > Carlos
> >
> >
> > El jue, 14 ene 2021 a las 18:55, Josh Tynjala
> > (<joshtynjala@bowlerhat.dev
> > >)
> > escribió:
> >
> > > This is what I see in the Button.js.map file:
> > >
> > >
> > >
> >
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/{$project.artifactId}/src/main/royale"
> > >
> > > The {$project.artifactId} token seems incorrect. Did you mean
> > > ${project.artifactId} instead?
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >
> > >
> > > On Thu, Jan 14, 2021 at 1:59 AM Carlos Rovira
> > > <ca...@apache.org>
> > > wrote:
> > >
> > > > Hi Josh,
> > > >
> > > > just tried your recommendations, but seems not to work.
> > > >
> > > > I added to Jewel:
> > > >
> > > > <additionalCompilerOptions>
> > > > -source-map=true;
> > > > -source-map-source-root=/frameworks/projects/Jewel/src/main/roya
> > > > le
> > > > /
> > > > </additionalCompilerOptions>
> > > >
> > > > and in TDJ just:
> > > >
> > > > -source-map=true;
> > > >
> > > > I added in my VSCode tasks the argument to compile TDJ
> > > >
> > > > "args": [
> > > > "clean",
> > > > "install",
> > > > "-P option-with-swf",
> > > >
> > > >
> > >
> >
> "-Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks"
> > > > ,
> > > > "-DskipTests"
> > > > ]
> > > >
> > > > setting a break point in jewel button is marked with an empty
> > > > circle in VSCode and doesn't stop, but TDJ works ok.
> > > >
> > > > I think I followed your indications right, and also committed
> > > > (but the commit is more general since I added the config to
> > > > frameworks/projects
> > to
> > > > affect to all SWC libs at once). Maybe there's some detail that
> > > > is preventing it to work.
> > > >
> > > > Thanks for your time and taking a look
> > > >
> > > > Carlos
> > > >
> > > >
> > > > El jue, 14 ene 2021 a las 9:25, Maria Jose Esteve
> > > > (<mjesteve@iest.com
> > >)
> > > > escribió:
> > > >
> > > > > Hi, It does not work for me.
> > > > > I have modified Jewel's pom.xml, main pom "/ projects /" and
> > > > > have
> > > > modified
> > > > > my maven build to include the Droyalelib option with the path
> > > > > to my / frameworks directory, the result error.
> > > > > Do I have to modify something else ?, the sdk does not compile
> > > > >
> > > > > Thx
> > > > > Hiedra
> > > > >
> > > > > -----Mensaje original-----
> > > > > De: Josh Tynjala <jo...@bowlerhat.dev> Enviado el:
> > > > > jueves,
> > > > > 14 de enero de 2021 0:40
> > > > > Para: Apache Royale Development <de...@royale.apache.org>
> > > > > Asunto: Re: Configuring source maps on Royale with new
> > > > > compiler
> > options
> > > > >
> > > > > Okay, I've determined a couple of tweaks to the process that
> > > > > made
> > > things
> > > > > work on my machine to allow source map debugging with Maven.
> > > > >
> > > > > The source-map-source-root for Jewel and other SDK libs must
> > > > > include src/main/royale/ at the end.
> > > > >
> > > > > <additionalCompilerOptions>
> > > > > -source-map=true;
> > > > >
> > > > > -source-map-source-root=/frameworks/projects/Jewel/src/main/ro
> > > > > ya
> > > > > le/
> > > > > </additionalCompilerOptions>
> > > > >
> > > > > For TDJ and other apps, you only need the source-map option.
> > > > > Do NOT
> > add
> > > > > source-map-source-root and do NOT add +royalelib.
> > > > >
> > > > > <additionalCompilerOptions>
> > > > > -source-map=true;
> > > > > </additionalCompilerOptions>
> > > > >
> > > > > Instead add an extra -Droyalelib option to your mvn command
> > > > > line. For
> > > > > example:
> > > > >
> > > > > mvn clean install
> > > > >
> > > > >
> > > >
> > >
> > -Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/
> > fr
> > ameworks
> > > > >
> > > > > --
> > > > > Josh Tynjala
> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >
> > > > >
> > > > > On Wed, Jan 13, 2021 at 2:57 PM Josh Tynjala <
> > > joshtynjala@bowlerhat.dev>
> > > > > wrote:
> > > > >
> > > > > > I just gave it a try myself, and it looks like the compiler
> > > > > > is
> > > failing
> > > > > > to recognize the +royalelib token when you try to put it
> > > > > > into
> > Maven's
> > > > > > additionalCompilerOptions. As I implied, it was certainly
> > > > > > possible that this might or might not work.
> > > > > >
> > > > > > I'll let you know if I have another suggestion.
> > > > > >
> > > > > > --
> > > > > > Josh Tynjala
> > > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >
> > > > > >
> > > > > > On Sat, Jan 9, 2021 at 1:01 AM Carlos Rovira <
> > > carlosrovira@apache.org>
> > > > > > wrote:
> > > > > >
> > > > > >> Hi Josh,
> > > > > >>
> > > > > >> Thanks for taking a look, I'll check maven distribution to
> > > > > >> see how
> > > to
> > > > > >> add the missing folder. It's strange since I think I was
> > > > > >> debugging against the Maven SDK until now.
> > > > > >>
> > > > > >> I made now a quick try with ANT SDK, after my daily build
> > completed,
> > > > > >> with your latest changes from yesterday, and compiled TDJ with:
> > > > > >>
> > > > > >>
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/frame
> > > +wo
> > > +r
> > > > > >> +ks
> > > > > >>
> > > > > >> to point to ANT instead to MAVEN, and the result was the
> > > > > >> same for royale ANT sdk: TDJ stops at breakpoints in VSCode
> > > > > >> but
> Jewel not.
> > I
> > > > > >> thought that ANT SDK should work right, isn't?
> > > > > >>
> > > > > >> Thanks
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> El vie, 8 ene 2021 a las 22:57, Greg Dove
> > > > > >> (<gr...@gmail.com>)
> > > > > >> escribió:
> > > > > >>
> > > > > >> > Thanks Josh, I guess there was still something cached at
> > > > > >> > a different
> > > > > >> level
> > > > > >> > in our local m2 that meant it was still working for
> > > > > >> > Hiedra and
> > me.
> > > > > >> > Nice sleuthing!
> > > > > >> >
> > > > > >> >
> > > > > >> > On Sat, Jan 9, 2021 at 10:43 AM Josh Tynjala
> > > > > >> > <joshtynjala@bowlerhat.dev
> > > > > >> >
> > > > > >> > wrote:
> > > > > >> >
> > > > > >> > > Following up, since I can now successfully build the
> > > > > >> > > Maven
> > > > > >> distribution
> > > > > >> > > again.
> > > > > >> > >
> > > > > >> > > I've confirmed that frameworks/projects is missing from
> > > > > >> > > a
> > Maven
> > > > > >> > > distribution, like I had observed in the past. With
> > > > > >> > > that in
> > > mind,
> > > > > >> > > a
> > > > > >> Maven
> > > > > >> > > distribution cannot currently be referenced with
> > > > > >> > > +royalelib
> > for
> > > > > >> > > sourcemap-enabled debugging with the original .as files.
> > > > > >> > >
> > > > > >> > > --
> > > > > >> > > Josh Tynjala
> > > > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <
> > > > > >> joshtynjala@bowlerhat.dev>
> > > > > >> > > wrote:
> > > > > >> > >
> > > > > >> > > > Carlos, are you using a Maven distribution as your
> > > > > >> > > > IDE-compatible
> > > > > >> SDK?
> > > > > >> > > The
> > > > > >> > > > last time that I built one, I seem to recall that the
> > > > > >> > > > distribution
> > > > > >> did
> > > > > >> > > not
> > > > > >> > > > include the original .as source files. I don't know
> > > > > >> > > > if
> > that's
> > > > > >> > > > still
> > > > > >> the
> > > > > >> > > > case or not. I tried building a Maven distribution
> > > > > >> > > > today to check,
> > > > > >> but
> > > > > >> > > the
> > > > > >> > > > build fails due to the current compiler being on
> > > > > >> > > > version
> > 0.9.9
> > > > > >> > > > and
> > > > > >> the
> > > > > >> > > > framework still expecting 0.9.8.
> > > > > >> > > >
> > > > > >> > > > --
> > > > > >> > > > Josh Tynjala
> > > > > >> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
> > > > > >> carlosrovira@apache.org
> > > > > >> > >
> > > > > >> > > > wrote:
> > > > > >> > > >
> > > > > >> > > >> Hi Josh,
> > > > > >> > > >>
> > > > > >> > > >> thanks, I added "frameworks" in TDJ +royalelib but
> > > > > >> > > >> seems it doesn't
> > > > > >> > have
> > > > > >> > > >> effect, stil debug TDJ but not classes in Jewel.
> > > > > >> > > >> Don't see what it could be :?
> > > > > >> > > >>
> > > > > >> > > >> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > > > > >> > > joshtynjala@bowlerhat.dev
> > > > > >> > > >> >)
> > > > > >> > > >> escribió:
> > > > > >> > > >>
> > > > > >> > > >> > Looking over previous emails in this thread, it
> > > > > >> > > >> > looks
> > like
> > > > > >> > > >> > you
> > > > > >> > forgot
> > > > > >> > > to
> > > > > >> > > >> > add /frameworks at the end of the +royalelib path.
> > > > > >> > > >> >
> > > > > >> > > >> > You have:
> > > > > >> > > >> >
> > > > > >> > > >> >
> > > > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royal
> > > > > >> +e-
> > > > > >> +maven
> > > > > >> > > >> >
> > > > > >> > > >> > It should be:
> > > > > >> > > >> >
> > > > > >> > > >> >
> > > > > >> > > >> >
> > > > > >> > > >>
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > +/f
> > > +r
> > > > > >> +ameworks
> > > > > >> > > >> >
> > > > > >> > > >> > --
> > > > > >> > > >> > Josh Tynjala
> > > > > >> > > >> > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >> > > >> >
> > > > > >> > > >> >
> > > > > >> > > >> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > > > > >> > > carlosrovira@apache.org>
> > > > > >> > > >> > wrote:
> > > > > >> > > >> >
> > > > > >> > > >> > > Hi,
> > > > > >> > > >> > >
> > > > > >> > > >> > > just fyi I added:
> > > > > >> > > >> > >
> > > > > >> > > >> > >
> > > > > >> > > >> >
> > > > > >>
> > -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > > > >> > > >> > >
> > > > > >> > > >> > > at frameworks/projects/pom.xml so now we have
> > > > > >> > > >> > > setup
> > > source
> > > > > >> > > >> > > maps in all libraries
> > > > > >> > > >> > >
> > > > > >> > > >> > > but while that seems ok, I'm not getting lib
> > > > > >> > > >> > > debugging
> > as
> > > > > >> > > >> > > I
> > > > > >> stated
> > > > > >> > > in
> > > > > >> > > >> my
> > > > > >> > > >> > > last email.
> > > > > >> > > >> > >
> > > > > >> > > >> > >
> > > > > >> > > >> > >
> > > > > >> > > >> > >
> > > > > >> > > >> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > > > > >> > > >> carlosrovira@apache.org
> > > > > >> > > >> > >)
> > > > > >> > > >> > > escribió:
> > > > > >> > > >> > >
> > > > > >> > > >> > > > Ok Josh,
> > > > > >> > > >> > > >
> > > > > >> > > >> > > > so all seems ok, but debug is not working in
> > > > > >> > > >> > > > classes from
> > > > > >> Jewel
> > > > > >> > > lib.
> > > > > >> > > >> > > > I see the jewel.swc has the js.map files in
> > > > > >> > > >> > > > the same
> > > way
> > > > > >> > > >> > > > I
> > > > > >> > > related,
> > > > > >> > > >> so
> > > > > >> > > >> > > > that's ok as you stated.
> > > > > >> > > >> > > > I'm setting breakpoints in the same VSCode
> > > > > >> > > >> > > > window for Jewel
> > > > > >> and
> > > > > >> > > TDJ
> > > > > >> > > >> > > files,
> > > > > >> > > >> > > > but only TDJ files (in the root or subfolders)
> > > > > >> > > >> > > > are making
> > > > > >> > > execution
> > > > > >> > > >> > stop.
> > > > > >> > > >> > > > If I set up a breakpoint in let's say Jewel
> > Button.as,
> > > > > >> > > >> > > > that
> > > > > >> > > appears
> > > > > >> > > >> > empty
> > > > > >> > > >> > > > on execution and doesn't have effect, while
> > > > > >> > > >> > > > TDJ
> > appears
> > > > > >> > > >> > > > red
> > > > > >> and
> > > > > >> > > >> works
> > > > > >> > > >> > ok.
> > > > > >> > > >> > > >
> > > > > >> > > >> > > > Do you know what could be happening?
> > > > > >> > > >> > > >
> > > > > >> > > >> > > >
> > > > > >> > > >> > > >
> > > > > >> > > >> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala
> > > > > >> > > >> > > > (<
> > > > > >> > > >> > joshtynjala@bowlerhat.dev
> > > > > >> > > >> > > >)
> > > > > >> > > >> > > > escribió:
> > > > > >> > > >> > > >
> > > > > >> > > >> > > >> The path of the .js.map file is relative to
> > > > > >> > > >> > > >> the .js
> > > > file.
> > > > > >> > Since
> > > > > >> > > >> the
> > > > > >> > > >> > > >> .js.map file is supposed to be in the same
> > > > > >> > > >> > > >> folder as the .js
> > > > > >> > > file,
> > > > > >> > > >> > that
> > > > > >> > > >> > > >> looks correct to me.
> > > > > >> > > >> > > >>
> > > > > >> > > >> > > >> --
> > > > > >> > > >> > > >> Josh Tynjala
> > > > > >> > > >> > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >> > > >> > > >>
> > > > > >> > > >> > > >>
> > > > > >> > > >> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira
> > > > > >> > > >> > > >> <
> > > > > >> > > >> > carlosrovira@apache.org>
> > > > > >> > > >> > > >> wrote:
> > > > > >> > > >> > > >>
> > > > > >> > > >> > > >> > Hi Josh,
> > > > > >> > > >> > > >> >
> > > > > >> > > >> > > >> > I'm trying to debug jewel classes in TDJ
> > > > > >> > > >> > > >> > and for example
> > > > > >> > > >> > > >> AlertController.js
> > > > > >> > > >> > > >> > has at the end:
> > > > > >> > > >> > > >> >
> > > > > >> > > >> > > >> > //#
> > > > > >> > > >> > > >> > sourceMappingURL=./AlertController.js.map
> > > > > >> > > >> > > >> >
> > > > > >> > > >> > > >> > It's ok? I expect it to reference the
> > > > > >> > > >> > > >> > concrete
> > > > > subfolder:
> > > > > >> > > >> > > >> > org/apache/royale/jewel/beads/controllers
> > > > > >> > > >> > > >> >
> > > > > >> > > >> > > >> >
> > > > > >> > > >> > > >> >
> > > > > >> > > >> > > >> > El jue, 7 ene 2021 a las 18:23, Josh
> > > > > >> > > >> > > >> > Tynjala (<
> > > > > >> > > >> > > >> joshtynjala@bowlerhat.dev>)
> > > > > >> > > >> > > >> > escribió:
> > > > > >> > > >> > > >> >
> > > > > >> > > >> > > >> > > Yes, you're right that +royalelib should
> > > > > >> > > >> > > >> > > not be required
> > > > > >> > for
> > > > > >> > > >> > > framework
> > > > > >> > > >> > > >> > > libs. I wasn't paying close enough
> > > > > >> > > >> > > >> > > attention to
> > > see
> > > > > >> > > >> > > >> > > that
> > > > > >> > you
> > > > > >> > > >> had
> > > > > >> > > >> > > added
> > > > > >> > > >> > > >> > > +royalelib to both Jewel and TDJ.
> > > > > >> > > >> > > >> > >
> > > > > >> > > >> > > >> > > So, to summarize, you should use
> > > > > >> > > >> > > >> > > source-map-source-root
> > > > > >> > when
> > > > > >> > > >> > > building
> > > > > >> > > >> > > >> > > framework libs, and you should use
> > > > > >> > > >> > > >> > > +royalelib
> > when
> > > > > >> building
> > > > > >> > > >> > > >> > examples/apps.
> > > > > >> > > >> > > >> > > +royalelib is not necessary for framework
> > > > > >> > > >> > > >> > > +libs,
> > > and
> > > > > >> > > >> > > >> > source-map-source-root
> > > > > >> > > >> > > >> > > is (generally) not necessary for
> examples/apps.
> > > > > >> > > >> > > >> > >
> > > > > >> > > >> > > >> > > --
> > > > > >> > > >> > > >> > > Josh Tynjala Bowler Hat LLC
> > > > > >> > > >> > > >> > > <https://bowlerhat.dev>
> > > > > >> > > >> > > >> > >
> > > > > >> > > >> > > >> > >
> > > > > >> > > >> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos
> > > > > >> > > >> > > >> > > Rovira <
> > > > > >> > > >> > > carlosrovira@apache.org
> > > > > >> > > >> > > >> >
> > > > > >> > > >> > > >> > > wrote:
> > > > > >> > > >> > > >> > >
> > > > > >> > > >> > > >> > > > Hi Josh,
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > > I discover right now that I was
> > > > > >> > > >> > > >> > > > understanding wrong
> > > > > >> how
> > > > > >> > all
> > > > > >> > > >> this
> > > > > >> > > >> > > >> works.
> > > > > >> > > >> > > >> > > > I thought we needed +royalelib in
> > > > > >> > > >> > > >> > > > framework
> > > libs,
> > > > > >> > > >> > > >> > > > but
> > > > > >> > it's
> > > > > >> > > >> not
> > > > > >> > > >> > the
> > > > > >> > > >> > > >> > case.
> > > > > >> > > >> > > >> > > > Just need to add +royalelib to a final
> > project,
> > > > > >> > > >> > > >> > > > so
> > > > > >> that
> > > > > >> > can
> > > > > >> > > >> be
> > > > > >> > > >> > > left
> > > > > >> > > >> > > >> to
> > > > > >> > > >> > > >> > > the
> > > > > >> > > >> > > >> > > > user.
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > > That means that we can add to all libs this:
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >>
> > > > > >> > > >> -source-map-source-root=/frameworks/projects/XXX/tar
> > > > > >> > > >> ge
> > > > > >> > > >> t/
> > > > > >> > > >> > > >> > > > (Where XXX is the root libraryfolder)
> > > > > >> > > >> > > >> > > > -> For
> > > this
> > > > > >> I'll be
> > > > > >> > > >> adding
> > > > > >> > > >> > > in
> > > > > >> > > >> > > >> a
> > > > > >> > > >> > > >> > > > commit soon
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > > So, Chris, we don't need anything more
> > > > > >> > > >> > > >> > > > to implement,
> > > > > >> as I
> > > > > >> > > >> commit
> > > > > >> > > >> > > the
> > > > > >> > > >> > > >> > > > -source-map-source-root line in all
> > > > > >> > > >> > > >> > > > framework
> > > > poms.
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > > Another thing is if we should upload
> > > > > >> > > >> > > >> > > > all
> > source
> > > > > >> > > >> > > >> > > > maps
> > > > > >> > > (js.map
> > > > > >> > > >> > > files)
> > > > > >> > > >> > > >> of
> > > > > >> > > >> > > >> > > all
> > > > > >> > > >> > > >> > > > framework libs to some r.a.o url (for
> > > > > >> > > >> > > >> > > > example /debug),
> > > > > >> > and
> > > > > >> > > if
> > > > > >> > > >> > > people
> > > > > >> > > >> > > >> > can
> > > > > >> > > >> > > >> > > > point with +royalelib (i.e: +royalelib=
> > > > > >> > > >> > > >> http://royale.apache.org/debug
> > > > > >> > > >> > > >> > )
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > > What do you think?
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh
> > > > > >> > > >> > > >> > > > Tynjala
> > (<
> > > > > >> > > >> > > >> > joshtynjala@bowlerhat.dev
> > > > > >> > > >> > > >> > > >)
> > > > > >> > > >> > > >> > > > escribió:
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > > > While we can set
> > > > > >> > > >> > > >> > > > > source-map-source-root in
> > all
> > > > > >> > > >> > > >> > > > > of
> > > > > >> the
> > > > > >> > > >> library
> > > > > >> > > >> > > >> > > projects, I
> > > > > >> > > >> > > >> > > > > don't think that there's any way for
> > > > > >> > > >> > > >> > > > > us to specify
> > > > > >> > > >> +royalelib
> > > > > >> > > >> > > for
> > > > > >> > > >> > > >> TDJ
> > > > > >> > > >> > > >> > > and
> > > > > >> > > >> > > >> > > > > other examples in a general way.
> > > > > >> > > >> > > >> > > > > That's the
> > > one
> > > > > >> thing
> > > > > >> > > that
> > > > > >> > > >> > users
> > > > > >> > > >> > > >> will
> > > > > >> > > >> > > >> > > > > probably need to set up manually
> > > > > >> > > >> > > >> > > > > because the source
> > > > > >> > files
> > > > > >> > > >> come
> > > > > >> > > >> > > >> from
> > > > > >> > > >> > > >> > an
> > > > > >> > > >> > > >> > > > > IDE-compatible SDK.
> > > > > >> > > >> > > >> > > > >
> > > > > >> > > >> > > >> > > > > --
> > > > > >> > > >> > > >> > > > > Josh Tynjala Bowler Hat LLC
> > > > > >> > > >> > > >> > > > > <https://bowlerhat.dev>
> > > > > >> > > >> > > >> > > > >
> > > > > >> > > >> > > >> > > > >
> > > > > >> > > >> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos
> > Rovira <
> > > > > >> > > >> > > >> > carlosrovira@apache.org>
> > > > > >> > > >> > > >> > > > > wrote:
> > > > > >> > > >> > > >> > > > >
> > > > > >> > > >> > > >> > > > > > 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-mave
> > > > > >> > > +n
> > > > > >> > > >> > > >> > > > > >
> > > > > >> > > >> > > >> > > > > > 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
> > > > > >> > > >> > > >> > > > > > (<
> > > > > >> > > >> > > >> > > > carlosrovira@apache.org
> > > > > >> > > >> > > >> > > > > >)
> > > > > >> > > >> > > >> > > > > > escribió:
> > > > > >> > > >> > > >> > > > > >
> > > > > >> > > >> > > >> > > > > > > Hi Josh, Thanks! That worked and
> > > > > >> > > >> > > >> > > > > > > I
> > finally
> > > > > >> > > >> > > >> > > > > > > have
> > > > > >> > > >> debugging
> > > > > >> > > >> > > >> again!
> > > > > >> > > >> > > >> > :D
> > > > > >> > > >> > > >> > > > > > >
> > > > > >> > > >> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34,
> > > > > >> > > >> > > >> > > > > > > Josh Tynjala (<
> > > > > >> > > >> > > >> > > > > joshtynjala@bowlerhat.dev
> > > > > >> > > >> > > >> > > > > > >)
> > > > > >> > > >> > > >> > > > > > > escribió:
> > > > > >> > > >> > > >> > > > > > >
> > > > > >> > > >> > > >> > > > > > >> Hey Carlos,
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> > > > > > >> Try using source-map-source-root
> > > > > >> > > >> > > >> > > > > > >> with Jewel
> > > > > >> only,
> > > > > >> > > and
> > > > > >> > > >> > omit
> > > > > >> > > >> > > it
> > > > > >> > > >> > > >> > from
> > > > > >> > > >> > > >> > > > > TDJ.
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> > > > > > >> Jewel:
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> >
> > > > > >> > > >>
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > >> > > >> +aven
> > > > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> > > > > > >> TDJ:
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> >
> > > > > >> > > >>
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > >> > > >> +aven
> > > > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> > > > > > >> 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
> > > > > >> > > >> > > >> > > > > > >> <https://bowlerhat.dev>
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM
> > > > > >> > > >> > > >> > > > > > >> Carlos Rovira <
> > > > > >> > > >> > > >> > > > carlosrovira@apache.org
> > > > > >> > > >> > > >> > > > > >
> > > > > >> > > >> > > >> > > > > > >> 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:
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > > > > > >> > <additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > >
> > > > > >> > > >>
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > >> > > >> +aven
> > > > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > > > > > >> > and in TDJ:
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > >
> > > > > >> > > >>
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > >> > > >> +aven
> > > > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > > > > > >> > but no luck.
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > > > > > >> > So if +royalelib doesn't work
> > > > > >> > > >> > > >> > > > > > >> > for
> > Maven
> > > > > >> maybe it
> > > > > >> > > >> should
> > > > > >> > > >> > > be
> > > > > >> > > >> > > >> > > > something
> > > > > >> > > >> > > >> > > > > > >> like
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > "-source-map-source-root=$$$/frameworks/projects/J
> > > > > >> > > >> > ew
> > > > > >> > > >> > el/",
> > > > > >> > > >> > > >> > 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.dutz@c-ware.de>)
> > > > > >> > > >> > > >> > > > > > >> > escribió:
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > > > > > >> >> Hi all,
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > > >> >> Sure, happy to help, but what
> > exactly
> > > > > >> > > >> > > >> > > > > > >> >> do you
> > > > > >> > > need?
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > > >> >> Chris
> > > > > >> > > >> > > >> > > > > > >> >> -----------------------------
> > > > > >> > > >> > > >> > > > > > >> >> -
> > > > > >> > > >> > > >> > > > > > >> >> *Von:* Carlos Rovira <
> > > > > >> carlosrovira@apache.org>
> > > > > >> > > >> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3.
> > > > > >> > > >> > > >> > > > > > >> >> Januar
> > > > > >> > > >> > > >> > > > > > >> >> 2021
> > > > > >> > > >> > > >> > > > > > >> >> 23:23
> > > > > >> > > >> > > >> > > > > > >> >> *An:* Josh Tynjala <
> > > > > >> joshtynjala@bowlerhat.dev
> > > > > >> > >;
> > > > > >> > > >> > > >> Christofer
> > > > > >> > > >> > > >> > > Dutz
> > > > > >> > > >> > > >> > > > <
> > > > > >> > > >> > > >> > > > > > >> >> christofer.dutz@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 (<
> > > > > >> > > >> > > >> > > > > > >> joshtynjala@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/framewo
> > > > > >> > > >> > > >> > > > > > >> >> +rks/
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > > >> >> 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 <
> > > > > >> > > >> > > >> > > > > > carlosrovira@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:
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > > >> >>
> > <additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >> >> -source-map=true;
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > >
> > > > > >> > > >> -source-map-source-root=/frameworks/projects/Jewel/t
> > > > > >> > > >> ar
> > > > > >> > > >> get/
> > > > > >> > > >> > > >> > > > > > >> >>
> > </additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > > >> >> And in TDJ this:
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > > >> >> -source-map=true;
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > >
> > > > > >> > > >> -source-map-source-root=/examples/jewel/TourDeJewel/
> > > > > >> > > >> ta
> > > > > >> > > >> rget
> > > > > >> > > >> > > >> > > > > > >> >>
> > </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
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > > > > > >> > -- 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
> > > > > >> > > >> > > >> > > > > >
> > > > > >> > > >> > > >> > > > >
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > > --
> > > > > >> > > >> > > >> > > > 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
> > > > > >> > > >> > > >
> > > > > >> > > >> > > >
> > > > > >> > > >> > >
> > > > > >> > > >> > > --
> > > > > >> > > >> > > 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
> > > > > >>
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > 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
Re: Configuring source maps on Royale with new compiler options
Posted by Carlos Rovira <ca...@apache.org>.
Thanks Josh!
I'll take a look in the next few days. I'm these days with some
complications but hopefully will return soon :)
Thanks for letting me know!
Carlos
El sáb, 16 ene 2021 a las 3:00, Maria Jose Esteve (<mj...@iest.com>)
escribió:
> Have you noticed that it recognizes the "... / royale" directory as a
> file?
>
>
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/Jewel/src/main/royale"
>
> (I'm looking at this now)
> Hiedra
>
> -----Mensaje original-----
> De: Josh Tynjala <jo...@bowlerhat.dev>
> Enviado el: viernes, 15 de enero de 2021 20:04
> Para: Apache Royale Development <de...@royale.apache.org>
> Asunto: Re: Configuring source maps on Royale with new compiler options
>
> Your changes are now working for me!
>
> I just pulled your latest changes in royale-asjs, running the following
> command to build the framework SWCs:
>
> mvn clean install -DskipTests
>
> Then, I ran a clean build of TDJ, with the following command:
>
> mvn clean install
> -Droyalelib=c:/Users/josht/Development/apache/royale-asjs/frameworks
>
> I am seeing the expected full sourceRoot in Button.js.map that includes
> the content of -Droyalelib.
>
>
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/Jewel/src/main/royale"
>
> I added a breakpoint in the text setter in Button.as on this line:
>
> spanLabel.textContent = value;
>
> And the debugger stopped correctly when I launched in Chrome.
>
> Your sourceRoot in Button.js.map is wrong. Make sure that you clean the
> project when you build, so that you don't have a cached Button.js.map. And
> don't forget the -Droyalelib option.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Fri, Jan 15, 2021 at 6:40 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
> > Oops! You're right Josh, I commited a fix for that.
> >
> > Anyway, I tried within Jewel adding hardcoded code (as you showed) and
> > it didn't worked. In both cases:
> >
> > For Button.js, I get this:
> >
> > //# sourceMappingURL=./Button.js.map
> >
> > and Button.js.map has:
> >
> > "sourceRoot":"/frameworks/projects/Jewel/src/main/royale/",
> >
> > If you have the same code, maybe the problem is not maven build but
> > something related to VSCode.
> >
> > Thanks
> >
> > Carlos
> >
> >
> > El jue, 14 ene 2021 a las 18:55, Josh Tynjala
> > (<joshtynjala@bowlerhat.dev
> > >)
> > escribió:
> >
> > > This is what I see in the Button.js.map file:
> > >
> > >
> > >
> >
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/{$project.artifactId}/src/main/royale"
> > >
> > > The {$project.artifactId} token seems incorrect. Did you mean
> > > ${project.artifactId} instead?
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >
> > >
> > > On Thu, Jan 14, 2021 at 1:59 AM Carlos Rovira
> > > <ca...@apache.org>
> > > wrote:
> > >
> > > > Hi Josh,
> > > >
> > > > just tried your recommendations, but seems not to work.
> > > >
> > > > I added to Jewel:
> > > >
> > > > <additionalCompilerOptions>
> > > > -source-map=true;
> > > > -source-map-source-root=/frameworks/projects/Jewel/src/main/royale
> > > > /
> > > > </additionalCompilerOptions>
> > > >
> > > > and in TDJ just:
> > > >
> > > > -source-map=true;
> > > >
> > > > I added in my VSCode tasks the argument to compile TDJ
> > > >
> > > > "args": [
> > > > "clean",
> > > > "install",
> > > > "-P option-with-swf",
> > > >
> > > >
> > >
> >
> "-Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks"
> > > > ,
> > > > "-DskipTests"
> > > > ]
> > > >
> > > > setting a break point in jewel button is marked with an empty
> > > > circle in VSCode and doesn't stop, but TDJ works ok.
> > > >
> > > > I think I followed your indications right, and also committed (but
> > > > the commit is more general since I added the config to
> > > > frameworks/projects
> > to
> > > > affect to all SWC libs at once). Maybe there's some detail that is
> > > > preventing it to work.
> > > >
> > > > Thanks for your time and taking a look
> > > >
> > > > Carlos
> > > >
> > > >
> > > > El jue, 14 ene 2021 a las 9:25, Maria Jose Esteve
> > > > (<mjesteve@iest.com
> > >)
> > > > escribió:
> > > >
> > > > > Hi, It does not work for me.
> > > > > I have modified Jewel's pom.xml, main pom "/ projects /" and
> > > > > have
> > > > modified
> > > > > my maven build to include the Droyalelib option with the path to
> > > > > my / frameworks directory, the result error.
> > > > > Do I have to modify something else ?, the sdk does not compile
> > > > >
> > > > > Thx
> > > > > Hiedra
> > > > >
> > > > > -----Mensaje original-----
> > > > > De: Josh Tynjala <jo...@bowlerhat.dev> Enviado el: jueves,
> > > > > 14 de enero de 2021 0:40
> > > > > Para: Apache Royale Development <de...@royale.apache.org>
> > > > > Asunto: Re: Configuring source maps on Royale with new compiler
> > options
> > > > >
> > > > > Okay, I've determined a couple of tweaks to the process that
> > > > > made
> > > things
> > > > > work on my machine to allow source map debugging with Maven.
> > > > >
> > > > > The source-map-source-root for Jewel and other SDK libs must
> > > > > include src/main/royale/ at the end.
> > > > >
> > > > > <additionalCompilerOptions>
> > > > > -source-map=true;
> > > > >
> > > > > -source-map-source-root=/frameworks/projects/Jewel/src/main/roya
> > > > > le/
> > > > > </additionalCompilerOptions>
> > > > >
> > > > > For TDJ and other apps, you only need the source-map option. Do
> > > > > NOT
> > add
> > > > > source-map-source-root and do NOT add +royalelib.
> > > > >
> > > > > <additionalCompilerOptions>
> > > > > -source-map=true;
> > > > > </additionalCompilerOptions>
> > > > >
> > > > > Instead add an extra -Droyalelib option to your mvn command
> > > > > line. For
> > > > > example:
> > > > >
> > > > > mvn clean install
> > > > >
> > > > >
> > > >
> > >
> > -Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/fr
> > ameworks
> > > > >
> > > > > --
> > > > > Josh Tynjala
> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >
> > > > >
> > > > > On Wed, Jan 13, 2021 at 2:57 PM Josh Tynjala <
> > > joshtynjala@bowlerhat.dev>
> > > > > wrote:
> > > > >
> > > > > > I just gave it a try myself, and it looks like the compiler is
> > > failing
> > > > > > to recognize the +royalelib token when you try to put it into
> > Maven's
> > > > > > additionalCompilerOptions. As I implied, it was certainly
> > > > > > possible that this might or might not work.
> > > > > >
> > > > > > I'll let you know if I have another suggestion.
> > > > > >
> > > > > > --
> > > > > > Josh Tynjala
> > > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >
> > > > > >
> > > > > > On Sat, Jan 9, 2021 at 1:01 AM Carlos Rovira <
> > > carlosrovira@apache.org>
> > > > > > wrote:
> > > > > >
> > > > > >> Hi Josh,
> > > > > >>
> > > > > >> Thanks for taking a look, I'll check maven distribution to
> > > > > >> see how
> > > to
> > > > > >> add the missing folder. It's strange since I think I was
> > > > > >> debugging against the Maven SDK until now.
> > > > > >>
> > > > > >> I made now a quick try with ANT SDK, after my daily build
> > completed,
> > > > > >> with your latest changes from yesterday, and compiled TDJ with:
> > > > > >>
> > > > > >>
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/framewo
> > > +r
> > > > > >> +ks
> > > > > >>
> > > > > >> to point to ANT instead to MAVEN, and the result was the same
> > > > > >> for royale ANT sdk: TDJ stops at breakpoints in VSCode but
> Jewel not.
> > I
> > > > > >> thought that ANT SDK should work right, isn't?
> > > > > >>
> > > > > >> Thanks
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> El vie, 8 ene 2021 a las 22:57, Greg Dove
> > > > > >> (<gr...@gmail.com>)
> > > > > >> escribió:
> > > > > >>
> > > > > >> > Thanks Josh, I guess there was still something cached at a
> > > > > >> > different
> > > > > >> level
> > > > > >> > in our local m2 that meant it was still working for Hiedra
> > > > > >> > and
> > me.
> > > > > >> > Nice sleuthing!
> > > > > >> >
> > > > > >> >
> > > > > >> > On Sat, Jan 9, 2021 at 10:43 AM Josh Tynjala
> > > > > >> > <joshtynjala@bowlerhat.dev
> > > > > >> >
> > > > > >> > wrote:
> > > > > >> >
> > > > > >> > > Following up, since I can now successfully build the
> > > > > >> > > Maven
> > > > > >> distribution
> > > > > >> > > again.
> > > > > >> > >
> > > > > >> > > I've confirmed that frameworks/projects is missing from a
> > Maven
> > > > > >> > > distribution, like I had observed in the past. With that
> > > > > >> > > in
> > > mind,
> > > > > >> > > a
> > > > > >> Maven
> > > > > >> > > distribution cannot currently be referenced with
> > > > > >> > > +royalelib
> > for
> > > > > >> > > sourcemap-enabled debugging with the original .as files.
> > > > > >> > >
> > > > > >> > > --
> > > > > >> > > Josh Tynjala
> > > > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <
> > > > > >> joshtynjala@bowlerhat.dev>
> > > > > >> > > wrote:
> > > > > >> > >
> > > > > >> > > > Carlos, are you using a Maven distribution as your
> > > > > >> > > > IDE-compatible
> > > > > >> SDK?
> > > > > >> > > The
> > > > > >> > > > last time that I built one, I seem to recall that the
> > > > > >> > > > distribution
> > > > > >> did
> > > > > >> > > not
> > > > > >> > > > include the original .as source files. I don't know if
> > that's
> > > > > >> > > > still
> > > > > >> the
> > > > > >> > > > case or not. I tried building a Maven distribution
> > > > > >> > > > today to check,
> > > > > >> but
> > > > > >> > > the
> > > > > >> > > > build fails due to the current compiler being on
> > > > > >> > > > version
> > 0.9.9
> > > > > >> > > > and
> > > > > >> the
> > > > > >> > > > framework still expecting 0.9.8.
> > > > > >> > > >
> > > > > >> > > > --
> > > > > >> > > > Josh Tynjala
> > > > > >> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
> > > > > >> carlosrovira@apache.org
> > > > > >> > >
> > > > > >> > > > wrote:
> > > > > >> > > >
> > > > > >> > > >> Hi Josh,
> > > > > >> > > >>
> > > > > >> > > >> thanks, I added "frameworks" in TDJ +royalelib but
> > > > > >> > > >> seems it doesn't
> > > > > >> > have
> > > > > >> > > >> effect, stil debug TDJ but not classes in Jewel.
> > > > > >> > > >> Don't see what it could be :?
> > > > > >> > > >>
> > > > > >> > > >> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > > > > >> > > joshtynjala@bowlerhat.dev
> > > > > >> > > >> >)
> > > > > >> > > >> escribió:
> > > > > >> > > >>
> > > > > >> > > >> > Looking over previous emails in this thread, it
> > > > > >> > > >> > looks
> > like
> > > > > >> > > >> > you
> > > > > >> > forgot
> > > > > >> > > to
> > > > > >> > > >> > add /frameworks at the end of the +royalelib path.
> > > > > >> > > >> >
> > > > > >> > > >> > You have:
> > > > > >> > > >> >
> > > > > >> > > >> >
> > > > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-
> > > > > >> +maven
> > > > > >> > > >> >
> > > > > >> > > >> > It should be:
> > > > > >> > > >> >
> > > > > >> > > >> >
> > > > > >> > > >> >
> > > > > >> > > >>
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/f
> > > +r
> > > > > >> +ameworks
> > > > > >> > > >> >
> > > > > >> > > >> > --
> > > > > >> > > >> > Josh Tynjala
> > > > > >> > > >> > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >> > > >> >
> > > > > >> > > >> >
> > > > > >> > > >> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > > > > >> > > carlosrovira@apache.org>
> > > > > >> > > >> > wrote:
> > > > > >> > > >> >
> > > > > >> > > >> > > Hi,
> > > > > >> > > >> > >
> > > > > >> > > >> > > just fyi I added:
> > > > > >> > > >> > >
> > > > > >> > > >> > >
> > > > > >> > > >> >
> > > > > >>
> > -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > > > >> > > >> > >
> > > > > >> > > >> > > at frameworks/projects/pom.xml so now we have
> > > > > >> > > >> > > setup
> > > source
> > > > > >> > > >> > > maps in all libraries
> > > > > >> > > >> > >
> > > > > >> > > >> > > but while that seems ok, I'm not getting lib
> > > > > >> > > >> > > debugging
> > as
> > > > > >> > > >> > > I
> > > > > >> stated
> > > > > >> > > in
> > > > > >> > > >> my
> > > > > >> > > >> > > last email.
> > > > > >> > > >> > >
> > > > > >> > > >> > >
> > > > > >> > > >> > >
> > > > > >> > > >> > >
> > > > > >> > > >> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > > > > >> > > >> carlosrovira@apache.org
> > > > > >> > > >> > >)
> > > > > >> > > >> > > escribió:
> > > > > >> > > >> > >
> > > > > >> > > >> > > > Ok Josh,
> > > > > >> > > >> > > >
> > > > > >> > > >> > > > so all seems ok, but debug is not working in
> > > > > >> > > >> > > > classes from
> > > > > >> Jewel
> > > > > >> > > lib.
> > > > > >> > > >> > > > I see the jewel.swc has the js.map files in the
> > > > > >> > > >> > > > same
> > > way
> > > > > >> > > >> > > > I
> > > > > >> > > related,
> > > > > >> > > >> so
> > > > > >> > > >> > > > that's ok as you stated.
> > > > > >> > > >> > > > I'm setting breakpoints in the same VSCode
> > > > > >> > > >> > > > window for Jewel
> > > > > >> and
> > > > > >> > > TDJ
> > > > > >> > > >> > > files,
> > > > > >> > > >> > > > but only TDJ files (in the root or subfolders)
> > > > > >> > > >> > > > are making
> > > > > >> > > execution
> > > > > >> > > >> > stop.
> > > > > >> > > >> > > > If I set up a breakpoint in let's say Jewel
> > Button.as,
> > > > > >> > > >> > > > that
> > > > > >> > > appears
> > > > > >> > > >> > empty
> > > > > >> > > >> > > > on execution and doesn't have effect, while TDJ
> > appears
> > > > > >> > > >> > > > red
> > > > > >> and
> > > > > >> > > >> works
> > > > > >> > > >> > ok.
> > > > > >> > > >> > > >
> > > > > >> > > >> > > > Do you know what could be happening?
> > > > > >> > > >> > > >
> > > > > >> > > >> > > >
> > > > > >> > > >> > > >
> > > > > >> > > >> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> > > > > >> > > >> > joshtynjala@bowlerhat.dev
> > > > > >> > > >> > > >)
> > > > > >> > > >> > > > escribió:
> > > > > >> > > >> > > >
> > > > > >> > > >> > > >> The path of the .js.map file is relative to
> > > > > >> > > >> > > >> the .js
> > > > file.
> > > > > >> > Since
> > > > > >> > > >> the
> > > > > >> > > >> > > >> .js.map file is supposed to be in the same
> > > > > >> > > >> > > >> folder as the .js
> > > > > >> > > file,
> > > > > >> > > >> > that
> > > > > >> > > >> > > >> looks correct to me.
> > > > > >> > > >> > > >>
> > > > > >> > > >> > > >> --
> > > > > >> > > >> > > >> Josh Tynjala
> > > > > >> > > >> > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >> > > >> > > >>
> > > > > >> > > >> > > >>
> > > > > >> > > >> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> > > > > >> > > >> > carlosrovira@apache.org>
> > > > > >> > > >> > > >> wrote:
> > > > > >> > > >> > > >>
> > > > > >> > > >> > > >> > Hi Josh,
> > > > > >> > > >> > > >> >
> > > > > >> > > >> > > >> > I'm trying to debug jewel classes in TDJ and
> > > > > >> > > >> > > >> > for example
> > > > > >> > > >> > > >> AlertController.js
> > > > > >> > > >> > > >> > has at the end:
> > > > > >> > > >> > > >> >
> > > > > >> > > >> > > >> > //# sourceMappingURL=./AlertController.js.map
> > > > > >> > > >> > > >> >
> > > > > >> > > >> > > >> > It's ok? I expect it to reference the
> > > > > >> > > >> > > >> > concrete
> > > > > subfolder:
> > > > > >> > > >> > > >> > org/apache/royale/jewel/beads/controllers
> > > > > >> > > >> > > >> >
> > > > > >> > > >> > > >> >
> > > > > >> > > >> > > >> >
> > > > > >> > > >> > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala
> > > > > >> > > >> > > >> > (<
> > > > > >> > > >> > > >> joshtynjala@bowlerhat.dev>)
> > > > > >> > > >> > > >> > escribió:
> > > > > >> > > >> > > >> >
> > > > > >> > > >> > > >> > > Yes, you're right that +royalelib should
> > > > > >> > > >> > > >> > > not be required
> > > > > >> > for
> > > > > >> > > >> > > framework
> > > > > >> > > >> > > >> > > libs. I wasn't paying close enough
> > > > > >> > > >> > > >> > > attention to
> > > see
> > > > > >> > > >> > > >> > > that
> > > > > >> > you
> > > > > >> > > >> had
> > > > > >> > > >> > > added
> > > > > >> > > >> > > >> > > +royalelib to both Jewel and TDJ.
> > > > > >> > > >> > > >> > >
> > > > > >> > > >> > > >> > > So, to summarize, you should use
> > > > > >> > > >> > > >> > > source-map-source-root
> > > > > >> > when
> > > > > >> > > >> > > building
> > > > > >> > > >> > > >> > > framework libs, and you should use
> > > > > >> > > >> > > >> > > +royalelib
> > when
> > > > > >> building
> > > > > >> > > >> > > >> > examples/apps.
> > > > > >> > > >> > > >> > > +royalelib is not necessary for framework
> > > > > >> > > >> > > >> > > +libs,
> > > and
> > > > > >> > > >> > > >> > source-map-source-root
> > > > > >> > > >> > > >> > > is (generally) not necessary for
> examples/apps.
> > > > > >> > > >> > > >> > >
> > > > > >> > > >> > > >> > > --
> > > > > >> > > >> > > >> > > Josh Tynjala Bowler Hat LLC
> > > > > >> > > >> > > >> > > <https://bowlerhat.dev>
> > > > > >> > > >> > > >> > >
> > > > > >> > > >> > > >> > >
> > > > > >> > > >> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos
> > > > > >> > > >> > > >> > > Rovira <
> > > > > >> > > >> > > carlosrovira@apache.org
> > > > > >> > > >> > > >> >
> > > > > >> > > >> > > >> > > wrote:
> > > > > >> > > >> > > >> > >
> > > > > >> > > >> > > >> > > > Hi Josh,
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > > I discover right now that I was
> > > > > >> > > >> > > >> > > > understanding wrong
> > > > > >> how
> > > > > >> > all
> > > > > >> > > >> this
> > > > > >> > > >> > > >> works.
> > > > > >> > > >> > > >> > > > I thought we needed +royalelib in
> > > > > >> > > >> > > >> > > > framework
> > > libs,
> > > > > >> > > >> > > >> > > > but
> > > > > >> > it's
> > > > > >> > > >> not
> > > > > >> > > >> > the
> > > > > >> > > >> > > >> > case.
> > > > > >> > > >> > > >> > > > Just need to add +royalelib to a final
> > project,
> > > > > >> > > >> > > >> > > > so
> > > > > >> that
> > > > > >> > can
> > > > > >> > > >> be
> > > > > >> > > >> > > left
> > > > > >> > > >> > > >> to
> > > > > >> > > >> > > >> > > the
> > > > > >> > > >> > > >> > > > user.
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > > That means that we can add to all libs this:
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >>
> > > > > >> > > >> -source-map-source-root=/frameworks/projects/XXX/targe
> > > > > >> > > >> t/
> > > > > >> > > >> > > >> > > > (Where XXX is the root libraryfolder) ->
> > > > > >> > > >> > > >> > > > For
> > > this
> > > > > >> I'll be
> > > > > >> > > >> adding
> > > > > >> > > >> > > in
> > > > > >> > > >> > > >> a
> > > > > >> > > >> > > >> > > > commit soon
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > > So, Chris, we don't need anything more to
> > > > > >> > > >> > > >> > > > implement,
> > > > > >> as I
> > > > > >> > > >> commit
> > > > > >> > > >> > > the
> > > > > >> > > >> > > >> > > > -source-map-source-root line in all
> > > > > >> > > >> > > >> > > > framework
> > > > poms.
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > > Another thing is if we should upload all
> > source
> > > > > >> > > >> > > >> > > > maps
> > > > > >> > > (js.map
> > > > > >> > > >> > > files)
> > > > > >> > > >> > > >> of
> > > > > >> > > >> > > >> > > all
> > > > > >> > > >> > > >> > > > framework libs to some r.a.o url (for
> > > > > >> > > >> > > >> > > > example /debug),
> > > > > >> > and
> > > > > >> > > if
> > > > > >> > > >> > > people
> > > > > >> > > >> > > >> > can
> > > > > >> > > >> > > >> > > > point with +royalelib (i.e: +royalelib=
> > > > > >> > > >> > > >> http://royale.apache.org/debug
> > > > > >> > > >> > > >> > )
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > > What do you think?
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh
> > > > > >> > > >> > > >> > > > Tynjala
> > (<
> > > > > >> > > >> > > >> > joshtynjala@bowlerhat.dev
> > > > > >> > > >> > > >> > > >)
> > > > > >> > > >> > > >> > > > escribió:
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > > > While we can set source-map-source-root
> > > > > >> > > >> > > >> > > > > in
> > all
> > > > > >> > > >> > > >> > > > > of
> > > > > >> the
> > > > > >> > > >> library
> > > > > >> > > >> > > >> > > projects, I
> > > > > >> > > >> > > >> > > > > don't think that there's any way for us
> > > > > >> > > >> > > >> > > > > to specify
> > > > > >> > > >> +royalelib
> > > > > >> > > >> > > for
> > > > > >> > > >> > > >> TDJ
> > > > > >> > > >> > > >> > > and
> > > > > >> > > >> > > >> > > > > other examples in a general way. That's
> > > > > >> > > >> > > >> > > > > the
> > > one
> > > > > >> thing
> > > > > >> > > that
> > > > > >> > > >> > users
> > > > > >> > > >> > > >> will
> > > > > >> > > >> > > >> > > > > probably need to set up manually
> > > > > >> > > >> > > >> > > > > because the source
> > > > > >> > files
> > > > > >> > > >> come
> > > > > >> > > >> > > >> from
> > > > > >> > > >> > > >> > an
> > > > > >> > > >> > > >> > > > > IDE-compatible SDK.
> > > > > >> > > >> > > >> > > > >
> > > > > >> > > >> > > >> > > > > --
> > > > > >> > > >> > > >> > > > > Josh Tynjala Bowler Hat LLC
> > > > > >> > > >> > > >> > > > > <https://bowlerhat.dev>
> > > > > >> > > >> > > >> > > > >
> > > > > >> > > >> > > >> > > > >
> > > > > >> > > >> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos
> > Rovira <
> > > > > >> > > >> > > >> > carlosrovira@apache.org>
> > > > > >> > > >> > > >> > > > > wrote:
> > > > > >> > > >> > > >> > > > >
> > > > > >> > > >> > > >> > > > > > 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-mave
> > > > > >> > > +n
> > > > > >> > > >> > > >> > > > > >
> > > > > >> > > >> > > >> > > > > > 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
> > > > > >> > > >> > > >> > > > > > (<
> > > > > >> > > >> > > >> > > > carlosrovira@apache.org
> > > > > >> > > >> > > >> > > > > >)
> > > > > >> > > >> > > >> > > > > > escribió:
> > > > > >> > > >> > > >> > > > > >
> > > > > >> > > >> > > >> > > > > > > Hi Josh, Thanks! That worked and I
> > finally
> > > > > >> > > >> > > >> > > > > > > have
> > > > > >> > > >> debugging
> > > > > >> > > >> > > >> again!
> > > > > >> > > >> > > >> > :D
> > > > > >> > > >> > > >> > > > > > >
> > > > > >> > > >> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34,
> > > > > >> > > >> > > >> > > > > > > Josh Tynjala (<
> > > > > >> > > >> > > >> > > > > joshtynjala@bowlerhat.dev
> > > > > >> > > >> > > >> > > > > > >)
> > > > > >> > > >> > > >> > > > > > > escribió:
> > > > > >> > > >> > > >> > > > > > >
> > > > > >> > > >> > > >> > > > > > >> Hey Carlos,
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> > > > > > >> Try using source-map-source-root
> > > > > >> > > >> > > >> > > > > > >> with Jewel
> > > > > >> only,
> > > > > >> > > and
> > > > > >> > > >> > omit
> > > > > >> > > >> > > it
> > > > > >> > > >> > > >> > from
> > > > > >> > > >> > > >> > > > > TDJ.
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> > > > > > >> Jewel:
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> >
> > > > > >> > > >>
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > >> > > >> +aven
> > > > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> > > > > > >> TDJ:
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> >
> > > > > >> > > >>
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > >> > > >> +aven
> > > > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> > > > > > >> 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
> > > > > >> > > >> > > >> > > > > > >> <https://bowlerhat.dev>
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> > > > > > >>
> > > > > >> > > >> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM
> > > > > >> > > >> > > >> > > > > > >> Carlos Rovira <
> > > > > >> > > >> > > >> > > > carlosrovira@apache.org
> > > > > >> > > >> > > >> > > > > >
> > > > > >> > > >> > > >> > > > > > >> 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:
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > > > > > >> > <additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > >
> > > > > >> > > >>
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > >> > > >> +aven
> > > > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > > > > > >> > and in TDJ:
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > >
> > > > > >> > > >>
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > > >> > > >> +aven
> > > > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > > > > > >> > but no luck.
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > > > > > >> > So if +royalelib doesn't work
> > > > > >> > > >> > > >> > > > > > >> > for
> > Maven
> > > > > >> maybe it
> > > > > >> > > >> should
> > > > > >> > > >> > > be
> > > > > >> > > >> > > >> > > > something
> > > > > >> > > >> > > >> > > > > > >> like
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > "-source-map-source-root=$$$/frameworks/projects/Jew
> > > > > >> > > >> > el/",
> > > > > >> > > >> > > >> > 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.dutz@c-ware.de>)
> > > > > >> > > >> > > >> > > > > > >> > escribió:
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > > > > > >> >> Hi all,
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > > >> >> Sure, happy to help, but what
> > exactly
> > > > > >> > > >> > > >> > > > > > >> >> do you
> > > > > >> > > need?
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > > >> >> Chris
> > > > > >> > > >> > > >> > > > > > >> >> ------------------------------
> > > > > >> > > >> > > >> > > > > > >> >> *Von:* Carlos Rovira <
> > > > > >> carlosrovira@apache.org>
> > > > > >> > > >> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar
> > > > > >> > > >> > > >> > > > > > >> >> 2021
> > > > > >> > > >> > > >> > > > > > >> >> 23:23
> > > > > >> > > >> > > >> > > > > > >> >> *An:* Josh Tynjala <
> > > > > >> joshtynjala@bowlerhat.dev
> > > > > >> > >;
> > > > > >> > > >> > > >> Christofer
> > > > > >> > > >> > > >> > > Dutz
> > > > > >> > > >> > > >> > > > <
> > > > > >> > > >> > > >> > > > > > >> >> christofer.dutz@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 (<
> > > > > >> > > >> > > >> > > > > > >> joshtynjala@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/framewo
> > > > > >> > > >> > > >> > > > > > >> >> +rks/
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > > >> >> 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 <
> > > > > >> > > >> > > >> > > > > > carlosrovira@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:
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > > >> >>
> > <additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >> >> -source-map=true;
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > >
> > > > > >> > > >> -source-map-source-root=/frameworks/projects/Jewel/tar
> > > > > >> > > >> get/
> > > > > >> > > >> > > >> > > > > > >> >>
> > </additionalCompilerOptions>
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > > >> >> And in TDJ this:
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > > >> >> -source-map=true;
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > >
> > > > > >> > > >> -source-map-source-root=/examples/jewel/TourDeJewel/ta
> > > > > >> > > >> rget
> > > > > >> > > >> > > >> > > > > > >> >>
> > </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
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > > >> >>
> > > > > >> > > >> > > >> > > > > > >> >
> > > > > >> > > >> > > >> > > > > > >> > -- 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
> > > > > >> > > >> > > >> > > > > >
> > > > > >> > > >> > > >> > > > >
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > >
> > > > > >> > > >> > > >> > > > --
> > > > > >> > > >> > > >> > > > 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
> > > > > >> > > >> > > >
> > > > > >> > > >> > > >
> > > > > >> > > >> > >
> > > > > >> > > >> > > --
> > > > > >> > > >> > > 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
> > > > > >>
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > 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
RE: Configuring source maps on Royale with new compiler options
Posted by Maria Jose Esteve <mj...@iest.com>.
Have you noticed that it recognizes the "... / royale" directory as a file?
"sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/Jewel/src/main/royale"
(I'm looking at this now)
Hiedra
-----Mensaje original-----
De: Josh Tynjala <jo...@bowlerhat.dev>
Enviado el: viernes, 15 de enero de 2021 20:04
Para: Apache Royale Development <de...@royale.apache.org>
Asunto: Re: Configuring source maps on Royale with new compiler options
Your changes are now working for me!
I just pulled your latest changes in royale-asjs, running the following command to build the framework SWCs:
mvn clean install -DskipTests
Then, I ran a clean build of TDJ, with the following command:
mvn clean install
-Droyalelib=c:/Users/josht/Development/apache/royale-asjs/frameworks
I am seeing the expected full sourceRoot in Button.js.map that includes the content of -Droyalelib.
"sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/Jewel/src/main/royale"
I added a breakpoint in the text setter in Button.as on this line:
spanLabel.textContent = value;
And the debugger stopped correctly when I launched in Chrome.
Your sourceRoot in Button.js.map is wrong. Make sure that you clean the project when you build, so that you don't have a cached Button.js.map. And don't forget the -Droyalelib option.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Fri, Jan 15, 2021 at 6:40 AM Carlos Rovira <ca...@apache.org>
wrote:
> Oops! You're right Josh, I commited a fix for that.
>
> Anyway, I tried within Jewel adding hardcoded code (as you showed) and
> it didn't worked. In both cases:
>
> For Button.js, I get this:
>
> //# sourceMappingURL=./Button.js.map
>
> and Button.js.map has:
>
> "sourceRoot":"/frameworks/projects/Jewel/src/main/royale/",
>
> If you have the same code, maybe the problem is not maven build but
> something related to VSCode.
>
> Thanks
>
> Carlos
>
>
> El jue, 14 ene 2021 a las 18:55, Josh Tynjala
> (<joshtynjala@bowlerhat.dev
> >)
> escribió:
>
> > This is what I see in the Button.js.map file:
> >
> >
> >
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/{$project.artifactId}/src/main/royale"
> >
> > The {$project.artifactId} token seems incorrect. Did you mean
> > ${project.artifactId} instead?
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Thu, Jan 14, 2021 at 1:59 AM Carlos Rovira
> > <ca...@apache.org>
> > wrote:
> >
> > > Hi Josh,
> > >
> > > just tried your recommendations, but seems not to work.
> > >
> > > I added to Jewel:
> > >
> > > <additionalCompilerOptions>
> > > -source-map=true;
> > > -source-map-source-root=/frameworks/projects/Jewel/src/main/royale
> > > /
> > > </additionalCompilerOptions>
> > >
> > > and in TDJ just:
> > >
> > > -source-map=true;
> > >
> > > I added in my VSCode tasks the argument to compile TDJ
> > >
> > > "args": [
> > > "clean",
> > > "install",
> > > "-P option-with-swf",
> > >
> > >
> >
> "-Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks"
> > > ,
> > > "-DskipTests"
> > > ]
> > >
> > > setting a break point in jewel button is marked with an empty
> > > circle in VSCode and doesn't stop, but TDJ works ok.
> > >
> > > I think I followed your indications right, and also committed (but
> > > the commit is more general since I added the config to
> > > frameworks/projects
> to
> > > affect to all SWC libs at once). Maybe there's some detail that is
> > > preventing it to work.
> > >
> > > Thanks for your time and taking a look
> > >
> > > Carlos
> > >
> > >
> > > El jue, 14 ene 2021 a las 9:25, Maria Jose Esteve
> > > (<mjesteve@iest.com
> >)
> > > escribió:
> > >
> > > > Hi, It does not work for me.
> > > > I have modified Jewel's pom.xml, main pom "/ projects /" and
> > > > have
> > > modified
> > > > my maven build to include the Droyalelib option with the path to
> > > > my / frameworks directory, the result error.
> > > > Do I have to modify something else ?, the sdk does not compile
> > > >
> > > > Thx
> > > > Hiedra
> > > >
> > > > -----Mensaje original-----
> > > > De: Josh Tynjala <jo...@bowlerhat.dev> Enviado el: jueves,
> > > > 14 de enero de 2021 0:40
> > > > Para: Apache Royale Development <de...@royale.apache.org>
> > > > Asunto: Re: Configuring source maps on Royale with new compiler
> options
> > > >
> > > > Okay, I've determined a couple of tweaks to the process that
> > > > made
> > things
> > > > work on my machine to allow source map debugging with Maven.
> > > >
> > > > The source-map-source-root for Jewel and other SDK libs must
> > > > include src/main/royale/ at the end.
> > > >
> > > > <additionalCompilerOptions>
> > > > -source-map=true;
> > > >
> > > > -source-map-source-root=/frameworks/projects/Jewel/src/main/roya
> > > > le/
> > > > </additionalCompilerOptions>
> > > >
> > > > For TDJ and other apps, you only need the source-map option. Do
> > > > NOT
> add
> > > > source-map-source-root and do NOT add +royalelib.
> > > >
> > > > <additionalCompilerOptions>
> > > > -source-map=true;
> > > > </additionalCompilerOptions>
> > > >
> > > > Instead add an extra -Droyalelib option to your mvn command
> > > > line. For
> > > > example:
> > > >
> > > > mvn clean install
> > > >
> > > >
> > >
> >
> -Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/fr
> ameworks
> > > >
> > > > --
> > > > Josh Tynjala
> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >
> > > >
> > > > On Wed, Jan 13, 2021 at 2:57 PM Josh Tynjala <
> > joshtynjala@bowlerhat.dev>
> > > > wrote:
> > > >
> > > > > I just gave it a try myself, and it looks like the compiler is
> > failing
> > > > > to recognize the +royalelib token when you try to put it into
> Maven's
> > > > > additionalCompilerOptions. As I implied, it was certainly
> > > > > possible that this might or might not work.
> > > > >
> > > > > I'll let you know if I have another suggestion.
> > > > >
> > > > > --
> > > > > Josh Tynjala
> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >
> > > > >
> > > > > On Sat, Jan 9, 2021 at 1:01 AM Carlos Rovira <
> > carlosrovira@apache.org>
> > > > > wrote:
> > > > >
> > > > >> Hi Josh,
> > > > >>
> > > > >> Thanks for taking a look, I'll check maven distribution to
> > > > >> see how
> > to
> > > > >> add the missing folder. It's strange since I think I was
> > > > >> debugging against the Maven SDK until now.
> > > > >>
> > > > >> I made now a quick try with ANT SDK, after my daily build
> completed,
> > > > >> with your latest changes from yesterday, and compiled TDJ with:
> > > > >>
> > > > >>
> > +royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/framewo
> > +r
> > > > >> +ks
> > > > >>
> > > > >> to point to ANT instead to MAVEN, and the result was the same
> > > > >> for royale ANT sdk: TDJ stops at breakpoints in VSCode but Jewel not.
> I
> > > > >> thought that ANT SDK should work right, isn't?
> > > > >>
> > > > >> Thanks
> > > > >>
> > > > >>
> > > > >>
> > > > >>
> > > > >> El vie, 8 ene 2021 a las 22:57, Greg Dove
> > > > >> (<gr...@gmail.com>)
> > > > >> escribió:
> > > > >>
> > > > >> > Thanks Josh, I guess there was still something cached at a
> > > > >> > different
> > > > >> level
> > > > >> > in our local m2 that meant it was still working for Hiedra
> > > > >> > and
> me.
> > > > >> > Nice sleuthing!
> > > > >> >
> > > > >> >
> > > > >> > On Sat, Jan 9, 2021 at 10:43 AM Josh Tynjala
> > > > >> > <joshtynjala@bowlerhat.dev
> > > > >> >
> > > > >> > wrote:
> > > > >> >
> > > > >> > > Following up, since I can now successfully build the
> > > > >> > > Maven
> > > > >> distribution
> > > > >> > > again.
> > > > >> > >
> > > > >> > > I've confirmed that frameworks/projects is missing from a
> Maven
> > > > >> > > distribution, like I had observed in the past. With that
> > > > >> > > in
> > mind,
> > > > >> > > a
> > > > >> Maven
> > > > >> > > distribution cannot currently be referenced with
> > > > >> > > +royalelib
> for
> > > > >> > > sourcemap-enabled debugging with the original .as files.
> > > > >> > >
> > > > >> > > --
> > > > >> > > Josh Tynjala
> > > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >> > >
> > > > >> > >
> > > > >> > > On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <
> > > > >> joshtynjala@bowlerhat.dev>
> > > > >> > > wrote:
> > > > >> > >
> > > > >> > > > Carlos, are you using a Maven distribution as your
> > > > >> > > > IDE-compatible
> > > > >> SDK?
> > > > >> > > The
> > > > >> > > > last time that I built one, I seem to recall that the
> > > > >> > > > distribution
> > > > >> did
> > > > >> > > not
> > > > >> > > > include the original .as source files. I don't know if
> that's
> > > > >> > > > still
> > > > >> the
> > > > >> > > > case or not. I tried building a Maven distribution
> > > > >> > > > today to check,
> > > > >> but
> > > > >> > > the
> > > > >> > > > build fails due to the current compiler being on
> > > > >> > > > version
> 0.9.9
> > > > >> > > > and
> > > > >> the
> > > > >> > > > framework still expecting 0.9.8.
> > > > >> > > >
> > > > >> > > > --
> > > > >> > > > Josh Tynjala
> > > > >> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
> > > > >> carlosrovira@apache.org
> > > > >> > >
> > > > >> > > > wrote:
> > > > >> > > >
> > > > >> > > >> Hi Josh,
> > > > >> > > >>
> > > > >> > > >> thanks, I added "frameworks" in TDJ +royalelib but
> > > > >> > > >> seems it doesn't
> > > > >> > have
> > > > >> > > >> effect, stil debug TDJ but not classes in Jewel.
> > > > >> > > >> Don't see what it could be :?
> > > > >> > > >>
> > > > >> > > >> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > > > >> > > joshtynjala@bowlerhat.dev
> > > > >> > > >> >)
> > > > >> > > >> escribió:
> > > > >> > > >>
> > > > >> > > >> > Looking over previous emails in this thread, it
> > > > >> > > >> > looks
> like
> > > > >> > > >> > you
> > > > >> > forgot
> > > > >> > > to
> > > > >> > > >> > add /frameworks at the end of the +royalelib path.
> > > > >> > > >> >
> > > > >> > > >> > You have:
> > > > >> > > >> >
> > > > >> > > >> >
> > > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-
> > > > >> +maven
> > > > >> > > >> >
> > > > >> > > >> > It should be:
> > > > >> > > >> >
> > > > >> > > >> >
> > > > >> > > >> >
> > > > >> > > >>
> > > > >> > >
> > > > >> >
> > > > >>
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/f
> > +r
> > > > >> +ameworks
> > > > >> > > >> >
> > > > >> > > >> > --
> > > > >> > > >> > Josh Tynjala
> > > > >> > > >> > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >> > > >> >
> > > > >> > > >> >
> > > > >> > > >> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > > > >> > > carlosrovira@apache.org>
> > > > >> > > >> > wrote:
> > > > >> > > >> >
> > > > >> > > >> > > Hi,
> > > > >> > > >> > >
> > > > >> > > >> > > just fyi I added:
> > > > >> > > >> > >
> > > > >> > > >> > >
> > > > >> > > >> >
> > > > >>
> -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > > >> > > >> > >
> > > > >> > > >> > > at frameworks/projects/pom.xml so now we have
> > > > >> > > >> > > setup
> > source
> > > > >> > > >> > > maps in all libraries
> > > > >> > > >> > >
> > > > >> > > >> > > but while that seems ok, I'm not getting lib
> > > > >> > > >> > > debugging
> as
> > > > >> > > >> > > I
> > > > >> stated
> > > > >> > > in
> > > > >> > > >> my
> > > > >> > > >> > > last email.
> > > > >> > > >> > >
> > > > >> > > >> > >
> > > > >> > > >> > >
> > > > >> > > >> > >
> > > > >> > > >> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > > > >> > > >> carlosrovira@apache.org
> > > > >> > > >> > >)
> > > > >> > > >> > > escribió:
> > > > >> > > >> > >
> > > > >> > > >> > > > Ok Josh,
> > > > >> > > >> > > >
> > > > >> > > >> > > > so all seems ok, but debug is not working in
> > > > >> > > >> > > > classes from
> > > > >> Jewel
> > > > >> > > lib.
> > > > >> > > >> > > > I see the jewel.swc has the js.map files in the
> > > > >> > > >> > > > same
> > way
> > > > >> > > >> > > > I
> > > > >> > > related,
> > > > >> > > >> so
> > > > >> > > >> > > > that's ok as you stated.
> > > > >> > > >> > > > I'm setting breakpoints in the same VSCode
> > > > >> > > >> > > > window for Jewel
> > > > >> and
> > > > >> > > TDJ
> > > > >> > > >> > > files,
> > > > >> > > >> > > > but only TDJ files (in the root or subfolders)
> > > > >> > > >> > > > are making
> > > > >> > > execution
> > > > >> > > >> > stop.
> > > > >> > > >> > > > If I set up a breakpoint in let's say Jewel
> Button.as,
> > > > >> > > >> > > > that
> > > > >> > > appears
> > > > >> > > >> > empty
> > > > >> > > >> > > > on execution and doesn't have effect, while TDJ
> appears
> > > > >> > > >> > > > red
> > > > >> and
> > > > >> > > >> works
> > > > >> > > >> > ok.
> > > > >> > > >> > > >
> > > > >> > > >> > > > Do you know what could be happening?
> > > > >> > > >> > > >
> > > > >> > > >> > > >
> > > > >> > > >> > > >
> > > > >> > > >> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> > > > >> > > >> > joshtynjala@bowlerhat.dev
> > > > >> > > >> > > >)
> > > > >> > > >> > > > escribió:
> > > > >> > > >> > > >
> > > > >> > > >> > > >> The path of the .js.map file is relative to
> > > > >> > > >> > > >> the .js
> > > file.
> > > > >> > Since
> > > > >> > > >> the
> > > > >> > > >> > > >> .js.map file is supposed to be in the same
> > > > >> > > >> > > >> folder as the .js
> > > > >> > > file,
> > > > >> > > >> > that
> > > > >> > > >> > > >> looks correct to me.
> > > > >> > > >> > > >>
> > > > >> > > >> > > >> --
> > > > >> > > >> > > >> Josh Tynjala
> > > > >> > > >> > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > >> > > >> > > >>
> > > > >> > > >> > > >>
> > > > >> > > >> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> > > > >> > > >> > carlosrovira@apache.org>
> > > > >> > > >> > > >> wrote:
> > > > >> > > >> > > >>
> > > > >> > > >> > > >> > Hi Josh,
> > > > >> > > >> > > >> >
> > > > >> > > >> > > >> > I'm trying to debug jewel classes in TDJ and
> > > > >> > > >> > > >> > for example
> > > > >> > > >> > > >> AlertController.js
> > > > >> > > >> > > >> > has at the end:
> > > > >> > > >> > > >> >
> > > > >> > > >> > > >> > //# sourceMappingURL=./AlertController.js.map
> > > > >> > > >> > > >> >
> > > > >> > > >> > > >> > It's ok? I expect it to reference the
> > > > >> > > >> > > >> > concrete
> > > > subfolder:
> > > > >> > > >> > > >> > org/apache/royale/jewel/beads/controllers
> > > > >> > > >> > > >> >
> > > > >> > > >> > > >> >
> > > > >> > > >> > > >> >
> > > > >> > > >> > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala
> > > > >> > > >> > > >> > (<
> > > > >> > > >> > > >> joshtynjala@bowlerhat.dev>)
> > > > >> > > >> > > >> > escribió:
> > > > >> > > >> > > >> >
> > > > >> > > >> > > >> > > Yes, you're right that +royalelib should
> > > > >> > > >> > > >> > > not be required
> > > > >> > for
> > > > >> > > >> > > framework
> > > > >> > > >> > > >> > > libs. I wasn't paying close enough
> > > > >> > > >> > > >> > > attention to
> > see
> > > > >> > > >> > > >> > > that
> > > > >> > you
> > > > >> > > >> had
> > > > >> > > >> > > added
> > > > >> > > >> > > >> > > +royalelib to both Jewel and TDJ.
> > > > >> > > >> > > >> > >
> > > > >> > > >> > > >> > > So, to summarize, you should use
> > > > >> > > >> > > >> > > source-map-source-root
> > > > >> > when
> > > > >> > > >> > > building
> > > > >> > > >> > > >> > > framework libs, and you should use
> > > > >> > > >> > > >> > > +royalelib
> when
> > > > >> building
> > > > >> > > >> > > >> > examples/apps.
> > > > >> > > >> > > >> > > +royalelib is not necessary for framework
> > > > >> > > >> > > >> > > +libs,
> > and
> > > > >> > > >> > > >> > source-map-source-root
> > > > >> > > >> > > >> > > is (generally) not necessary for examples/apps.
> > > > >> > > >> > > >> > >
> > > > >> > > >> > > >> > > --
> > > > >> > > >> > > >> > > Josh Tynjala Bowler Hat LLC
> > > > >> > > >> > > >> > > <https://bowlerhat.dev>
> > > > >> > > >> > > >> > >
> > > > >> > > >> > > >> > >
> > > > >> > > >> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos
> > > > >> > > >> > > >> > > Rovira <
> > > > >> > > >> > > carlosrovira@apache.org
> > > > >> > > >> > > >> >
> > > > >> > > >> > > >> > > wrote:
> > > > >> > > >> > > >> > >
> > > > >> > > >> > > >> > > > Hi Josh,
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > > I discover right now that I was
> > > > >> > > >> > > >> > > > understanding wrong
> > > > >> how
> > > > >> > all
> > > > >> > > >> this
> > > > >> > > >> > > >> works.
> > > > >> > > >> > > >> > > > I thought we needed +royalelib in
> > > > >> > > >> > > >> > > > framework
> > libs,
> > > > >> > > >> > > >> > > > but
> > > > >> > it's
> > > > >> > > >> not
> > > > >> > > >> > the
> > > > >> > > >> > > >> > case.
> > > > >> > > >> > > >> > > > Just need to add +royalelib to a final
> project,
> > > > >> > > >> > > >> > > > so
> > > > >> that
> > > > >> > can
> > > > >> > > >> be
> > > > >> > > >> > > left
> > > > >> > > >> > > >> to
> > > > >> > > >> > > >> > > the
> > > > >> > > >> > > >> > > > user.
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > > That means that we can add to all libs this:
> > > > >> > > >> > > >> > > >
> > > > >> > > >>
> > > > >> > > >> -source-map-source-root=/frameworks/projects/XXX/targe
> > > > >> > > >> t/
> > > > >> > > >> > > >> > > > (Where XXX is the root libraryfolder) ->
> > > > >> > > >> > > >> > > > For
> > this
> > > > >> I'll be
> > > > >> > > >> adding
> > > > >> > > >> > > in
> > > > >> > > >> > > >> a
> > > > >> > > >> > > >> > > > commit soon
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > > So, Chris, we don't need anything more to
> > > > >> > > >> > > >> > > > implement,
> > > > >> as I
> > > > >> > > >> commit
> > > > >> > > >> > > the
> > > > >> > > >> > > >> > > > -source-map-source-root line in all
> > > > >> > > >> > > >> > > > framework
> > > poms.
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > > Another thing is if we should upload all
> source
> > > > >> > > >> > > >> > > > maps
> > > > >> > > (js.map
> > > > >> > > >> > > files)
> > > > >> > > >> > > >> of
> > > > >> > > >> > > >> > > all
> > > > >> > > >> > > >> > > > framework libs to some r.a.o url (for
> > > > >> > > >> > > >> > > > example /debug),
> > > > >> > and
> > > > >> > > if
> > > > >> > > >> > > people
> > > > >> > > >> > > >> > can
> > > > >> > > >> > > >> > > > point with +royalelib (i.e: +royalelib=
> > > > >> > > >> > > >> http://royale.apache.org/debug
> > > > >> > > >> > > >> > )
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > > What do you think?
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh
> > > > >> > > >> > > >> > > > Tynjala
> (<
> > > > >> > > >> > > >> > joshtynjala@bowlerhat.dev
> > > > >> > > >> > > >> > > >)
> > > > >> > > >> > > >> > > > escribió:
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > > > While we can set source-map-source-root
> > > > >> > > >> > > >> > > > > in
> all
> > > > >> > > >> > > >> > > > > of
> > > > >> the
> > > > >> > > >> library
> > > > >> > > >> > > >> > > projects, I
> > > > >> > > >> > > >> > > > > don't think that there's any way for us
> > > > >> > > >> > > >> > > > > to specify
> > > > >> > > >> +royalelib
> > > > >> > > >> > > for
> > > > >> > > >> > > >> TDJ
> > > > >> > > >> > > >> > > and
> > > > >> > > >> > > >> > > > > other examples in a general way. That's
> > > > >> > > >> > > >> > > > > the
> > one
> > > > >> thing
> > > > >> > > that
> > > > >> > > >> > users
> > > > >> > > >> > > >> will
> > > > >> > > >> > > >> > > > > probably need to set up manually
> > > > >> > > >> > > >> > > > > because the source
> > > > >> > files
> > > > >> > > >> come
> > > > >> > > >> > > >> from
> > > > >> > > >> > > >> > an
> > > > >> > > >> > > >> > > > > IDE-compatible SDK.
> > > > >> > > >> > > >> > > > >
> > > > >> > > >> > > >> > > > > --
> > > > >> > > >> > > >> > > > > Josh Tynjala Bowler Hat LLC
> > > > >> > > >> > > >> > > > > <https://bowlerhat.dev>
> > > > >> > > >> > > >> > > > >
> > > > >> > > >> > > >> > > > >
> > > > >> > > >> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos
> Rovira <
> > > > >> > > >> > > >> > carlosrovira@apache.org>
> > > > >> > > >> > > >> > > > > wrote:
> > > > >> > > >> > > >> > > > >
> > > > >> > > >> > > >> > > > > > 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-mave
> > > > >> > > +n
> > > > >> > > >> > > >> > > > > >
> > > > >> > > >> > > >> > > > > > 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
> > > > >> > > >> > > >> > > > > > (<
> > > > >> > > >> > > >> > > > carlosrovira@apache.org
> > > > >> > > >> > > >> > > > > >)
> > > > >> > > >> > > >> > > > > > escribió:
> > > > >> > > >> > > >> > > > > >
> > > > >> > > >> > > >> > > > > > > Hi Josh, Thanks! That worked and I
> finally
> > > > >> > > >> > > >> > > > > > > have
> > > > >> > > >> debugging
> > > > >> > > >> > > >> again!
> > > > >> > > >> > > >> > :D
> > > > >> > > >> > > >> > > > > > >
> > > > >> > > >> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34,
> > > > >> > > >> > > >> > > > > > > Josh Tynjala (<
> > > > >> > > >> > > >> > > > > joshtynjala@bowlerhat.dev
> > > > >> > > >> > > >> > > > > > >)
> > > > >> > > >> > > >> > > > > > > escribió:
> > > > >> > > >> > > >> > > > > > >
> > > > >> > > >> > > >> > > > > > >> Hey Carlos,
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> > > > > > >> Try using source-map-source-root
> > > > >> > > >> > > >> > > > > > >> with Jewel
> > > > >> only,
> > > > >> > > and
> > > > >> > > >> > omit
> > > > >> > > >> > > it
> > > > >> > > >> > > >> > from
> > > > >> > > >> > > >> > > > > TDJ.
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> > > > > > >> Jewel:
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> >
> > > > >> > > >>
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > >> > > >> +aven
> > > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> > > > > > >> TDJ:
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> >
> > > > >> > > >>
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > >> > > >> +aven
> > > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> > > > > > >> 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
> > > > >> > > >> > > >> > > > > > >> <https://bowlerhat.dev>
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM
> > > > >> > > >> > > >> > > > > > >> Carlos Rovira <
> > > > >> > > >> > > >> > > > carlosrovira@apache.org
> > > > >> > > >> > > >> > > > > >
> > > > >> > > >> > > >> > > > > > >> 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:
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > > > > > >> > <additionalCompilerOptions>
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > >
> > > > >> > > >>
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > >> > > >> +aven
> > > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > -source-map-source-root=/frameworks/projects/Jewel/
> > > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > > > > > >> > and in TDJ:
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > >
> > > > >> > > >>
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > >> > > >> +aven
> > > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > > > > > >> > but no luck.
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > > > > > >> > So if +royalelib doesn't work
> > > > >> > > >> > > >> > > > > > >> > for
> Maven
> > > > >> maybe it
> > > > >> > > >> should
> > > > >> > > >> > > be
> > > > >> > > >> > > >> > > > something
> > > > >> > > >> > > >> > > > > > >> like
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > "-source-map-source-root=$$$/frameworks/projects/Jew
> > > > >> > > >> > el/",
> > > > >> > > >> > > >> > 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.dutz@c-ware.de>)
> > > > >> > > >> > > >> > > > > > >> > escribió:
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > > > > > >> >> Hi all,
> > > > >> > > >> > > >> > > > > > >> >>
> > > > >> > > >> > > >> > > > > > >> >> Sure, happy to help, but what
> exactly
> > > > >> > > >> > > >> > > > > > >> >> do you
> > > > >> > > need?
> > > > >> > > >> > > >> > > > > > >> >>
> > > > >> > > >> > > >> > > > > > >> >> Chris
> > > > >> > > >> > > >> > > > > > >> >> ------------------------------
> > > > >> > > >> > > >> > > > > > >> >> *Von:* Carlos Rovira <
> > > > >> carlosrovira@apache.org>
> > > > >> > > >> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar
> > > > >> > > >> > > >> > > > > > >> >> 2021
> > > > >> > > >> > > >> > > > > > >> >> 23:23
> > > > >> > > >> > > >> > > > > > >> >> *An:* Josh Tynjala <
> > > > >> joshtynjala@bowlerhat.dev
> > > > >> > >;
> > > > >> > > >> > > >> Christofer
> > > > >> > > >> > > >> > > Dutz
> > > > >> > > >> > > >> > > > <
> > > > >> > > >> > > >> > > > > > >> >> christofer.dutz@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 (<
> > > > >> > > >> > > >> > > > > > >> joshtynjala@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/framewo
> > > > >> > > >> > > >> > > > > > >> >> +rks/
> > > > >> > > >> > > >> > > > > > >> >>
> > > > >> > > >> > > >> > > > > > >> >> 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 <
> > > > >> > > >> > > >> > > > > > carlosrovira@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:
> > > > >> > > >> > > >> > > > > > >> >>
> > > > >> > > >> > > >> > > > > > >> >>
> <additionalCompilerOptions>
> > > > >> > > >> > > >> > > > > > >> >> -source-map=true;
> > > > >> > > >> > > >> > > > > > >> >>
> > > > >> > > >> > > >> > > > > >
> > > > >> > > >> -source-map-source-root=/frameworks/projects/Jewel/tar
> > > > >> > > >> get/
> > > > >> > > >> > > >> > > > > > >> >>
> </additionalCompilerOptions>
> > > > >> > > >> > > >> > > > > > >> >>
> > > > >> > > >> > > >> > > > > > >> >> And in TDJ this:
> > > > >> > > >> > > >> > > > > > >> >>
> > > > >> > > >> > > >> > > > > > >> >> -source-map=true;
> > > > >> > > >> > > >> > > > > > >> >>
> > > > >> > > >> > > >> > > > > >
> > > > >> > > >> -source-map-source-root=/examples/jewel/TourDeJewel/ta
> > > > >> > > >> rget
> > > > >> > > >> > > >> > > > > > >> >>
> </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
> > > > >> > > >> > > >> > > > > > >> >>
> > > > >> > > >> > > >> > > > > > >> >>
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > > > > > >> > -- 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
> > > > >> > > >> > > >> > > > > >
> > > > >> > > >> > > >> > > > >
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > > --
> > > > >> > > >> > > >> > > > 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
> > > > >> > > >> > > >
> > > > >> > > >> > > >
> > > > >> > > >> > >
> > > > >> > > >> > > --
> > > > >> > > >> > > 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
> > > > >>
> > > > >
> > > >
> > >
> > >
> > > --
> > > 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
>
Re: Configuring source maps on Royale with new compiler options
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
Your changes are now working for me!
I just pulled your latest changes in royale-asjs, running the following
command to build the framework SWCs:
mvn clean install -DskipTests
Then, I ran a clean build of TDJ, with the following command:
mvn clean install
-Droyalelib=c:/Users/josht/Development/apache/royale-asjs/frameworks
I am seeing the expected full sourceRoot in Button.js.map that includes the
content of -Droyalelib.
"sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/Jewel/src/main/royale"
I added a breakpoint in the text setter in Button.as on this line:
spanLabel.textContent = value;
And the debugger stopped correctly when I launched in Chrome.
Your sourceRoot in Button.js.map is wrong. Make sure that you clean the
project when you build, so that you don't have a cached Button.js.map. And
don't forget the -Droyalelib option.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Fri, Jan 15, 2021 at 6:40 AM Carlos Rovira <ca...@apache.org>
wrote:
> Oops! You're right Josh, I commited a fix for that.
>
> Anyway, I tried within Jewel adding hardcoded code (as you showed) and it
> didn't worked. In both cases:
>
> For Button.js, I get this:
>
> //# sourceMappingURL=./Button.js.map
>
> and Button.js.map has:
>
> "sourceRoot":"/frameworks/projects/Jewel/src/main/royale/",
>
> If you have the same code, maybe the problem is not maven build but
> something related to VSCode.
>
> Thanks
>
> Carlos
>
>
> El jue, 14 ene 2021 a las 18:55, Josh Tynjala (<joshtynjala@bowlerhat.dev
> >)
> escribió:
>
> > This is what I see in the Button.js.map file:
> >
> >
> >
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/{$project.artifactId}/src/main/royale"
> >
> > The {$project.artifactId} token seems incorrect. Did you mean
> > ${project.artifactId} instead?
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Thu, Jan 14, 2021 at 1:59 AM Carlos Rovira <ca...@apache.org>
> > wrote:
> >
> > > Hi Josh,
> > >
> > > just tried your recommendations, but seems not to work.
> > >
> > > I added to Jewel:
> > >
> > > <additionalCompilerOptions>
> > > -source-map=true;
> > > -source-map-source-root=/frameworks/projects/Jewel/src/main/royale/
> > > </additionalCompilerOptions>
> > >
> > > and in TDJ just:
> > >
> > > -source-map=true;
> > >
> > > I added in my VSCode tasks the argument to compile TDJ
> > >
> > > "args": [
> > > "clean",
> > > "install",
> > > "-P option-with-swf",
> > >
> > >
> >
> "-Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks"
> > > ,
> > > "-DskipTests"
> > > ]
> > >
> > > setting a break point in jewel button is marked with an empty circle in
> > > VSCode and doesn't stop, but TDJ works ok.
> > >
> > > I think I followed your indications right, and also committed (but the
> > > commit is more general since I added the config to frameworks/projects
> to
> > > affect to all SWC libs at once). Maybe there's some detail that
> > > is preventing it to work.
> > >
> > > Thanks for your time and taking a look
> > >
> > > Carlos
> > >
> > >
> > > El jue, 14 ene 2021 a las 9:25, Maria Jose Esteve (<mjesteve@iest.com
> >)
> > > escribió:
> > >
> > > > Hi, It does not work for me.
> > > > I have modified Jewel's pom.xml, main pom "/ projects /" and have
> > > modified
> > > > my maven build to include the Droyalelib option with the path to my /
> > > > frameworks directory, the result error.
> > > > Do I have to modify something else ?, the sdk does not compile
> > > >
> > > > Thx
> > > > Hiedra
> > > >
> > > > -----Mensaje original-----
> > > > De: Josh Tynjala <jo...@bowlerhat.dev>
> > > > Enviado el: jueves, 14 de enero de 2021 0:40
> > > > Para: Apache Royale Development <de...@royale.apache.org>
> > > > Asunto: Re: Configuring source maps on Royale with new compiler
> options
> > > >
> > > > Okay, I've determined a couple of tweaks to the process that made
> > things
> > > > work on my machine to allow source map debugging with Maven.
> > > >
> > > > The source-map-source-root for Jewel and other SDK libs must include
> > > > src/main/royale/ at the end.
> > > >
> > > > <additionalCompilerOptions>
> > > > -source-map=true;
> > > > -source-map-source-root=/frameworks/projects/Jewel/src/main/royale/
> > > > </additionalCompilerOptions>
> > > >
> > > > For TDJ and other apps, you only need the source-map option. Do NOT
> add
> > > > source-map-source-root and do NOT add +royalelib.
> > > >
> > > > <additionalCompilerOptions>
> > > > -source-map=true;
> > > > </additionalCompilerOptions>
> > > >
> > > > Instead add an extra -Droyalelib option to your mvn command line. For
> > > > example:
> > > >
> > > > mvn clean install
> > > >
> > > >
> > >
> >
> -Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
> > > >
> > > > --
> > > > Josh Tynjala
> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >
> > > >
> > > > On Wed, Jan 13, 2021 at 2:57 PM Josh Tynjala <
> > joshtynjala@bowlerhat.dev>
> > > > wrote:
> > > >
> > > > > I just gave it a try myself, and it looks like the compiler is
> > failing
> > > > > to recognize the +royalelib token when you try to put it into
> Maven's
> > > > > additionalCompilerOptions. As I implied, it was certainly possible
> > > > > that this might or might not work.
> > > > >
> > > > > I'll let you know if I have another suggestion.
> > > > >
> > > > > --
> > > > > Josh Tynjala
> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >
> > > > >
> > > > > On Sat, Jan 9, 2021 at 1:01 AM Carlos Rovira <
> > carlosrovira@apache.org>
> > > > > wrote:
> > > > >
> > > > >> Hi Josh,
> > > > >>
> > > > >> Thanks for taking a look, I'll check maven distribution to see how
> > to
> > > > >> add the missing folder. It's strange since I think I was debugging
> > > > >> against the Maven SDK until now.
> > > > >>
> > > > >> I made now a quick try with ANT SDK, after my daily build
> completed,
> > > > >> with your latest changes from yesterday, and compiled TDJ with:
> > > > >>
> > > > >>
> > +royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/framewor
> > > > >> +ks
> > > > >>
> > > > >> to point to ANT instead to MAVEN, and the result was the same for
> > > > >> royale ANT sdk: TDJ stops at breakpoints in VSCode but Jewel not.
> I
> > > > >> thought that ANT SDK should work right, isn't?
> > > > >>
> > > > >> Thanks
> > > > >>
> > > > >>
> > > > >>
> > > > >>
> > > > >> El vie, 8 ene 2021 a las 22:57, Greg Dove (<gr...@gmail.com>)
> > > > >> escribió:
> > > > >>
> > > > >> > Thanks Josh, I guess there was still something cached at a
> > > > >> > different
> > > > >> level
> > > > >> > in our local m2 that meant it was still working for Hiedra and
> me.
> > > > >> > Nice sleuthing!
> > > > >> >
> > > > >> >
> > > > >> > On Sat, Jan 9, 2021 at 10:43 AM Josh Tynjala
> > > > >> > <joshtynjala@bowlerhat.dev
> > > > >> >
> > > > >> > wrote:
> > > > >> >
> > > > >> > > Following up, since I can now successfully build the Maven
> > > > >> distribution
> > > > >> > > again.
> > > > >> > >
> > > > >> > > I've confirmed that frameworks/projects is missing from a
> Maven
> > > > >> > > distribution, like I had observed in the past. With that in
> > mind,
> > > > >> > > a
> > > > >> Maven
> > > > >> > > distribution cannot currently be referenced with +royalelib
> for
> > > > >> > > sourcemap-enabled debugging with the original .as files.
> > > > >> > >
> > > > >> > > --
> > > > >> > > Josh Tynjala
> > > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >> > >
> > > > >> > >
> > > > >> > > On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <
> > > > >> joshtynjala@bowlerhat.dev>
> > > > >> > > wrote:
> > > > >> > >
> > > > >> > > > Carlos, are you using a Maven distribution as your
> > > > >> > > > IDE-compatible
> > > > >> SDK?
> > > > >> > > The
> > > > >> > > > last time that I built one, I seem to recall that the
> > > > >> > > > distribution
> > > > >> did
> > > > >> > > not
> > > > >> > > > include the original .as source files. I don't know if
> that's
> > > > >> > > > still
> > > > >> the
> > > > >> > > > case or not. I tried building a Maven distribution today to
> > > > >> > > > check,
> > > > >> but
> > > > >> > > the
> > > > >> > > > build fails due to the current compiler being on version
> 0.9.9
> > > > >> > > > and
> > > > >> the
> > > > >> > > > framework still expecting 0.9.8.
> > > > >> > > >
> > > > >> > > > --
> > > > >> > > > Josh Tynjala
> > > > >> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
> > > > >> carlosrovira@apache.org
> > > > >> > >
> > > > >> > > > wrote:
> > > > >> > > >
> > > > >> > > >> Hi Josh,
> > > > >> > > >>
> > > > >> > > >> thanks, I added "frameworks" in TDJ +royalelib but seems it
> > > > >> > > >> doesn't
> > > > >> > have
> > > > >> > > >> effect, stil debug TDJ but not classes in Jewel.
> > > > >> > > >> Don't see what it could be :?
> > > > >> > > >>
> > > > >> > > >> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > > > >> > > joshtynjala@bowlerhat.dev
> > > > >> > > >> >)
> > > > >> > > >> escribió:
> > > > >> > > >>
> > > > >> > > >> > Looking over previous emails in this thread, it looks
> like
> > > > >> > > >> > you
> > > > >> > forgot
> > > > >> > > to
> > > > >> > > >> > add /frameworks at the end of the +royalelib path.
> > > > >> > > >> >
> > > > >> > > >> > You have:
> > > > >> > > >> >
> > > > >> > > >> >
> > > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > >> > > >> >
> > > > >> > > >> > It should be:
> > > > >> > > >> >
> > > > >> > > >> >
> > > > >> > > >> >
> > > > >> > > >>
> > > > >> > >
> > > > >> >
> > > > >>
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/fr
> > > > >> +ameworks
> > > > >> > > >> >
> > > > >> > > >> > --
> > > > >> > > >> > Josh Tynjala
> > > > >> > > >> > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >> > > >> >
> > > > >> > > >> >
> > > > >> > > >> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > > > >> > > carlosrovira@apache.org>
> > > > >> > > >> > wrote:
> > > > >> > > >> >
> > > > >> > > >> > > Hi,
> > > > >> > > >> > >
> > > > >> > > >> > > just fyi I added:
> > > > >> > > >> > >
> > > > >> > > >> > >
> > > > >> > > >> >
> > > > >>
> -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > > >> > > >> > >
> > > > >> > > >> > > at frameworks/projects/pom.xml so now we have setup
> > source
> > > > >> > > >> > > maps in all libraries
> > > > >> > > >> > >
> > > > >> > > >> > > but while that seems ok, I'm not getting lib debugging
> as
> > > > >> > > >> > > I
> > > > >> stated
> > > > >> > > in
> > > > >> > > >> my
> > > > >> > > >> > > last email.
> > > > >> > > >> > >
> > > > >> > > >> > >
> > > > >> > > >> > >
> > > > >> > > >> > >
> > > > >> > > >> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > > > >> > > >> carlosrovira@apache.org
> > > > >> > > >> > >)
> > > > >> > > >> > > escribió:
> > > > >> > > >> > >
> > > > >> > > >> > > > Ok Josh,
> > > > >> > > >> > > >
> > > > >> > > >> > > > so all seems ok, but debug is not working in classes
> > > > >> > > >> > > > from
> > > > >> Jewel
> > > > >> > > lib.
> > > > >> > > >> > > > I see the jewel.swc has the js.map files in the same
> > way
> > > > >> > > >> > > > I
> > > > >> > > related,
> > > > >> > > >> so
> > > > >> > > >> > > > that's ok as you stated.
> > > > >> > > >> > > > I'm setting breakpoints in the same VSCode window for
> > > > >> > > >> > > > Jewel
> > > > >> and
> > > > >> > > TDJ
> > > > >> > > >> > > files,
> > > > >> > > >> > > > but only TDJ files (in the root or subfolders) are
> > > > >> > > >> > > > making
> > > > >> > > execution
> > > > >> > > >> > stop.
> > > > >> > > >> > > > If I set up a breakpoint in let's say Jewel
> Button.as,
> > > > >> > > >> > > > that
> > > > >> > > appears
> > > > >> > > >> > empty
> > > > >> > > >> > > > on execution and doesn't have effect, while TDJ
> appears
> > > > >> > > >> > > > red
> > > > >> and
> > > > >> > > >> works
> > > > >> > > >> > ok.
> > > > >> > > >> > > >
> > > > >> > > >> > > > Do you know what could be happening?
> > > > >> > > >> > > >
> > > > >> > > >> > > >
> > > > >> > > >> > > >
> > > > >> > > >> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> > > > >> > > >> > joshtynjala@bowlerhat.dev
> > > > >> > > >> > > >)
> > > > >> > > >> > > > escribió:
> > > > >> > > >> > > >
> > > > >> > > >> > > >> The path of the .js.map file is relative to the .js
> > > file.
> > > > >> > Since
> > > > >> > > >> the
> > > > >> > > >> > > >> .js.map file is supposed to be in the same folder as
> > > > >> > > >> > > >> the .js
> > > > >> > > file,
> > > > >> > > >> > that
> > > > >> > > >> > > >> looks correct to me.
> > > > >> > > >> > > >>
> > > > >> > > >> > > >> --
> > > > >> > > >> > > >> Josh Tynjala
> > > > >> > > >> > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > >> > > >> > > >>
> > > > >> > > >> > > >>
> > > > >> > > >> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> > > > >> > > >> > carlosrovira@apache.org>
> > > > >> > > >> > > >> wrote:
> > > > >> > > >> > > >>
> > > > >> > > >> > > >> > Hi Josh,
> > > > >> > > >> > > >> >
> > > > >> > > >> > > >> > I'm trying to debug jewel classes in TDJ and for
> > > > >> > > >> > > >> > example
> > > > >> > > >> > > >> AlertController.js
> > > > >> > > >> > > >> > has at the end:
> > > > >> > > >> > > >> >
> > > > >> > > >> > > >> > //# sourceMappingURL=./AlertController.js.map
> > > > >> > > >> > > >> >
> > > > >> > > >> > > >> > It's ok? I expect it to reference the concrete
> > > > subfolder:
> > > > >> > > >> > > >> > org/apache/royale/jewel/beads/controllers
> > > > >> > > >> > > >> >
> > > > >> > > >> > > >> >
> > > > >> > > >> > > >> >
> > > > >> > > >> > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> > > > >> > > >> > > >> joshtynjala@bowlerhat.dev>)
> > > > >> > > >> > > >> > escribió:
> > > > >> > > >> > > >> >
> > > > >> > > >> > > >> > > Yes, you're right that +royalelib should not be
> > > > >> > > >> > > >> > > required
> > > > >> > for
> > > > >> > > >> > > framework
> > > > >> > > >> > > >> > > libs. I wasn't paying close enough attention to
> > see
> > > > >> > > >> > > >> > > that
> > > > >> > you
> > > > >> > > >> had
> > > > >> > > >> > > added
> > > > >> > > >> > > >> > > +royalelib to both Jewel and TDJ.
> > > > >> > > >> > > >> > >
> > > > >> > > >> > > >> > > So, to summarize, you should use
> > > > >> > > >> > > >> > > source-map-source-root
> > > > >> > when
> > > > >> > > >> > > building
> > > > >> > > >> > > >> > > framework libs, and you should use +royalelib
> when
> > > > >> building
> > > > >> > > >> > > >> > examples/apps.
> > > > >> > > >> > > >> > > +royalelib is not necessary for framework libs,
> > and
> > > > >> > > >> > > >> > source-map-source-root
> > > > >> > > >> > > >> > > is (generally) not necessary for examples/apps.
> > > > >> > > >> > > >> > >
> > > > >> > > >> > > >> > > --
> > > > >> > > >> > > >> > > Josh Tynjala
> > > > >> > > >> > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >> > > >> > > >> > >
> > > > >> > > >> > > >> > >
> > > > >> > > >> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> > > > >> > > >> > > carlosrovira@apache.org
> > > > >> > > >> > > >> >
> > > > >> > > >> > > >> > > wrote:
> > > > >> > > >> > > >> > >
> > > > >> > > >> > > >> > > > Hi Josh,
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > > I discover right now that I was understanding
> > > > >> > > >> > > >> > > > wrong
> > > > >> how
> > > > >> > all
> > > > >> > > >> this
> > > > >> > > >> > > >> works.
> > > > >> > > >> > > >> > > > I thought we needed +royalelib in framework
> > libs,
> > > > >> > > >> > > >> > > > but
> > > > >> > it's
> > > > >> > > >> not
> > > > >> > > >> > the
> > > > >> > > >> > > >> > case.
> > > > >> > > >> > > >> > > > Just need to add +royalelib to a final
> project,
> > > > >> > > >> > > >> > > > so
> > > > >> that
> > > > >> > can
> > > > >> > > >> be
> > > > >> > > >> > > left
> > > > >> > > >> > > >> to
> > > > >> > > >> > > >> > > the
> > > > >> > > >> > > >> > > > user.
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > > That means that we can add to all libs this:
> > > > >> > > >> > > >> > > >
> > > > >> > > >> -source-map-source-root=/frameworks/projects/XXX/target/
> > > > >> > > >> > > >> > > > (Where XXX is the root libraryfolder) -> For
> > this
> > > > >> I'll be
> > > > >> > > >> adding
> > > > >> > > >> > > in
> > > > >> > > >> > > >> a
> > > > >> > > >> > > >> > > > commit soon
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > > So, Chris, we don't need anything more to
> > > > >> > > >> > > >> > > > implement,
> > > > >> as I
> > > > >> > > >> commit
> > > > >> > > >> > > the
> > > > >> > > >> > > >> > > > -source-map-source-root line in all framework
> > > poms.
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > > Another thing is if we should upload all
> source
> > > > >> > > >> > > >> > > > maps
> > > > >> > > (js.map
> > > > >> > > >> > > files)
> > > > >> > > >> > > >> of
> > > > >> > > >> > > >> > > all
> > > > >> > > >> > > >> > > > framework libs to some r.a.o url (for example
> > > > >> > > >> > > >> > > > /debug),
> > > > >> > and
> > > > >> > > if
> > > > >> > > >> > > people
> > > > >> > > >> > > >> > can
> > > > >> > > >> > > >> > > > point with +royalelib (i.e: +royalelib=
> > > > >> > > >> > > >> http://royale.apache.org/debug
> > > > >> > > >> > > >> > )
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > > What do you think?
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala
> (<
> > > > >> > > >> > > >> > joshtynjala@bowlerhat.dev
> > > > >> > > >> > > >> > > >)
> > > > >> > > >> > > >> > > > escribió:
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > > > While we can set source-map-source-root in
> all
> > > > >> > > >> > > >> > > > > of
> > > > >> the
> > > > >> > > >> library
> > > > >> > > >> > > >> > > projects, I
> > > > >> > > >> > > >> > > > > don't think that there's any way for us to
> > > > >> > > >> > > >> > > > > specify
> > > > >> > > >> +royalelib
> > > > >> > > >> > > for
> > > > >> > > >> > > >> TDJ
> > > > >> > > >> > > >> > > and
> > > > >> > > >> > > >> > > > > other examples in a general way. That's the
> > one
> > > > >> thing
> > > > >> > > that
> > > > >> > > >> > users
> > > > >> > > >> > > >> will
> > > > >> > > >> > > >> > > > > probably need to set up manually because the
> > > > >> > > >> > > >> > > > > source
> > > > >> > files
> > > > >> > > >> come
> > > > >> > > >> > > >> from
> > > > >> > > >> > > >> > an
> > > > >> > > >> > > >> > > > > IDE-compatible SDK.
> > > > >> > > >> > > >> > > > >
> > > > >> > > >> > > >> > > > > --
> > > > >> > > >> > > >> > > > > Josh Tynjala
> > > > >> > > >> > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >> > > >> > > >> > > > >
> > > > >> > > >> > > >> > > > >
> > > > >> > > >> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos
> Rovira <
> > > > >> > > >> > > >> > carlosrovira@apache.org>
> > > > >> > > >> > > >> > > > > wrote:
> > > > >> > > >> > > >> > > > >
> > > > >> > > >> > > >> > > > > > 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-mave
> > > > >> > > +n
> > > > >> > > >> > > >> > > > > >
> > > > >> > > >> > > >> > > > > > 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
> > > > >> > > >> > > >> > > > > > (<
> > > > >> > > >> > > >> > > > carlosrovira@apache.org
> > > > >> > > >> > > >> > > > > >)
> > > > >> > > >> > > >> > > > > > escribió:
> > > > >> > > >> > > >> > > > > >
> > > > >> > > >> > > >> > > > > > > Hi Josh, Thanks! That worked and I
> finally
> > > > >> > > >> > > >> > > > > > > have
> > > > >> > > >> debugging
> > > > >> > > >> > > >> again!
> > > > >> > > >> > > >> > :D
> > > > >> > > >> > > >> > > > > > >
> > > > >> > > >> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh
> > > > >> > > >> > > >> > > > > > > Tynjala (<
> > > > >> > > >> > > >> > > > > joshtynjala@bowlerhat.dev
> > > > >> > > >> > > >> > > > > > >)
> > > > >> > > >> > > >> > > > > > > escribió:
> > > > >> > > >> > > >> > > > > > >
> > > > >> > > >> > > >> > > > > > >> Hey Carlos,
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> > > > > > >> Try using source-map-source-root with
> > > > >> > > >> > > >> > > > > > >> Jewel
> > > > >> only,
> > > > >> > > and
> > > > >> > > >> > omit
> > > > >> > > >> > > it
> > > > >> > > >> > > >> > from
> > > > >> > > >> > > >> > > > > TDJ.
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> > > > > > >> Jewel:
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> >
> > > > >> > > >>
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > >> > > >> +aven
> > > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> > > > > > >> TDJ:
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> >
> > > > >> > > >>
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > >> > > >> +aven
> > > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> > > > > > >> 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
> > > > >> > > >> > > >> > > > > > >> <https://bowlerhat.dev>
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> > > > > > >>
> > > > >> > > >> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos
> > > > >> > > >> > > >> > > > > > >> Rovira <
> > > > >> > > >> > > >> > > > carlosrovira@apache.org
> > > > >> > > >> > > >> > > > > >
> > > > >> > > >> > > >> > > > > > >> 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:
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > > > > > >> > <additionalCompilerOptions>
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > >
> > > > >> > > >>
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > >> > > >> +aven
> > > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > -source-map-source-root=/frameworks/projects/Jewel/
> > > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > > > > > >> > and in TDJ:
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > >
> > > > >> > > >>
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > > >> > > >> +aven
> > > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > > > > > >> > 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.dutz@c-ware.de>)
> > > > >> > > >> > > >> > > > > > >> > escribió:
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > > > > > >> >> Hi all,
> > > > >> > > >> > > >> > > > > > >> >>
> > > > >> > > >> > > >> > > > > > >> >> Sure, happy to help, but what
> exactly
> > > > >> > > >> > > >> > > > > > >> >> do you
> > > > >> > > need?
> > > > >> > > >> > > >> > > > > > >> >>
> > > > >> > > >> > > >> > > > > > >> >> Chris
> > > > >> > > >> > > >> > > > > > >> >> ------------------------------
> > > > >> > > >> > > >> > > > > > >> >> *Von:* Carlos Rovira <
> > > > >> carlosrovira@apache.org>
> > > > >> > > >> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021
> > > > >> > > >> > > >> > > > > > >> >> 23:23
> > > > >> > > >> > > >> > > > > > >> >> *An:* Josh Tynjala <
> > > > >> joshtynjala@bowlerhat.dev
> > > > >> > >;
> > > > >> > > >> > > >> Christofer
> > > > >> > > >> > > >> > > Dutz
> > > > >> > > >> > > >> > > > <
> > > > >> > > >> > > >> > > > > > >> >> christofer.dutz@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 (<
> > > > >> > > >> > > >> > > > > > >> joshtynjala@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/framewo
> > > > >> > > >> > > >> > > > > > >> >> +rks/
> > > > >> > > >> > > >> > > > > > >> >>
> > > > >> > > >> > > >> > > > > > >> >> 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 <
> > > > >> > > >> > > >> > > > > > carlosrovira@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:
> > > > >> > > >> > > >> > > > > > >> >>
> > > > >> > > >> > > >> > > > > > >> >>
> <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
> > > > >> > > >> > > >> > > > > > >> >>
> > > > >> > > >> > > >> > > > > > >> >>
> > > > >> > > >> > > >> > > > > > >> >
> > > > >> > > >> > > >> > > > > > >> > --
> > > > >> > > >> > > >> > > > > > >> > 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
> > > > >> > > >> > > >> > > > > >
> > > > >> > > >> > > >> > > > >
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > >
> > > > >> > > >> > > >> > > > --
> > > > >> > > >> > > >> > > > 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
> > > > >> > > >> > > >
> > > > >> > > >> > > >
> > > > >> > > >> > >
> > > > >> > > >> > > --
> > > > >> > > >> > > 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
> > > > >>
> > > > >
> > > >
> > >
> > >
> > > --
> > > 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
>
Re: Configuring source maps on Royale with new compiler options
Posted by Carlos Rovira <ca...@apache.org>.
Oops! You're right Josh, I commited a fix for that.
Anyway, I tried within Jewel adding hardcoded code (as you showed) and it
didn't worked. In both cases:
For Button.js, I get this:
//# sourceMappingURL=./Button.js.map
and Button.js.map has:
"sourceRoot":"/frameworks/projects/Jewel/src/main/royale/",
If you have the same code, maybe the problem is not maven build but
something related to VSCode.
Thanks
Carlos
El jue, 14 ene 2021 a las 18:55, Josh Tynjala (<jo...@bowlerhat.dev>)
escribió:
> This is what I see in the Button.js.map file:
>
>
> "sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/{$project.artifactId}/src/main/royale"
>
> The {$project.artifactId} token seems incorrect. Did you mean
> ${project.artifactId} instead?
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Thu, Jan 14, 2021 at 1:59 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
> > Hi Josh,
> >
> > just tried your recommendations, but seems not to work.
> >
> > I added to Jewel:
> >
> > <additionalCompilerOptions>
> > -source-map=true;
> > -source-map-source-root=/frameworks/projects/Jewel/src/main/royale/
> > </additionalCompilerOptions>
> >
> > and in TDJ just:
> >
> > -source-map=true;
> >
> > I added in my VSCode tasks the argument to compile TDJ
> >
> > "args": [
> > "clean",
> > "install",
> > "-P option-with-swf",
> >
> >
> "-Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks"
> > ,
> > "-DskipTests"
> > ]
> >
> > setting a break point in jewel button is marked with an empty circle in
> > VSCode and doesn't stop, but TDJ works ok.
> >
> > I think I followed your indications right, and also committed (but the
> > commit is more general since I added the config to frameworks/projects to
> > affect to all SWC libs at once). Maybe there's some detail that
> > is preventing it to work.
> >
> > Thanks for your time and taking a look
> >
> > Carlos
> >
> >
> > El jue, 14 ene 2021 a las 9:25, Maria Jose Esteve (<mj...@iest.com>)
> > escribió:
> >
> > > Hi, It does not work for me.
> > > I have modified Jewel's pom.xml, main pom "/ projects /" and have
> > modified
> > > my maven build to include the Droyalelib option with the path to my /
> > > frameworks directory, the result error.
> > > Do I have to modify something else ?, the sdk does not compile
> > >
> > > Thx
> > > Hiedra
> > >
> > > -----Mensaje original-----
> > > De: Josh Tynjala <jo...@bowlerhat.dev>
> > > Enviado el: jueves, 14 de enero de 2021 0:40
> > > Para: Apache Royale Development <de...@royale.apache.org>
> > > Asunto: Re: Configuring source maps on Royale with new compiler options
> > >
> > > Okay, I've determined a couple of tweaks to the process that made
> things
> > > work on my machine to allow source map debugging with Maven.
> > >
> > > The source-map-source-root for Jewel and other SDK libs must include
> > > src/main/royale/ at the end.
> > >
> > > <additionalCompilerOptions>
> > > -source-map=true;
> > > -source-map-source-root=/frameworks/projects/Jewel/src/main/royale/
> > > </additionalCompilerOptions>
> > >
> > > For TDJ and other apps, you only need the source-map option. Do NOT add
> > > source-map-source-root and do NOT add +royalelib.
> > >
> > > <additionalCompilerOptions>
> > > -source-map=true;
> > > </additionalCompilerOptions>
> > >
> > > Instead add an extra -Droyalelib option to your mvn command line. For
> > > example:
> > >
> > > mvn clean install
> > >
> > >
> >
> -Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >
> > >
> > > On Wed, Jan 13, 2021 at 2:57 PM Josh Tynjala <
> joshtynjala@bowlerhat.dev>
> > > wrote:
> > >
> > > > I just gave it a try myself, and it looks like the compiler is
> failing
> > > > to recognize the +royalelib token when you try to put it into Maven's
> > > > additionalCompilerOptions. As I implied, it was certainly possible
> > > > that this might or might not work.
> > > >
> > > > I'll let you know if I have another suggestion.
> > > >
> > > > --
> > > > Josh Tynjala
> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >
> > > >
> > > > On Sat, Jan 9, 2021 at 1:01 AM Carlos Rovira <
> carlosrovira@apache.org>
> > > > wrote:
> > > >
> > > >> Hi Josh,
> > > >>
> > > >> Thanks for taking a look, I'll check maven distribution to see how
> to
> > > >> add the missing folder. It's strange since I think I was debugging
> > > >> against the Maven SDK until now.
> > > >>
> > > >> I made now a quick try with ANT SDK, after my daily build completed,
> > > >> with your latest changes from yesterday, and compiled TDJ with:
> > > >>
> > > >>
> +royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/framewor
> > > >> +ks
> > > >>
> > > >> to point to ANT instead to MAVEN, and the result was the same for
> > > >> royale ANT sdk: TDJ stops at breakpoints in VSCode but Jewel not. I
> > > >> thought that ANT SDK should work right, isn't?
> > > >>
> > > >> Thanks
> > > >>
> > > >>
> > > >>
> > > >>
> > > >> El vie, 8 ene 2021 a las 22:57, Greg Dove (<gr...@gmail.com>)
> > > >> escribió:
> > > >>
> > > >> > Thanks Josh, I guess there was still something cached at a
> > > >> > different
> > > >> level
> > > >> > in our local m2 that meant it was still working for Hiedra and me.
> > > >> > Nice sleuthing!
> > > >> >
> > > >> >
> > > >> > On Sat, Jan 9, 2021 at 10:43 AM Josh Tynjala
> > > >> > <joshtynjala@bowlerhat.dev
> > > >> >
> > > >> > wrote:
> > > >> >
> > > >> > > Following up, since I can now successfully build the Maven
> > > >> distribution
> > > >> > > again.
> > > >> > >
> > > >> > > I've confirmed that frameworks/projects is missing from a Maven
> > > >> > > distribution, like I had observed in the past. With that in
> mind,
> > > >> > > a
> > > >> Maven
> > > >> > > distribution cannot currently be referenced with +royalelib for
> > > >> > > sourcemap-enabled debugging with the original .as files.
> > > >> > >
> > > >> > > --
> > > >> > > Josh Tynjala
> > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >> > >
> > > >> > >
> > > >> > > On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <
> > > >> joshtynjala@bowlerhat.dev>
> > > >> > > wrote:
> > > >> > >
> > > >> > > > Carlos, are you using a Maven distribution as your
> > > >> > > > IDE-compatible
> > > >> SDK?
> > > >> > > The
> > > >> > > > last time that I built one, I seem to recall that the
> > > >> > > > distribution
> > > >> did
> > > >> > > not
> > > >> > > > include the original .as source files. I don't know if that's
> > > >> > > > still
> > > >> the
> > > >> > > > case or not. I tried building a Maven distribution today to
> > > >> > > > check,
> > > >> but
> > > >> > > the
> > > >> > > > build fails due to the current compiler being on version 0.9.9
> > > >> > > > and
> > > >> the
> > > >> > > > framework still expecting 0.9.8.
> > > >> > > >
> > > >> > > > --
> > > >> > > > Josh Tynjala
> > > >> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >> > > >
> > > >> > > >
> > > >> > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
> > > >> carlosrovira@apache.org
> > > >> > >
> > > >> > > > wrote:
> > > >> > > >
> > > >> > > >> Hi Josh,
> > > >> > > >>
> > > >> > > >> thanks, I added "frameworks" in TDJ +royalelib but seems it
> > > >> > > >> doesn't
> > > >> > have
> > > >> > > >> effect, stil debug TDJ but not classes in Jewel.
> > > >> > > >> Don't see what it could be :?
> > > >> > > >>
> > > >> > > >> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > > >> > > joshtynjala@bowlerhat.dev
> > > >> > > >> >)
> > > >> > > >> escribió:
> > > >> > > >>
> > > >> > > >> > Looking over previous emails in this thread, it looks like
> > > >> > > >> > you
> > > >> > forgot
> > > >> > > to
> > > >> > > >> > add /frameworks at the end of the +royalelib path.
> > > >> > > >> >
> > > >> > > >> > You have:
> > > >> > > >> >
> > > >> > > >> >
> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > >> > > >> >
> > > >> > > >> > It should be:
> > > >> > > >> >
> > > >> > > >> >
> > > >> > > >> >
> > > >> > > >>
> > > >> > >
> > > >> >
> > > >>
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/fr
> > > >> +ameworks
> > > >> > > >> >
> > > >> > > >> > --
> > > >> > > >> > Josh Tynjala
> > > >> > > >> > Bowler Hat LLC <https://bowlerhat.dev>
> > > >> > > >> >
> > > >> > > >> >
> > > >> > > >> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > > >> > > carlosrovira@apache.org>
> > > >> > > >> > wrote:
> > > >> > > >> >
> > > >> > > >> > > Hi,
> > > >> > > >> > >
> > > >> > > >> > > just fyi I added:
> > > >> > > >> > >
> > > >> > > >> > >
> > > >> > > >> >
> > > >> -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > >> > > >> > >
> > > >> > > >> > > at frameworks/projects/pom.xml so now we have setup
> source
> > > >> > > >> > > maps in all libraries
> > > >> > > >> > >
> > > >> > > >> > > but while that seems ok, I'm not getting lib debugging as
> > > >> > > >> > > I
> > > >> stated
> > > >> > > in
> > > >> > > >> my
> > > >> > > >> > > last email.
> > > >> > > >> > >
> > > >> > > >> > >
> > > >> > > >> > >
> > > >> > > >> > >
> > > >> > > >> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > > >> > > >> carlosrovira@apache.org
> > > >> > > >> > >)
> > > >> > > >> > > escribió:
> > > >> > > >> > >
> > > >> > > >> > > > Ok Josh,
> > > >> > > >> > > >
> > > >> > > >> > > > so all seems ok, but debug is not working in classes
> > > >> > > >> > > > from
> > > >> Jewel
> > > >> > > lib.
> > > >> > > >> > > > I see the jewel.swc has the js.map files in the same
> way
> > > >> > > >> > > > I
> > > >> > > related,
> > > >> > > >> so
> > > >> > > >> > > > that's ok as you stated.
> > > >> > > >> > > > I'm setting breakpoints in the same VSCode window for
> > > >> > > >> > > > Jewel
> > > >> and
> > > >> > > TDJ
> > > >> > > >> > > files,
> > > >> > > >> > > > but only TDJ files (in the root or subfolders) are
> > > >> > > >> > > > making
> > > >> > > execution
> > > >> > > >> > stop.
> > > >> > > >> > > > If I set up a breakpoint in let's say Jewel Button.as,
> > > >> > > >> > > > that
> > > >> > > appears
> > > >> > > >> > empty
> > > >> > > >> > > > on execution and doesn't have effect, while TDJ appears
> > > >> > > >> > > > red
> > > >> and
> > > >> > > >> works
> > > >> > > >> > ok.
> > > >> > > >> > > >
> > > >> > > >> > > > Do you know what could be happening?
> > > >> > > >> > > >
> > > >> > > >> > > >
> > > >> > > >> > > >
> > > >> > > >> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> > > >> > > >> > joshtynjala@bowlerhat.dev
> > > >> > > >> > > >)
> > > >> > > >> > > > escribió:
> > > >> > > >> > > >
> > > >> > > >> > > >> The path of the .js.map file is relative to the .js
> > file.
> > > >> > Since
> > > >> > > >> the
> > > >> > > >> > > >> .js.map file is supposed to be in the same folder as
> > > >> > > >> > > >> the .js
> > > >> > > file,
> > > >> > > >> > that
> > > >> > > >> > > >> looks correct to me.
> > > >> > > >> > > >>
> > > >> > > >> > > >> --
> > > >> > > >> > > >> Josh Tynjala
> > > >> > > >> > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > >> > > >> > > >>
> > > >> > > >> > > >>
> > > >> > > >> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> > > >> > > >> > carlosrovira@apache.org>
> > > >> > > >> > > >> wrote:
> > > >> > > >> > > >>
> > > >> > > >> > > >> > Hi Josh,
> > > >> > > >> > > >> >
> > > >> > > >> > > >> > I'm trying to debug jewel classes in TDJ and for
> > > >> > > >> > > >> > example
> > > >> > > >> > > >> AlertController.js
> > > >> > > >> > > >> > has at the end:
> > > >> > > >> > > >> >
> > > >> > > >> > > >> > //# sourceMappingURL=./AlertController.js.map
> > > >> > > >> > > >> >
> > > >> > > >> > > >> > It's ok? I expect it to reference the concrete
> > > subfolder:
> > > >> > > >> > > >> > org/apache/royale/jewel/beads/controllers
> > > >> > > >> > > >> >
> > > >> > > >> > > >> >
> > > >> > > >> > > >> >
> > > >> > > >> > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> > > >> > > >> > > >> joshtynjala@bowlerhat.dev>)
> > > >> > > >> > > >> > escribió:
> > > >> > > >> > > >> >
> > > >> > > >> > > >> > > Yes, you're right that +royalelib should not be
> > > >> > > >> > > >> > > required
> > > >> > for
> > > >> > > >> > > framework
> > > >> > > >> > > >> > > libs. I wasn't paying close enough attention to
> see
> > > >> > > >> > > >> > > that
> > > >> > you
> > > >> > > >> had
> > > >> > > >> > > added
> > > >> > > >> > > >> > > +royalelib to both Jewel and TDJ.
> > > >> > > >> > > >> > >
> > > >> > > >> > > >> > > So, to summarize, you should use
> > > >> > > >> > > >> > > source-map-source-root
> > > >> > when
> > > >> > > >> > > building
> > > >> > > >> > > >> > > framework libs, and you should use +royalelib when
> > > >> building
> > > >> > > >> > > >> > examples/apps.
> > > >> > > >> > > >> > > +royalelib is not necessary for framework libs,
> and
> > > >> > > >> > > >> > source-map-source-root
> > > >> > > >> > > >> > > is (generally) not necessary for examples/apps.
> > > >> > > >> > > >> > >
> > > >> > > >> > > >> > > --
> > > >> > > >> > > >> > > Josh Tynjala
> > > >> > > >> > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >> > > >> > > >> > >
> > > >> > > >> > > >> > >
> > > >> > > >> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> > > >> > > >> > > carlosrovira@apache.org
> > > >> > > >> > > >> >
> > > >> > > >> > > >> > > wrote:
> > > >> > > >> > > >> > >
> > > >> > > >> > > >> > > > Hi Josh,
> > > >> > > >> > > >> > > >
> > > >> > > >> > > >> > > > I discover right now that I was understanding
> > > >> > > >> > > >> > > > wrong
> > > >> how
> > > >> > all
> > > >> > > >> this
> > > >> > > >> > > >> works.
> > > >> > > >> > > >> > > > I thought we needed +royalelib in framework
> libs,
> > > >> > > >> > > >> > > > but
> > > >> > it's
> > > >> > > >> not
> > > >> > > >> > the
> > > >> > > >> > > >> > case.
> > > >> > > >> > > >> > > > Just need to add +royalelib to a final project,
> > > >> > > >> > > >> > > > so
> > > >> that
> > > >> > can
> > > >> > > >> be
> > > >> > > >> > > left
> > > >> > > >> > > >> to
> > > >> > > >> > > >> > > the
> > > >> > > >> > > >> > > > user.
> > > >> > > >> > > >> > > >
> > > >> > > >> > > >> > > > That means that we can add to all libs this:
> > > >> > > >> > > >> > > >
> > > >> > > >> -source-map-source-root=/frameworks/projects/XXX/target/
> > > >> > > >> > > >> > > > (Where XXX is the root libraryfolder) -> For
> this
> > > >> I'll be
> > > >> > > >> adding
> > > >> > > >> > > in
> > > >> > > >> > > >> a
> > > >> > > >> > > >> > > > commit soon
> > > >> > > >> > > >> > > >
> > > >> > > >> > > >> > > > So, Chris, we don't need anything more to
> > > >> > > >> > > >> > > > implement,
> > > >> as I
> > > >> > > >> commit
> > > >> > > >> > > the
> > > >> > > >> > > >> > > > -source-map-source-root line in all framework
> > poms.
> > > >> > > >> > > >> > > >
> > > >> > > >> > > >> > > > Another thing is if we should upload all source
> > > >> > > >> > > >> > > > maps
> > > >> > > (js.map
> > > >> > > >> > > files)
> > > >> > > >> > > >> of
> > > >> > > >> > > >> > > all
> > > >> > > >> > > >> > > > framework libs to some r.a.o url (for example
> > > >> > > >> > > >> > > > /debug),
> > > >> > and
> > > >> > > if
> > > >> > > >> > > people
> > > >> > > >> > > >> > can
> > > >> > > >> > > >> > > > point with +royalelib (i.e: +royalelib=
> > > >> > > >> > > >> http://royale.apache.org/debug
> > > >> > > >> > > >> > )
> > > >> > > >> > > >> > > >
> > > >> > > >> > > >> > > > What do you think?
> > > >> > > >> > > >> > > >
> > > >> > > >> > > >> > > >
> > > >> > > >> > > >> > > >
> > > >> > > >> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> > > >> > > >> > > >> > joshtynjala@bowlerhat.dev
> > > >> > > >> > > >> > > >)
> > > >> > > >> > > >> > > > escribió:
> > > >> > > >> > > >> > > >
> > > >> > > >> > > >> > > > > While we can set source-map-source-root in all
> > > >> > > >> > > >> > > > > of
> > > >> the
> > > >> > > >> library
> > > >> > > >> > > >> > > projects, I
> > > >> > > >> > > >> > > > > don't think that there's any way for us to
> > > >> > > >> > > >> > > > > specify
> > > >> > > >> +royalelib
> > > >> > > >> > > for
> > > >> > > >> > > >> TDJ
> > > >> > > >> > > >> > > and
> > > >> > > >> > > >> > > > > other examples in a general way. That's the
> one
> > > >> thing
> > > >> > > that
> > > >> > > >> > users
> > > >> > > >> > > >> will
> > > >> > > >> > > >> > > > > probably need to set up manually because the
> > > >> > > >> > > >> > > > > source
> > > >> > files
> > > >> > > >> come
> > > >> > > >> > > >> from
> > > >> > > >> > > >> > an
> > > >> > > >> > > >> > > > > IDE-compatible SDK.
> > > >> > > >> > > >> > > > >
> > > >> > > >> > > >> > > > > --
> > > >> > > >> > > >> > > > > Josh Tynjala
> > > >> > > >> > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >> > > >> > > >> > > > >
> > > >> > > >> > > >> > > > >
> > > >> > > >> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> > > >> > > >> > > >> > carlosrovira@apache.org>
> > > >> > > >> > > >> > > > > wrote:
> > > >> > > >> > > >> > > > >
> > > >> > > >> > > >> > > > > > 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-mave
> > > >> > > +n
> > > >> > > >> > > >> > > > > >
> > > >> > > >> > > >> > > > > > 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
> > > >> > > >> > > >> > > > > > (<
> > > >> > > >> > > >> > > > carlosrovira@apache.org
> > > >> > > >> > > >> > > > > >)
> > > >> > > >> > > >> > > > > > escribió:
> > > >> > > >> > > >> > > > > >
> > > >> > > >> > > >> > > > > > > Hi Josh, Thanks! That worked and I finally
> > > >> > > >> > > >> > > > > > > have
> > > >> > > >> debugging
> > > >> > > >> > > >> again!
> > > >> > > >> > > >> > :D
> > > >> > > >> > > >> > > > > > >
> > > >> > > >> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh
> > > >> > > >> > > >> > > > > > > Tynjala (<
> > > >> > > >> > > >> > > > > joshtynjala@bowlerhat.dev
> > > >> > > >> > > >> > > > > > >)
> > > >> > > >> > > >> > > > > > > escribió:
> > > >> > > >> > > >> > > > > > >
> > > >> > > >> > > >> > > > > > >> Hey Carlos,
> > > >> > > >> > > >> > > > > > >>
> > > >> > > >> > > >> > > > > > >> Try using source-map-source-root with
> > > >> > > >> > > >> > > > > > >> Jewel
> > > >> only,
> > > >> > > and
> > > >> > > >> > omit
> > > >> > > >> > > it
> > > >> > > >> > > >> > from
> > > >> > > >> > > >> > > > > TDJ.
> > > >> > > >> > > >> > > > > > >>
> > > >> > > >> > > >> > > > > > >> Jewel:
> > > >> > > >> > > >> > > > > > >>
> > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > >> > > >> > > >> > > > > > >>
> > > >> > > >> > > >> >
> > > >> > > >>
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > >> > > >> +aven
> > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > >> > > >> > > >> > > > > > >>
> > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > >> > > >> > > >> > > > > > >>
> > > >> > > >> > > >> > > > > > >> TDJ:
> > > >> > > >> > > >> > > > > > >>
> > > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > >> > > >> > > >> > > > > > >>
> > > >> > > >> > > >> >
> > > >> > > >>
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > >> > > >> +aven
> > > >> > > >> > > >> > > > > > >> -source-map=true;
> > > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > >> > > >> > > >> > > > > > >>
> > > >> > > >> > > >> > > > > > >> 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
> > > >> > > >> > > >> > > > > > >> <https://bowlerhat.dev>
> > > >> > > >> > > >> > > > > > >>
> > > >> > > >> > > >> > > > > > >>
> > > >> > > >> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos
> > > >> > > >> > > >> > > > > > >> Rovira <
> > > >> > > >> > > >> > > > carlosrovira@apache.org
> > > >> > > >> > > >> > > > > >
> > > >> > > >> > > >> > > > > > >> 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:
> > > >> > > >> > > >> > > > > > >> >
> > > >> > > >> > > >> > > > > > >> > <additionalCompilerOptions>
> > > >> > > >> > > >> > > > > > >> >
> > > >> > > >> > > >> > >
> > > >> > > >>
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > >> > > >> +aven
> > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > >> > > >> > > >> > > > > > >> >
> > > >> > > -source-map-source-root=/frameworks/projects/Jewel/
> > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > >> > > >> > > >> > > > > > >> >
> > > >> > > >> > > >> > > > > > >> > and in TDJ:
> > > >> > > >> > > >> > > > > > >> >
> > > >> > > >> > > >> > > > > > >> >
> > > >> > > >> > > >> > >
> > > >> > > >>
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > > >> > > >> +aven
> > > >> > > >> > > >> > > > > > >> > -source-map=true;
> > > >> > > >> > > >> > > > > > >> >
> > > >> > > -source-map-source-root=/examples/jewel/TourDeJewel
> > > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > >> > > >> > > >> > > > > > >> >
> > > >> > > >> > > >> > > > > > >> > 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.dutz@c-ware.de>)
> > > >> > > >> > > >> > > > > > >> > escribió:
> > > >> > > >> > > >> > > > > > >> >
> > > >> > > >> > > >> > > > > > >> >> Hi all,
> > > >> > > >> > > >> > > > > > >> >>
> > > >> > > >> > > >> > > > > > >> >> Sure, happy to help, but what exactly
> > > >> > > >> > > >> > > > > > >> >> do you
> > > >> > > need?
> > > >> > > >> > > >> > > > > > >> >>
> > > >> > > >> > > >> > > > > > >> >> Chris
> > > >> > > >> > > >> > > > > > >> >> ------------------------------
> > > >> > > >> > > >> > > > > > >> >> *Von:* Carlos Rovira <
> > > >> carlosrovira@apache.org>
> > > >> > > >> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021
> > > >> > > >> > > >> > > > > > >> >> 23:23
> > > >> > > >> > > >> > > > > > >> >> *An:* Josh Tynjala <
> > > >> joshtynjala@bowlerhat.dev
> > > >> > >;
> > > >> > > >> > > >> Christofer
> > > >> > > >> > > >> > > Dutz
> > > >> > > >> > > >> > > > <
> > > >> > > >> > > >> > > > > > >> >> christofer.dutz@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 (<
> > > >> > > >> > > >> > > > > > >> joshtynjala@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/framewo
> > > >> > > >> > > >> > > > > > >> >> +rks/
> > > >> > > >> > > >> > > > > > >> >>
> > > >> > > >> > > >> > > > > > >> >> 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 <
> > > >> > > >> > > >> > > > > > carlosrovira@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:
> > > >> > > >> > > >> > > > > > >> >>
> > > >> > > >> > > >> > > > > > >> >> <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
> > > >> > > >> > > >> > > > > > >> >>
> > > >> > > >> > > >> > > > > > >> >>
> > > >> > > >> > > >> > > > > > >> >
> > > >> > > >> > > >> > > > > > >> > --
> > > >> > > >> > > >> > > > > > >> > 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
> > > >> > > >> > > >> > > > > >
> > > >> > > >> > > >> > > > >
> > > >> > > >> > > >> > > >
> > > >> > > >> > > >> > > >
> > > >> > > >> > > >> > > > --
> > > >> > > >> > > >> > > > 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
> > > >> > > >> > > >
> > > >> > > >> > > >
> > > >> > > >> > >
> > > >> > > >> > > --
> > > >> > > >> > > 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
> > > >>
> > > >
> > >
> >
> >
> > --
> > 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
Re: Configuring source maps on Royale with new compiler options
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
This is what I see in the Button.js.map file:
"sourceRoot":"file:///c:/Users/josht/Development/apache/royale-asjs/frameworks/projects/{$project.artifactId}/src/main/royale"
The {$project.artifactId} token seems incorrect. Did you mean
${project.artifactId} instead?
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Thu, Jan 14, 2021 at 1:59 AM Carlos Rovira <ca...@apache.org>
wrote:
> Hi Josh,
>
> just tried your recommendations, but seems not to work.
>
> I added to Jewel:
>
> <additionalCompilerOptions>
> -source-map=true;
> -source-map-source-root=/frameworks/projects/Jewel/src/main/royale/
> </additionalCompilerOptions>
>
> and in TDJ just:
>
> -source-map=true;
>
> I added in my VSCode tasks the argument to compile TDJ
>
> "args": [
> "clean",
> "install",
> "-P option-with-swf",
>
> "-Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks"
> ,
> "-DskipTests"
> ]
>
> setting a break point in jewel button is marked with an empty circle in
> VSCode and doesn't stop, but TDJ works ok.
>
> I think I followed your indications right, and also committed (but the
> commit is more general since I added the config to frameworks/projects to
> affect to all SWC libs at once). Maybe there's some detail that
> is preventing it to work.
>
> Thanks for your time and taking a look
>
> Carlos
>
>
> El jue, 14 ene 2021 a las 9:25, Maria Jose Esteve (<mj...@iest.com>)
> escribió:
>
> > Hi, It does not work for me.
> > I have modified Jewel's pom.xml, main pom "/ projects /" and have
> modified
> > my maven build to include the Droyalelib option with the path to my /
> > frameworks directory, the result error.
> > Do I have to modify something else ?, the sdk does not compile
> >
> > Thx
> > Hiedra
> >
> > -----Mensaje original-----
> > De: Josh Tynjala <jo...@bowlerhat.dev>
> > Enviado el: jueves, 14 de enero de 2021 0:40
> > Para: Apache Royale Development <de...@royale.apache.org>
> > Asunto: Re: Configuring source maps on Royale with new compiler options
> >
> > Okay, I've determined a couple of tweaks to the process that made things
> > work on my machine to allow source map debugging with Maven.
> >
> > The source-map-source-root for Jewel and other SDK libs must include
> > src/main/royale/ at the end.
> >
> > <additionalCompilerOptions>
> > -source-map=true;
> > -source-map-source-root=/frameworks/projects/Jewel/src/main/royale/
> > </additionalCompilerOptions>
> >
> > For TDJ and other apps, you only need the source-map option. Do NOT add
> > source-map-source-root and do NOT add +royalelib.
> >
> > <additionalCompilerOptions>
> > -source-map=true;
> > </additionalCompilerOptions>
> >
> > Instead add an extra -Droyalelib option to your mvn command line. For
> > example:
> >
> > mvn clean install
> >
> >
> -Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Wed, Jan 13, 2021 at 2:57 PM Josh Tynjala <jo...@bowlerhat.dev>
> > wrote:
> >
> > > I just gave it a try myself, and it looks like the compiler is failing
> > > to recognize the +royalelib token when you try to put it into Maven's
> > > additionalCompilerOptions. As I implied, it was certainly possible
> > > that this might or might not work.
> > >
> > > I'll let you know if I have another suggestion.
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >
> > >
> > > On Sat, Jan 9, 2021 at 1:01 AM Carlos Rovira <ca...@apache.org>
> > > wrote:
> > >
> > >> Hi Josh,
> > >>
> > >> Thanks for taking a look, I'll check maven distribution to see how to
> > >> add the missing folder. It's strange since I think I was debugging
> > >> against the Maven SDK until now.
> > >>
> > >> I made now a quick try with ANT SDK, after my daily build completed,
> > >> with your latest changes from yesterday, and compiled TDJ with:
> > >>
> > >> +royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/framewor
> > >> +ks
> > >>
> > >> to point to ANT instead to MAVEN, and the result was the same for
> > >> royale ANT sdk: TDJ stops at breakpoints in VSCode but Jewel not. I
> > >> thought that ANT SDK should work right, isn't?
> > >>
> > >> Thanks
> > >>
> > >>
> > >>
> > >>
> > >> El vie, 8 ene 2021 a las 22:57, Greg Dove (<gr...@gmail.com>)
> > >> escribió:
> > >>
> > >> > Thanks Josh, I guess there was still something cached at a
> > >> > different
> > >> level
> > >> > in our local m2 that meant it was still working for Hiedra and me.
> > >> > Nice sleuthing!
> > >> >
> > >> >
> > >> > On Sat, Jan 9, 2021 at 10:43 AM Josh Tynjala
> > >> > <joshtynjala@bowlerhat.dev
> > >> >
> > >> > wrote:
> > >> >
> > >> > > Following up, since I can now successfully build the Maven
> > >> distribution
> > >> > > again.
> > >> > >
> > >> > > I've confirmed that frameworks/projects is missing from a Maven
> > >> > > distribution, like I had observed in the past. With that in mind,
> > >> > > a
> > >> Maven
> > >> > > distribution cannot currently be referenced with +royalelib for
> > >> > > sourcemap-enabled debugging with the original .as files.
> > >> > >
> > >> > > --
> > >> > > Josh Tynjala
> > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >> > >
> > >> > >
> > >> > > On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <
> > >> joshtynjala@bowlerhat.dev>
> > >> > > wrote:
> > >> > >
> > >> > > > Carlos, are you using a Maven distribution as your
> > >> > > > IDE-compatible
> > >> SDK?
> > >> > > The
> > >> > > > last time that I built one, I seem to recall that the
> > >> > > > distribution
> > >> did
> > >> > > not
> > >> > > > include the original .as source files. I don't know if that's
> > >> > > > still
> > >> the
> > >> > > > case or not. I tried building a Maven distribution today to
> > >> > > > check,
> > >> but
> > >> > > the
> > >> > > > build fails due to the current compiler being on version 0.9.9
> > >> > > > and
> > >> the
> > >> > > > framework still expecting 0.9.8.
> > >> > > >
> > >> > > > --
> > >> > > > Josh Tynjala
> > >> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > >> > > >
> > >> > > >
> > >> > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
> > >> carlosrovira@apache.org
> > >> > >
> > >> > > > wrote:
> > >> > > >
> > >> > > >> Hi Josh,
> > >> > > >>
> > >> > > >> thanks, I added "frameworks" in TDJ +royalelib but seems it
> > >> > > >> doesn't
> > >> > have
> > >> > > >> effect, stil debug TDJ but not classes in Jewel.
> > >> > > >> Don't see what it could be :?
> > >> > > >>
> > >> > > >> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > >> > > joshtynjala@bowlerhat.dev
> > >> > > >> >)
> > >> > > >> escribió:
> > >> > > >>
> > >> > > >> > Looking over previous emails in this thread, it looks like
> > >> > > >> > you
> > >> > forgot
> > >> > > to
> > >> > > >> > add /frameworks at the end of the +royalelib path.
> > >> > > >> >
> > >> > > >> > You have:
> > >> > > >> >
> > >> > > >> >
> > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > >> > > >> >
> > >> > > >> > It should be:
> > >> > > >> >
> > >> > > >> >
> > >> > > >> >
> > >> > > >>
> > >> > >
> > >> >
> > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/fr
> > >> +ameworks
> > >> > > >> >
> > >> > > >> > --
> > >> > > >> > Josh Tynjala
> > >> > > >> > Bowler Hat LLC <https://bowlerhat.dev>
> > >> > > >> >
> > >> > > >> >
> > >> > > >> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > >> > > carlosrovira@apache.org>
> > >> > > >> > wrote:
> > >> > > >> >
> > >> > > >> > > Hi,
> > >> > > >> > >
> > >> > > >> > > just fyi I added:
> > >> > > >> > >
> > >> > > >> > >
> > >> > > >> >
> > >> -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > >> > > >> > >
> > >> > > >> > > at frameworks/projects/pom.xml so now we have setup source
> > >> > > >> > > maps in all libraries
> > >> > > >> > >
> > >> > > >> > > but while that seems ok, I'm not getting lib debugging as
> > >> > > >> > > I
> > >> stated
> > >> > > in
> > >> > > >> my
> > >> > > >> > > last email.
> > >> > > >> > >
> > >> > > >> > >
> > >> > > >> > >
> > >> > > >> > >
> > >> > > >> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > >> > > >> carlosrovira@apache.org
> > >> > > >> > >)
> > >> > > >> > > escribió:
> > >> > > >> > >
> > >> > > >> > > > Ok Josh,
> > >> > > >> > > >
> > >> > > >> > > > so all seems ok, but debug is not working in classes
> > >> > > >> > > > from
> > >> Jewel
> > >> > > lib.
> > >> > > >> > > > I see the jewel.swc has the js.map files in the same way
> > >> > > >> > > > I
> > >> > > related,
> > >> > > >> so
> > >> > > >> > > > that's ok as you stated.
> > >> > > >> > > > I'm setting breakpoints in the same VSCode window for
> > >> > > >> > > > Jewel
> > >> and
> > >> > > TDJ
> > >> > > >> > > files,
> > >> > > >> > > > but only TDJ files (in the root or subfolders) are
> > >> > > >> > > > making
> > >> > > execution
> > >> > > >> > stop.
> > >> > > >> > > > If I set up a breakpoint in let's say Jewel Button.as,
> > >> > > >> > > > that
> > >> > > appears
> > >> > > >> > empty
> > >> > > >> > > > on execution and doesn't have effect, while TDJ appears
> > >> > > >> > > > red
> > >> and
> > >> > > >> works
> > >> > > >> > ok.
> > >> > > >> > > >
> > >> > > >> > > > Do you know what could be happening?
> > >> > > >> > > >
> > >> > > >> > > >
> > >> > > >> > > >
> > >> > > >> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> > >> > > >> > joshtynjala@bowlerhat.dev
> > >> > > >> > > >)
> > >> > > >> > > > escribió:
> > >> > > >> > > >
> > >> > > >> > > >> The path of the .js.map file is relative to the .js
> file.
> > >> > Since
> > >> > > >> the
> > >> > > >> > > >> .js.map file is supposed to be in the same folder as
> > >> > > >> > > >> the .js
> > >> > > file,
> > >> > > >> > that
> > >> > > >> > > >> looks correct to me.
> > >> > > >> > > >>
> > >> > > >> > > >> --
> > >> > > >> > > >> Josh Tynjala
> > >> > > >> > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > >> > > >> > > >>
> > >> > > >> > > >>
> > >> > > >> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> > >> > > >> > carlosrovira@apache.org>
> > >> > > >> > > >> wrote:
> > >> > > >> > > >>
> > >> > > >> > > >> > Hi Josh,
> > >> > > >> > > >> >
> > >> > > >> > > >> > I'm trying to debug jewel classes in TDJ and for
> > >> > > >> > > >> > example
> > >> > > >> > > >> AlertController.js
> > >> > > >> > > >> > has at the end:
> > >> > > >> > > >> >
> > >> > > >> > > >> > //# sourceMappingURL=./AlertController.js.map
> > >> > > >> > > >> >
> > >> > > >> > > >> > It's ok? I expect it to reference the concrete
> > subfolder:
> > >> > > >> > > >> > org/apache/royale/jewel/beads/controllers
> > >> > > >> > > >> >
> > >> > > >> > > >> >
> > >> > > >> > > >> >
> > >> > > >> > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> > >> > > >> > > >> joshtynjala@bowlerhat.dev>)
> > >> > > >> > > >> > escribió:
> > >> > > >> > > >> >
> > >> > > >> > > >> > > Yes, you're right that +royalelib should not be
> > >> > > >> > > >> > > required
> > >> > for
> > >> > > >> > > framework
> > >> > > >> > > >> > > libs. I wasn't paying close enough attention to see
> > >> > > >> > > >> > > that
> > >> > you
> > >> > > >> had
> > >> > > >> > > added
> > >> > > >> > > >> > > +royalelib to both Jewel and TDJ.
> > >> > > >> > > >> > >
> > >> > > >> > > >> > > So, to summarize, you should use
> > >> > > >> > > >> > > source-map-source-root
> > >> > when
> > >> > > >> > > building
> > >> > > >> > > >> > > framework libs, and you should use +royalelib when
> > >> building
> > >> > > >> > > >> > examples/apps.
> > >> > > >> > > >> > > +royalelib is not necessary for framework libs, and
> > >> > > >> > > >> > source-map-source-root
> > >> > > >> > > >> > > is (generally) not necessary for examples/apps.
> > >> > > >> > > >> > >
> > >> > > >> > > >> > > --
> > >> > > >> > > >> > > Josh Tynjala
> > >> > > >> > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >> > > >> > > >> > >
> > >> > > >> > > >> > >
> > >> > > >> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> > >> > > >> > > carlosrovira@apache.org
> > >> > > >> > > >> >
> > >> > > >> > > >> > > wrote:
> > >> > > >> > > >> > >
> > >> > > >> > > >> > > > Hi Josh,
> > >> > > >> > > >> > > >
> > >> > > >> > > >> > > > I discover right now that I was understanding
> > >> > > >> > > >> > > > wrong
> > >> how
> > >> > all
> > >> > > >> this
> > >> > > >> > > >> works.
> > >> > > >> > > >> > > > I thought we needed +royalelib in framework libs,
> > >> > > >> > > >> > > > but
> > >> > it's
> > >> > > >> not
> > >> > > >> > the
> > >> > > >> > > >> > case.
> > >> > > >> > > >> > > > Just need to add +royalelib to a final project,
> > >> > > >> > > >> > > > so
> > >> that
> > >> > can
> > >> > > >> be
> > >> > > >> > > left
> > >> > > >> > > >> to
> > >> > > >> > > >> > > the
> > >> > > >> > > >> > > > user.
> > >> > > >> > > >> > > >
> > >> > > >> > > >> > > > That means that we can add to all libs this:
> > >> > > >> > > >> > > >
> > >> > > >> -source-map-source-root=/frameworks/projects/XXX/target/
> > >> > > >> > > >> > > > (Where XXX is the root libraryfolder) -> For this
> > >> I'll be
> > >> > > >> adding
> > >> > > >> > > in
> > >> > > >> > > >> a
> > >> > > >> > > >> > > > commit soon
> > >> > > >> > > >> > > >
> > >> > > >> > > >> > > > So, Chris, we don't need anything more to
> > >> > > >> > > >> > > > implement,
> > >> as I
> > >> > > >> commit
> > >> > > >> > > the
> > >> > > >> > > >> > > > -source-map-source-root line in all framework
> poms.
> > >> > > >> > > >> > > >
> > >> > > >> > > >> > > > Another thing is if we should upload all source
> > >> > > >> > > >> > > > maps
> > >> > > (js.map
> > >> > > >> > > files)
> > >> > > >> > > >> of
> > >> > > >> > > >> > > all
> > >> > > >> > > >> > > > framework libs to some r.a.o url (for example
> > >> > > >> > > >> > > > /debug),
> > >> > and
> > >> > > if
> > >> > > >> > > people
> > >> > > >> > > >> > can
> > >> > > >> > > >> > > > point with +royalelib (i.e: +royalelib=
> > >> > > >> > > >> http://royale.apache.org/debug
> > >> > > >> > > >> > )
> > >> > > >> > > >> > > >
> > >> > > >> > > >> > > > What do you think?
> > >> > > >> > > >> > > >
> > >> > > >> > > >> > > >
> > >> > > >> > > >> > > >
> > >> > > >> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> > >> > > >> > > >> > joshtynjala@bowlerhat.dev
> > >> > > >> > > >> > > >)
> > >> > > >> > > >> > > > escribió:
> > >> > > >> > > >> > > >
> > >> > > >> > > >> > > > > While we can set source-map-source-root in all
> > >> > > >> > > >> > > > > of
> > >> the
> > >> > > >> library
> > >> > > >> > > >> > > projects, I
> > >> > > >> > > >> > > > > don't think that there's any way for us to
> > >> > > >> > > >> > > > > specify
> > >> > > >> +royalelib
> > >> > > >> > > for
> > >> > > >> > > >> TDJ
> > >> > > >> > > >> > > and
> > >> > > >> > > >> > > > > other examples in a general way. That's the one
> > >> thing
> > >> > > that
> > >> > > >> > users
> > >> > > >> > > >> will
> > >> > > >> > > >> > > > > probably need to set up manually because the
> > >> > > >> > > >> > > > > source
> > >> > files
> > >> > > >> come
> > >> > > >> > > >> from
> > >> > > >> > > >> > an
> > >> > > >> > > >> > > > > IDE-compatible SDK.
> > >> > > >> > > >> > > > >
> > >> > > >> > > >> > > > > --
> > >> > > >> > > >> > > > > Josh Tynjala
> > >> > > >> > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > >> > > >> > > >> > > > >
> > >> > > >> > > >> > > > >
> > >> > > >> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> > >> > > >> > > >> > carlosrovira@apache.org>
> > >> > > >> > > >> > > > > wrote:
> > >> > > >> > > >> > > > >
> > >> > > >> > > >> > > > > > 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-mave
> > >> > > +n
> > >> > > >> > > >> > > > > >
> > >> > > >> > > >> > > > > > 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
> > >> > > >> > > >> > > > > > (<
> > >> > > >> > > >> > > > carlosrovira@apache.org
> > >> > > >> > > >> > > > > >)
> > >> > > >> > > >> > > > > > escribió:
> > >> > > >> > > >> > > > > >
> > >> > > >> > > >> > > > > > > Hi Josh, Thanks! That worked and I finally
> > >> > > >> > > >> > > > > > > have
> > >> > > >> debugging
> > >> > > >> > > >> again!
> > >> > > >> > > >> > :D
> > >> > > >> > > >> > > > > > >
> > >> > > >> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh
> > >> > > >> > > >> > > > > > > Tynjala (<
> > >> > > >> > > >> > > > > joshtynjala@bowlerhat.dev
> > >> > > >> > > >> > > > > > >)
> > >> > > >> > > >> > > > > > > escribió:
> > >> > > >> > > >> > > > > > >
> > >> > > >> > > >> > > > > > >> Hey Carlos,
> > >> > > >> > > >> > > > > > >>
> > >> > > >> > > >> > > > > > >> Try using source-map-source-root with
> > >> > > >> > > >> > > > > > >> Jewel
> > >> only,
> > >> > > and
> > >> > > >> > omit
> > >> > > >> > > it
> > >> > > >> > > >> > from
> > >> > > >> > > >> > > > > TDJ.
> > >> > > >> > > >> > > > > > >>
> > >> > > >> > > >> > > > > > >> Jewel:
> > >> > > >> > > >> > > > > > >>
> > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > >> > > >> > > >> > > > > > >>
> > >> > > >> > > >> >
> > >> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > >> > > >> +aven
> > >> > > >> > > >> > > > > > >> -source-map=true;
> > >> > > >> > > >> > > > > > >>
> > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > >> > > >> > > >> > > > > > >>
> > >> > > >> > > >> > > > > > >> TDJ:
> > >> > > >> > > >> > > > > > >>
> > >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > >> > > >> > > >> > > > > > >>
> > >> > > >> > > >> >
> > >> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > >> > > >> +aven
> > >> > > >> > > >> > > > > > >> -source-map=true;
> > >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > >> > > >> > > >> > > > > > >>
> > >> > > >> > > >> > > > > > >> 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
> > >> > > >> > > >> > > > > > >> <https://bowlerhat.dev>
> > >> > > >> > > >> > > > > > >>
> > >> > > >> > > >> > > > > > >>
> > >> > > >> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos
> > >> > > >> > > >> > > > > > >> Rovira <
> > >> > > >> > > >> > > > carlosrovira@apache.org
> > >> > > >> > > >> > > > > >
> > >> > > >> > > >> > > > > > >> 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:
> > >> > > >> > > >> > > > > > >> >
> > >> > > >> > > >> > > > > > >> > <additionalCompilerOptions>
> > >> > > >> > > >> > > > > > >> >
> > >> > > >> > > >> > >
> > >> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > >> > > >> +aven
> > >> > > >> > > >> > > > > > >> > -source-map=true;
> > >> > > >> > > >> > > > > > >> >
> > >> > > -source-map-source-root=/frameworks/projects/Jewel/
> > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > >> > > >> > > >> > > > > > >> >
> > >> > > >> > > >> > > > > > >> > and in TDJ:
> > >> > > >> > > >> > > > > > >> >
> > >> > > >> > > >> > > > > > >> >
> > >> > > >> > > >> > >
> > >> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> > >> > > >> +aven
> > >> > > >> > > >> > > > > > >> > -source-map=true;
> > >> > > >> > > >> > > > > > >> >
> > >> > > -source-map-source-root=/examples/jewel/TourDeJewel
> > >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > >> > > >> > > >> > > > > > >> >
> > >> > > >> > > >> > > > > > >> > 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.dutz@c-ware.de>)
> > >> > > >> > > >> > > > > > >> > escribió:
> > >> > > >> > > >> > > > > > >> >
> > >> > > >> > > >> > > > > > >> >> Hi all,
> > >> > > >> > > >> > > > > > >> >>
> > >> > > >> > > >> > > > > > >> >> Sure, happy to help, but what exactly
> > >> > > >> > > >> > > > > > >> >> do you
> > >> > > need?
> > >> > > >> > > >> > > > > > >> >>
> > >> > > >> > > >> > > > > > >> >> Chris
> > >> > > >> > > >> > > > > > >> >> ------------------------------
> > >> > > >> > > >> > > > > > >> >> *Von:* Carlos Rovira <
> > >> carlosrovira@apache.org>
> > >> > > >> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021
> > >> > > >> > > >> > > > > > >> >> 23:23
> > >> > > >> > > >> > > > > > >> >> *An:* Josh Tynjala <
> > >> joshtynjala@bowlerhat.dev
> > >> > >;
> > >> > > >> > > >> Christofer
> > >> > > >> > > >> > > Dutz
> > >> > > >> > > >> > > > <
> > >> > > >> > > >> > > > > > >> >> christofer.dutz@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 (<
> > >> > > >> > > >> > > > > > >> joshtynjala@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/framewo
> > >> > > >> > > >> > > > > > >> >> +rks/
> > >> > > >> > > >> > > > > > >> >>
> > >> > > >> > > >> > > > > > >> >> 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 <
> > >> > > >> > > >> > > > > > carlosrovira@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:
> > >> > > >> > > >> > > > > > >> >>
> > >> > > >> > > >> > > > > > >> >> <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
> > >> > > >> > > >> > > > > > >> >>
> > >> > > >> > > >> > > > > > >> >>
> > >> > > >> > > >> > > > > > >> >
> > >> > > >> > > >> > > > > > >> > --
> > >> > > >> > > >> > > > > > >> > 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
> > >> > > >> > > >> > > > > >
> > >> > > >> > > >> > > > >
> > >> > > >> > > >> > > >
> > >> > > >> > > >> > > >
> > >> > > >> > > >> > > > --
> > >> > > >> > > >> > > > 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
> > >> > > >> > > >
> > >> > > >> > > >
> > >> > > >> > >
> > >> > > >> > > --
> > >> > > >> > > 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
> > >>
> > >
> >
>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>
Re: Configuring source maps on Royale with new compiler options
Posted by Carlos Rovira <ca...@apache.org>.
Hi Josh,
just tried your recommendations, but seems not to work.
I added to Jewel:
<additionalCompilerOptions>
-source-map=true;
-source-map-source-root=/frameworks/projects/Jewel/src/main/royale/
</additionalCompilerOptions>
and in TDJ just:
-source-map=true;
I added in my VSCode tasks the argument to compile TDJ
"args": [
"clean",
"install",
"-P option-with-swf",
"-Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks"
,
"-DskipTests"
]
setting a break point in jewel button is marked with an empty circle in
VSCode and doesn't stop, but TDJ works ok.
I think I followed your indications right, and also committed (but the
commit is more general since I added the config to frameworks/projects to
affect to all SWC libs at once). Maybe there's some detail that
is preventing it to work.
Thanks for your time and taking a look
Carlos
El jue, 14 ene 2021 a las 9:25, Maria Jose Esteve (<mj...@iest.com>)
escribió:
> Hi, It does not work for me.
> I have modified Jewel's pom.xml, main pom "/ projects /" and have modified
> my maven build to include the Droyalelib option with the path to my /
> frameworks directory, the result error.
> Do I have to modify something else ?, the sdk does not compile
>
> Thx
> Hiedra
>
> -----Mensaje original-----
> De: Josh Tynjala <jo...@bowlerhat.dev>
> Enviado el: jueves, 14 de enero de 2021 0:40
> Para: Apache Royale Development <de...@royale.apache.org>
> Asunto: Re: Configuring source maps on Royale with new compiler options
>
> Okay, I've determined a couple of tweaks to the process that made things
> work on my machine to allow source map debugging with Maven.
>
> The source-map-source-root for Jewel and other SDK libs must include
> src/main/royale/ at the end.
>
> <additionalCompilerOptions>
> -source-map=true;
> -source-map-source-root=/frameworks/projects/Jewel/src/main/royale/
> </additionalCompilerOptions>
>
> For TDJ and other apps, you only need the source-map option. Do NOT add
> source-map-source-root and do NOT add +royalelib.
>
> <additionalCompilerOptions>
> -source-map=true;
> </additionalCompilerOptions>
>
> Instead add an extra -Droyalelib option to your mvn command line. For
> example:
>
> mvn clean install
>
> -Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Wed, Jan 13, 2021 at 2:57 PM Josh Tynjala <jo...@bowlerhat.dev>
> wrote:
>
> > I just gave it a try myself, and it looks like the compiler is failing
> > to recognize the +royalelib token when you try to put it into Maven's
> > additionalCompilerOptions. As I implied, it was certainly possible
> > that this might or might not work.
> >
> > I'll let you know if I have another suggestion.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Sat, Jan 9, 2021 at 1:01 AM Carlos Rovira <ca...@apache.org>
> > wrote:
> >
> >> Hi Josh,
> >>
> >> Thanks for taking a look, I'll check maven distribution to see how to
> >> add the missing folder. It's strange since I think I was debugging
> >> against the Maven SDK until now.
> >>
> >> I made now a quick try with ANT SDK, after my daily build completed,
> >> with your latest changes from yesterday, and compiled TDJ with:
> >>
> >> +royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/framewor
> >> +ks
> >>
> >> to point to ANT instead to MAVEN, and the result was the same for
> >> royale ANT sdk: TDJ stops at breakpoints in VSCode but Jewel not. I
> >> thought that ANT SDK should work right, isn't?
> >>
> >> Thanks
> >>
> >>
> >>
> >>
> >> El vie, 8 ene 2021 a las 22:57, Greg Dove (<gr...@gmail.com>)
> >> escribió:
> >>
> >> > Thanks Josh, I guess there was still something cached at a
> >> > different
> >> level
> >> > in our local m2 that meant it was still working for Hiedra and me.
> >> > Nice sleuthing!
> >> >
> >> >
> >> > On Sat, Jan 9, 2021 at 10:43 AM Josh Tynjala
> >> > <joshtynjala@bowlerhat.dev
> >> >
> >> > wrote:
> >> >
> >> > > Following up, since I can now successfully build the Maven
> >> distribution
> >> > > again.
> >> > >
> >> > > I've confirmed that frameworks/projects is missing from a Maven
> >> > > distribution, like I had observed in the past. With that in mind,
> >> > > a
> >> Maven
> >> > > distribution cannot currently be referenced with +royalelib for
> >> > > sourcemap-enabled debugging with the original .as files.
> >> > >
> >> > > --
> >> > > Josh Tynjala
> >> > > Bowler Hat LLC <https://bowlerhat.dev>
> >> > >
> >> > >
> >> > > On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <
> >> joshtynjala@bowlerhat.dev>
> >> > > wrote:
> >> > >
> >> > > > Carlos, are you using a Maven distribution as your
> >> > > > IDE-compatible
> >> SDK?
> >> > > The
> >> > > > last time that I built one, I seem to recall that the
> >> > > > distribution
> >> did
> >> > > not
> >> > > > include the original .as source files. I don't know if that's
> >> > > > still
> >> the
> >> > > > case or not. I tried building a Maven distribution today to
> >> > > > check,
> >> but
> >> > > the
> >> > > > build fails due to the current compiler being on version 0.9.9
> >> > > > and
> >> the
> >> > > > framework still expecting 0.9.8.
> >> > > >
> >> > > > --
> >> > > > Josh Tynjala
> >> > > > Bowler Hat LLC <https://bowlerhat.dev>
> >> > > >
> >> > > >
> >> > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
> >> carlosrovira@apache.org
> >> > >
> >> > > > wrote:
> >> > > >
> >> > > >> Hi Josh,
> >> > > >>
> >> > > >> thanks, I added "frameworks" in TDJ +royalelib but seems it
> >> > > >> doesn't
> >> > have
> >> > > >> effect, stil debug TDJ but not classes in Jewel.
> >> > > >> Don't see what it could be :?
> >> > > >>
> >> > > >> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> >> > > joshtynjala@bowlerhat.dev
> >> > > >> >)
> >> > > >> escribió:
> >> > > >>
> >> > > >> > Looking over previous emails in this thread, it looks like
> >> > > >> > you
> >> > forgot
> >> > > to
> >> > > >> > add /frameworks at the end of the +royalelib path.
> >> > > >> >
> >> > > >> > You have:
> >> > > >> >
> >> > > >> >
> >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> >> > > >> >
> >> > > >> > It should be:
> >> > > >> >
> >> > > >> >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/fr
> >> +ameworks
> >> > > >> >
> >> > > >> > --
> >> > > >> > Josh Tynjala
> >> > > >> > Bowler Hat LLC <https://bowlerhat.dev>
> >> > > >> >
> >> > > >> >
> >> > > >> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> >> > > carlosrovira@apache.org>
> >> > > >> > wrote:
> >> > > >> >
> >> > > >> > > Hi,
> >> > > >> > >
> >> > > >> > > just fyi I added:
> >> > > >> > >
> >> > > >> > >
> >> > > >> >
> >> -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> >> > > >> > >
> >> > > >> > > at frameworks/projects/pom.xml so now we have setup source
> >> > > >> > > maps in all libraries
> >> > > >> > >
> >> > > >> > > but while that seems ok, I'm not getting lib debugging as
> >> > > >> > > I
> >> stated
> >> > > in
> >> > > >> my
> >> > > >> > > last email.
> >> > > >> > >
> >> > > >> > >
> >> > > >> > >
> >> > > >> > >
> >> > > >> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> >> > > >> carlosrovira@apache.org
> >> > > >> > >)
> >> > > >> > > escribió:
> >> > > >> > >
> >> > > >> > > > Ok Josh,
> >> > > >> > > >
> >> > > >> > > > so all seems ok, but debug is not working in classes
> >> > > >> > > > from
> >> Jewel
> >> > > lib.
> >> > > >> > > > I see the jewel.swc has the js.map files in the same way
> >> > > >> > > > I
> >> > > related,
> >> > > >> so
> >> > > >> > > > that's ok as you stated.
> >> > > >> > > > I'm setting breakpoints in the same VSCode window for
> >> > > >> > > > Jewel
> >> and
> >> > > TDJ
> >> > > >> > > files,
> >> > > >> > > > but only TDJ files (in the root or subfolders) are
> >> > > >> > > > making
> >> > > execution
> >> > > >> > stop.
> >> > > >> > > > If I set up a breakpoint in let's say Jewel Button.as,
> >> > > >> > > > that
> >> > > appears
> >> > > >> > empty
> >> > > >> > > > on execution and doesn't have effect, while TDJ appears
> >> > > >> > > > red
> >> and
> >> > > >> works
> >> > > >> > ok.
> >> > > >> > > >
> >> > > >> > > > Do you know what could be happening?
> >> > > >> > > >
> >> > > >> > > >
> >> > > >> > > >
> >> > > >> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> >> > > >> > joshtynjala@bowlerhat.dev
> >> > > >> > > >)
> >> > > >> > > > escribió:
> >> > > >> > > >
> >> > > >> > > >> The path of the .js.map file is relative to the .js file.
> >> > Since
> >> > > >> the
> >> > > >> > > >> .js.map file is supposed to be in the same folder as
> >> > > >> > > >> the .js
> >> > > file,
> >> > > >> > that
> >> > > >> > > >> looks correct to me.
> >> > > >> > > >>
> >> > > >> > > >> --
> >> > > >> > > >> Josh Tynjala
> >> > > >> > > >> Bowler Hat LLC <https://bowlerhat.dev>
> >> > > >> > > >>
> >> > > >> > > >>
> >> > > >> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> >> > > >> > carlosrovira@apache.org>
> >> > > >> > > >> wrote:
> >> > > >> > > >>
> >> > > >> > > >> > Hi Josh,
> >> > > >> > > >> >
> >> > > >> > > >> > I'm trying to debug jewel classes in TDJ and for
> >> > > >> > > >> > example
> >> > > >> > > >> AlertController.js
> >> > > >> > > >> > has at the end:
> >> > > >> > > >> >
> >> > > >> > > >> > //# sourceMappingURL=./AlertController.js.map
> >> > > >> > > >> >
> >> > > >> > > >> > It's ok? I expect it to reference the concrete
> subfolder:
> >> > > >> > > >> > org/apache/royale/jewel/beads/controllers
> >> > > >> > > >> >
> >> > > >> > > >> >
> >> > > >> > > >> >
> >> > > >> > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> >> > > >> > > >> joshtynjala@bowlerhat.dev>)
> >> > > >> > > >> > escribió:
> >> > > >> > > >> >
> >> > > >> > > >> > > Yes, you're right that +royalelib should not be
> >> > > >> > > >> > > required
> >> > for
> >> > > >> > > framework
> >> > > >> > > >> > > libs. I wasn't paying close enough attention to see
> >> > > >> > > >> > > that
> >> > you
> >> > > >> had
> >> > > >> > > added
> >> > > >> > > >> > > +royalelib to both Jewel and TDJ.
> >> > > >> > > >> > >
> >> > > >> > > >> > > So, to summarize, you should use
> >> > > >> > > >> > > source-map-source-root
> >> > when
> >> > > >> > > building
> >> > > >> > > >> > > framework libs, and you should use +royalelib when
> >> building
> >> > > >> > > >> > examples/apps.
> >> > > >> > > >> > > +royalelib is not necessary for framework libs, and
> >> > > >> > > >> > source-map-source-root
> >> > > >> > > >> > > is (generally) not necessary for examples/apps.
> >> > > >> > > >> > >
> >> > > >> > > >> > > --
> >> > > >> > > >> > > Josh Tynjala
> >> > > >> > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> >> > > >> > > >> > >
> >> > > >> > > >> > >
> >> > > >> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> >> > > >> > > carlosrovira@apache.org
> >> > > >> > > >> >
> >> > > >> > > >> > > wrote:
> >> > > >> > > >> > >
> >> > > >> > > >> > > > Hi Josh,
> >> > > >> > > >> > > >
> >> > > >> > > >> > > > I discover right now that I was understanding
> >> > > >> > > >> > > > wrong
> >> how
> >> > all
> >> > > >> this
> >> > > >> > > >> works.
> >> > > >> > > >> > > > I thought we needed +royalelib in framework libs,
> >> > > >> > > >> > > > but
> >> > it's
> >> > > >> not
> >> > > >> > the
> >> > > >> > > >> > case.
> >> > > >> > > >> > > > Just need to add +royalelib to a final project,
> >> > > >> > > >> > > > so
> >> that
> >> > can
> >> > > >> be
> >> > > >> > > left
> >> > > >> > > >> to
> >> > > >> > > >> > > the
> >> > > >> > > >> > > > user.
> >> > > >> > > >> > > >
> >> > > >> > > >> > > > That means that we can add to all libs this:
> >> > > >> > > >> > > >
> >> > > >> -source-map-source-root=/frameworks/projects/XXX/target/
> >> > > >> > > >> > > > (Where XXX is the root libraryfolder) -> For this
> >> I'll be
> >> > > >> adding
> >> > > >> > > in
> >> > > >> > > >> a
> >> > > >> > > >> > > > commit soon
> >> > > >> > > >> > > >
> >> > > >> > > >> > > > So, Chris, we don't need anything more to
> >> > > >> > > >> > > > implement,
> >> as I
> >> > > >> commit
> >> > > >> > > the
> >> > > >> > > >> > > > -source-map-source-root line in all framework poms.
> >> > > >> > > >> > > >
> >> > > >> > > >> > > > Another thing is if we should upload all source
> >> > > >> > > >> > > > maps
> >> > > (js.map
> >> > > >> > > files)
> >> > > >> > > >> of
> >> > > >> > > >> > > all
> >> > > >> > > >> > > > framework libs to some r.a.o url (for example
> >> > > >> > > >> > > > /debug),
> >> > and
> >> > > if
> >> > > >> > > people
> >> > > >> > > >> > can
> >> > > >> > > >> > > > point with +royalelib (i.e: +royalelib=
> >> > > >> > > >> http://royale.apache.org/debug
> >> > > >> > > >> > )
> >> > > >> > > >> > > >
> >> > > >> > > >> > > > What do you think?
> >> > > >> > > >> > > >
> >> > > >> > > >> > > >
> >> > > >> > > >> > > >
> >> > > >> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> >> > > >> > > >> > joshtynjala@bowlerhat.dev
> >> > > >> > > >> > > >)
> >> > > >> > > >> > > > escribió:
> >> > > >> > > >> > > >
> >> > > >> > > >> > > > > While we can set source-map-source-root in all
> >> > > >> > > >> > > > > of
> >> the
> >> > > >> library
> >> > > >> > > >> > > projects, I
> >> > > >> > > >> > > > > don't think that there's any way for us to
> >> > > >> > > >> > > > > specify
> >> > > >> +royalelib
> >> > > >> > > for
> >> > > >> > > >> TDJ
> >> > > >> > > >> > > and
> >> > > >> > > >> > > > > other examples in a general way. That's the one
> >> thing
> >> > > that
> >> > > >> > users
> >> > > >> > > >> will
> >> > > >> > > >> > > > > probably need to set up manually because the
> >> > > >> > > >> > > > > source
> >> > files
> >> > > >> come
> >> > > >> > > >> from
> >> > > >> > > >> > an
> >> > > >> > > >> > > > > IDE-compatible SDK.
> >> > > >> > > >> > > > >
> >> > > >> > > >> > > > > --
> >> > > >> > > >> > > > > Josh Tynjala
> >> > > >> > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> >> > > >> > > >> > > > >
> >> > > >> > > >> > > > >
> >> > > >> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> >> > > >> > > >> > carlosrovira@apache.org>
> >> > > >> > > >> > > > > wrote:
> >> > > >> > > >> > > > >
> >> > > >> > > >> > > > > > 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-mave
> >> > > +n
> >> > > >> > > >> > > > > >
> >> > > >> > > >> > > > > > 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
> >> > > >> > > >> > > > > > (<
> >> > > >> > > >> > > > carlosrovira@apache.org
> >> > > >> > > >> > > > > >)
> >> > > >> > > >> > > > > > escribió:
> >> > > >> > > >> > > > > >
> >> > > >> > > >> > > > > > > Hi Josh, Thanks! That worked and I finally
> >> > > >> > > >> > > > > > > have
> >> > > >> debugging
> >> > > >> > > >> again!
> >> > > >> > > >> > :D
> >> > > >> > > >> > > > > > >
> >> > > >> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh
> >> > > >> > > >> > > > > > > Tynjala (<
> >> > > >> > > >> > > > > joshtynjala@bowlerhat.dev
> >> > > >> > > >> > > > > > >)
> >> > > >> > > >> > > > > > > escribió:
> >> > > >> > > >> > > > > > >
> >> > > >> > > >> > > > > > >> Hey Carlos,
> >> > > >> > > >> > > > > > >>
> >> > > >> > > >> > > > > > >> Try using source-map-source-root with
> >> > > >> > > >> > > > > > >> Jewel
> >> only,
> >> > > and
> >> > > >> > omit
> >> > > >> > > it
> >> > > >> > > >> > from
> >> > > >> > > >> > > > > TDJ.
> >> > > >> > > >> > > > > > >>
> >> > > >> > > >> > > > > > >> Jewel:
> >> > > >> > > >> > > > > > >>
> >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> >> > > >> > > >> > > > > > >>
> >> > > >> > > >> >
> >> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> >> > > >> +aven
> >> > > >> > > >> > > > > > >> -source-map=true;
> >> > > >> > > >> > > > > > >>
> >> > -source-map-source-root=/frameworks/projects/Jewel/
> >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> >> > > >> > > >> > > > > > >>
> >> > > >> > > >> > > > > > >> TDJ:
> >> > > >> > > >> > > > > > >>
> >> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> >> > > >> > > >> > > > > > >>
> >> > > >> > > >> >
> >> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> >> > > >> +aven
> >> > > >> > > >> > > > > > >> -source-map=true;
> >> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> >> > > >> > > >> > > > > > >>
> >> > > >> > > >> > > > > > >> 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
> >> > > >> > > >> > > > > > >> <https://bowlerhat.dev>
> >> > > >> > > >> > > > > > >>
> >> > > >> > > >> > > > > > >>
> >> > > >> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos
> >> > > >> > > >> > > > > > >> Rovira <
> >> > > >> > > >> > > > carlosrovira@apache.org
> >> > > >> > > >> > > > > >
> >> > > >> > > >> > > > > > >> 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:
> >> > > >> > > >> > > > > > >> >
> >> > > >> > > >> > > > > > >> > <additionalCompilerOptions>
> >> > > >> > > >> > > > > > >> >
> >> > > >> > > >> > >
> >> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> >> > > >> +aven
> >> > > >> > > >> > > > > > >> > -source-map=true;
> >> > > >> > > >> > > > > > >> >
> >> > > -source-map-source-root=/frameworks/projects/Jewel/
> >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> >> > > >> > > >> > > > > > >> >
> >> > > >> > > >> > > > > > >> > and in TDJ:
> >> > > >> > > >> > > > > > >> >
> >> > > >> > > >> > > > > > >> >
> >> > > >> > > >> > >
> >> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
> >> > > >> +aven
> >> > > >> > > >> > > > > > >> > -source-map=true;
> >> > > >> > > >> > > > > > >> >
> >> > > -source-map-source-root=/examples/jewel/TourDeJewel
> >> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> >> > > >> > > >> > > > > > >> >
> >> > > >> > > >> > > > > > >> > 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.dutz@c-ware.de>)
> >> > > >> > > >> > > > > > >> > escribió:
> >> > > >> > > >> > > > > > >> >
> >> > > >> > > >> > > > > > >> >> Hi all,
> >> > > >> > > >> > > > > > >> >>
> >> > > >> > > >> > > > > > >> >> Sure, happy to help, but what exactly
> >> > > >> > > >> > > > > > >> >> do you
> >> > > need?
> >> > > >> > > >> > > > > > >> >>
> >> > > >> > > >> > > > > > >> >> Chris
> >> > > >> > > >> > > > > > >> >> ------------------------------
> >> > > >> > > >> > > > > > >> >> *Von:* Carlos Rovira <
> >> carlosrovira@apache.org>
> >> > > >> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021
> >> > > >> > > >> > > > > > >> >> 23:23
> >> > > >> > > >> > > > > > >> >> *An:* Josh Tynjala <
> >> joshtynjala@bowlerhat.dev
> >> > >;
> >> > > >> > > >> Christofer
> >> > > >> > > >> > > Dutz
> >> > > >> > > >> > > > <
> >> > > >> > > >> > > > > > >> >> christofer.dutz@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 (<
> >> > > >> > > >> > > > > > >> joshtynjala@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/framewo
> >> > > >> > > >> > > > > > >> >> +rks/
> >> > > >> > > >> > > > > > >> >>
> >> > > >> > > >> > > > > > >> >> 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 <
> >> > > >> > > >> > > > > > carlosrovira@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:
> >> > > >> > > >> > > > > > >> >>
> >> > > >> > > >> > > > > > >> >> <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
> >> > > >> > > >> > > > > > >> >>
> >> > > >> > > >> > > > > > >> >>
> >> > > >> > > >> > > > > > >> >
> >> > > >> > > >> > > > > > >> > --
> >> > > >> > > >> > > > > > >> > 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
> >> > > >> > > >> > > > > >
> >> > > >> > > >> > > > >
> >> > > >> > > >> > > >
> >> > > >> > > >> > > >
> >> > > >> > > >> > > > --
> >> > > >> > > >> > > > 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
> >> > > >> > > >
> >> > > >> > > >
> >> > > >> > >
> >> > > >> > > --
> >> > > >> > > 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
> >>
> >
>
--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira
RE: Configuring source maps on Royale with new compiler options
Posted by Maria Jose Esteve <mj...@iest.com>.
Hi, It does not work for me.
I have modified Jewel's pom.xml, main pom "/ projects /" and have modified my maven build to include the Droyalelib option with the path to my / frameworks directory, the result error.
Do I have to modify something else ?, the sdk does not compile
Thx
Hiedra
-----Mensaje original-----
De: Josh Tynjala <jo...@bowlerhat.dev>
Enviado el: jueves, 14 de enero de 2021 0:40
Para: Apache Royale Development <de...@royale.apache.org>
Asunto: Re: Configuring source maps on Royale with new compiler options
Okay, I've determined a couple of tweaks to the process that made things work on my machine to allow source map debugging with Maven.
The source-map-source-root for Jewel and other SDK libs must include src/main/royale/ at the end.
<additionalCompilerOptions>
-source-map=true;
-source-map-source-root=/frameworks/projects/Jewel/src/main/royale/
</additionalCompilerOptions>
For TDJ and other apps, you only need the source-map option. Do NOT add source-map-source-root and do NOT add +royalelib.
<additionalCompilerOptions>
-source-map=true;
</additionalCompilerOptions>
Instead add an extra -Droyalelib option to your mvn command line. For
example:
mvn clean install
-Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Wed, Jan 13, 2021 at 2:57 PM Josh Tynjala <jo...@bowlerhat.dev>
wrote:
> I just gave it a try myself, and it looks like the compiler is failing
> to recognize the +royalelib token when you try to put it into Maven's
> additionalCompilerOptions. As I implied, it was certainly possible
> that this might or might not work.
>
> I'll let you know if I have another suggestion.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Sat, Jan 9, 2021 at 1:01 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
>> Hi Josh,
>>
>> Thanks for taking a look, I'll check maven distribution to see how to
>> add the missing folder. It's strange since I think I was debugging
>> against the Maven SDK until now.
>>
>> I made now a quick try with ANT SDK, after my daily build completed,
>> with your latest changes from yesterday, and compiled TDJ with:
>>
>> +royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/framewor
>> +ks
>>
>> to point to ANT instead to MAVEN, and the result was the same for
>> royale ANT sdk: TDJ stops at breakpoints in VSCode but Jewel not. I
>> thought that ANT SDK should work right, isn't?
>>
>> Thanks
>>
>>
>>
>>
>> El vie, 8 ene 2021 a las 22:57, Greg Dove (<gr...@gmail.com>)
>> escribió:
>>
>> > Thanks Josh, I guess there was still something cached at a
>> > different
>> level
>> > in our local m2 that meant it was still working for Hiedra and me.
>> > Nice sleuthing!
>> >
>> >
>> > On Sat, Jan 9, 2021 at 10:43 AM Josh Tynjala
>> > <joshtynjala@bowlerhat.dev
>> >
>> > wrote:
>> >
>> > > Following up, since I can now successfully build the Maven
>> distribution
>> > > again.
>> > >
>> > > I've confirmed that frameworks/projects is missing from a Maven
>> > > distribution, like I had observed in the past. With that in mind,
>> > > a
>> Maven
>> > > distribution cannot currently be referenced with +royalelib for
>> > > sourcemap-enabled debugging with the original .as files.
>> > >
>> > > --
>> > > Josh Tynjala
>> > > Bowler Hat LLC <https://bowlerhat.dev>
>> > >
>> > >
>> > > On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <
>> joshtynjala@bowlerhat.dev>
>> > > wrote:
>> > >
>> > > > Carlos, are you using a Maven distribution as your
>> > > > IDE-compatible
>> SDK?
>> > > The
>> > > > last time that I built one, I seem to recall that the
>> > > > distribution
>> did
>> > > not
>> > > > include the original .as source files. I don't know if that's
>> > > > still
>> the
>> > > > case or not. I tried building a Maven distribution today to
>> > > > check,
>> but
>> > > the
>> > > > build fails due to the current compiler being on version 0.9.9
>> > > > and
>> the
>> > > > framework still expecting 0.9.8.
>> > > >
>> > > > --
>> > > > Josh Tynjala
>> > > > Bowler Hat LLC <https://bowlerhat.dev>
>> > > >
>> > > >
>> > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
>> carlosrovira@apache.org
>> > >
>> > > > wrote:
>> > > >
>> > > >> Hi Josh,
>> > > >>
>> > > >> thanks, I added "frameworks" in TDJ +royalelib but seems it
>> > > >> doesn't
>> > have
>> > > >> effect, stil debug TDJ but not classes in Jewel.
>> > > >> Don't see what it could be :?
>> > > >>
>> > > >> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
>> > > joshtynjala@bowlerhat.dev
>> > > >> >)
>> > > >> escribió:
>> > > >>
>> > > >> > Looking over previous emails in this thread, it looks like
>> > > >> > you
>> > forgot
>> > > to
>> > > >> > add /frameworks at the end of the +royalelib path.
>> > > >> >
>> > > >> > You have:
>> > > >> >
>> > > >> >
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > >> >
>> > > >> > It should be:
>> > > >> >
>> > > >> >
>> > > >> >
>> > > >>
>> > >
>> >
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/fr
>> +ameworks
>> > > >> >
>> > > >> > --
>> > > >> > Josh Tynjala
>> > > >> > Bowler Hat LLC <https://bowlerhat.dev>
>> > > >> >
>> > > >> >
>> > > >> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
>> > > carlosrovira@apache.org>
>> > > >> > wrote:
>> > > >> >
>> > > >> > > Hi,
>> > > >> > >
>> > > >> > > just fyi I added:
>> > > >> > >
>> > > >> > >
>> > > >> >
>> -source-map-source-root=/frameworks/projects/{$project.artifactId}/
>> > > >> > >
>> > > >> > > at frameworks/projects/pom.xml so now we have setup source
>> > > >> > > maps in all libraries
>> > > >> > >
>> > > >> > > but while that seems ok, I'm not getting lib debugging as
>> > > >> > > I
>> stated
>> > > in
>> > > >> my
>> > > >> > > last email.
>> > > >> > >
>> > > >> > >
>> > > >> > >
>> > > >> > >
>> > > >> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
>> > > >> carlosrovira@apache.org
>> > > >> > >)
>> > > >> > > escribió:
>> > > >> > >
>> > > >> > > > Ok Josh,
>> > > >> > > >
>> > > >> > > > so all seems ok, but debug is not working in classes
>> > > >> > > > from
>> Jewel
>> > > lib.
>> > > >> > > > I see the jewel.swc has the js.map files in the same way
>> > > >> > > > I
>> > > related,
>> > > >> so
>> > > >> > > > that's ok as you stated.
>> > > >> > > > I'm setting breakpoints in the same VSCode window for
>> > > >> > > > Jewel
>> and
>> > > TDJ
>> > > >> > > files,
>> > > >> > > > but only TDJ files (in the root or subfolders) are
>> > > >> > > > making
>> > > execution
>> > > >> > stop.
>> > > >> > > > If I set up a breakpoint in let's say Jewel Button.as,
>> > > >> > > > that
>> > > appears
>> > > >> > empty
>> > > >> > > > on execution and doesn't have effect, while TDJ appears
>> > > >> > > > red
>> and
>> > > >> works
>> > > >> > ok.
>> > > >> > > >
>> > > >> > > > Do you know what could be happening?
>> > > >> > > >
>> > > >> > > >
>> > > >> > > >
>> > > >> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
>> > > >> > joshtynjala@bowlerhat.dev
>> > > >> > > >)
>> > > >> > > > escribió:
>> > > >> > > >
>> > > >> > > >> The path of the .js.map file is relative to the .js file.
>> > Since
>> > > >> the
>> > > >> > > >> .js.map file is supposed to be in the same folder as
>> > > >> > > >> the .js
>> > > file,
>> > > >> > that
>> > > >> > > >> looks correct to me.
>> > > >> > > >>
>> > > >> > > >> --
>> > > >> > > >> Josh Tynjala
>> > > >> > > >> Bowler Hat LLC <https://bowlerhat.dev>
>> > > >> > > >>
>> > > >> > > >>
>> > > >> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
>> > > >> > carlosrovira@apache.org>
>> > > >> > > >> wrote:
>> > > >> > > >>
>> > > >> > > >> > Hi Josh,
>> > > >> > > >> >
>> > > >> > > >> > I'm trying to debug jewel classes in TDJ and for
>> > > >> > > >> > example
>> > > >> > > >> AlertController.js
>> > > >> > > >> > has at the end:
>> > > >> > > >> >
>> > > >> > > >> > //# sourceMappingURL=./AlertController.js.map
>> > > >> > > >> >
>> > > >> > > >> > It's ok? I expect it to reference the concrete subfolder:
>> > > >> > > >> > org/apache/royale/jewel/beads/controllers
>> > > >> > > >> >
>> > > >> > > >> >
>> > > >> > > >> >
>> > > >> > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
>> > > >> > > >> joshtynjala@bowlerhat.dev>)
>> > > >> > > >> > escribió:
>> > > >> > > >> >
>> > > >> > > >> > > Yes, you're right that +royalelib should not be
>> > > >> > > >> > > required
>> > for
>> > > >> > > framework
>> > > >> > > >> > > libs. I wasn't paying close enough attention to see
>> > > >> > > >> > > that
>> > you
>> > > >> had
>> > > >> > > added
>> > > >> > > >> > > +royalelib to both Jewel and TDJ.
>> > > >> > > >> > >
>> > > >> > > >> > > So, to summarize, you should use
>> > > >> > > >> > > source-map-source-root
>> > when
>> > > >> > > building
>> > > >> > > >> > > framework libs, and you should use +royalelib when
>> building
>> > > >> > > >> > examples/apps.
>> > > >> > > >> > > +royalelib is not necessary for framework libs, and
>> > > >> > > >> > source-map-source-root
>> > > >> > > >> > > is (generally) not necessary for examples/apps.
>> > > >> > > >> > >
>> > > >> > > >> > > --
>> > > >> > > >> > > Josh Tynjala
>> > > >> > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
>> > > >> > > >> > >
>> > > >> > > >> > >
>> > > >> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
>> > > >> > > carlosrovira@apache.org
>> > > >> > > >> >
>> > > >> > > >> > > wrote:
>> > > >> > > >> > >
>> > > >> > > >> > > > Hi Josh,
>> > > >> > > >> > > >
>> > > >> > > >> > > > I discover right now that I was understanding
>> > > >> > > >> > > > wrong
>> how
>> > all
>> > > >> this
>> > > >> > > >> works.
>> > > >> > > >> > > > I thought we needed +royalelib in framework libs,
>> > > >> > > >> > > > but
>> > it's
>> > > >> not
>> > > >> > the
>> > > >> > > >> > case.
>> > > >> > > >> > > > Just need to add +royalelib to a final project,
>> > > >> > > >> > > > so
>> that
>> > can
>> > > >> be
>> > > >> > > left
>> > > >> > > >> to
>> > > >> > > >> > > the
>> > > >> > > >> > > > user.
>> > > >> > > >> > > >
>> > > >> > > >> > > > That means that we can add to all libs this:
>> > > >> > > >> > > >
>> > > >> -source-map-source-root=/frameworks/projects/XXX/target/
>> > > >> > > >> > > > (Where XXX is the root libraryfolder) -> For this
>> I'll be
>> > > >> adding
>> > > >> > > in
>> > > >> > > >> a
>> > > >> > > >> > > > commit soon
>> > > >> > > >> > > >
>> > > >> > > >> > > > So, Chris, we don't need anything more to
>> > > >> > > >> > > > implement,
>> as I
>> > > >> commit
>> > > >> > > the
>> > > >> > > >> > > > -source-map-source-root line in all framework poms.
>> > > >> > > >> > > >
>> > > >> > > >> > > > Another thing is if we should upload all source
>> > > >> > > >> > > > maps
>> > > (js.map
>> > > >> > > files)
>> > > >> > > >> of
>> > > >> > > >> > > all
>> > > >> > > >> > > > framework libs to some r.a.o url (for example
>> > > >> > > >> > > > /debug),
>> > and
>> > > if
>> > > >> > > people
>> > > >> > > >> > can
>> > > >> > > >> > > > point with +royalelib (i.e: +royalelib=
>> > > >> > > >> http://royale.apache.org/debug
>> > > >> > > >> > )
>> > > >> > > >> > > >
>> > > >> > > >> > > > What do you think?
>> > > >> > > >> > > >
>> > > >> > > >> > > >
>> > > >> > > >> > > >
>> > > >> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
>> > > >> > > >> > joshtynjala@bowlerhat.dev
>> > > >> > > >> > > >)
>> > > >> > > >> > > > escribió:
>> > > >> > > >> > > >
>> > > >> > > >> > > > > While we can set source-map-source-root in all
>> > > >> > > >> > > > > of
>> the
>> > > >> library
>> > > >> > > >> > > projects, I
>> > > >> > > >> > > > > don't think that there's any way for us to
>> > > >> > > >> > > > > specify
>> > > >> +royalelib
>> > > >> > > for
>> > > >> > > >> TDJ
>> > > >> > > >> > > and
>> > > >> > > >> > > > > other examples in a general way. That's the one
>> thing
>> > > that
>> > > >> > users
>> > > >> > > >> will
>> > > >> > > >> > > > > probably need to set up manually because the
>> > > >> > > >> > > > > source
>> > files
>> > > >> come
>> > > >> > > >> from
>> > > >> > > >> > an
>> > > >> > > >> > > > > IDE-compatible SDK.
>> > > >> > > >> > > > >
>> > > >> > > >> > > > > --
>> > > >> > > >> > > > > Josh Tynjala
>> > > >> > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
>> > > >> > > >> > > > >
>> > > >> > > >> > > > >
>> > > >> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
>> > > >> > > >> > carlosrovira@apache.org>
>> > > >> > > >> > > > > wrote:
>> > > >> > > >> > > > >
>> > > >> > > >> > > > > > 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-mave
>> > > +n
>> > > >> > > >> > > > > >
>> > > >> > > >> > > > > > 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
>> > > >> > > >> > > > > > (<
>> > > >> > > >> > > > carlosrovira@apache.org
>> > > >> > > >> > > > > >)
>> > > >> > > >> > > > > > escribió:
>> > > >> > > >> > > > > >
>> > > >> > > >> > > > > > > Hi Josh, Thanks! That worked and I finally
>> > > >> > > >> > > > > > > have
>> > > >> debugging
>> > > >> > > >> again!
>> > > >> > > >> > :D
>> > > >> > > >> > > > > > >
>> > > >> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh
>> > > >> > > >> > > > > > > Tynjala (<
>> > > >> > > >> > > > > joshtynjala@bowlerhat.dev
>> > > >> > > >> > > > > > >)
>> > > >> > > >> > > > > > > escribió:
>> > > >> > > >> > > > > > >
>> > > >> > > >> > > > > > >> Hey Carlos,
>> > > >> > > >> > > > > > >>
>> > > >> > > >> > > > > > >> Try using source-map-source-root with
>> > > >> > > >> > > > > > >> Jewel
>> only,
>> > > and
>> > > >> > omit
>> > > >> > > it
>> > > >> > > >> > from
>> > > >> > > >> > > > > TDJ.
>> > > >> > > >> > > > > > >>
>> > > >> > > >> > > > > > >> Jewel:
>> > > >> > > >> > > > > > >>
>> > > >> > > >> > > > > > >> <additionalCompilerOptions>
>> > > >> > > >> > > > > > >>
>> > > >> > > >> >
>> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
>> > > >> +aven
>> > > >> > > >> > > > > > >> -source-map=true;
>> > > >> > > >> > > > > > >>
>> > -source-map-source-root=/frameworks/projects/Jewel/
>> > > >> > > >> > > > > > >> </additionalCompilerOptions>
>> > > >> > > >> > > > > > >>
>> > > >> > > >> > > > > > >> TDJ:
>> > > >> > > >> > > > > > >>
>> > > >> > > >> > > > > > >> <additionalCompilerOptions>
>> > > >> > > >> > > > > > >>
>> > > >> > > >> >
>> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
>> > > >> +aven
>> > > >> > > >> > > > > > >> -source-map=true;
>> > > >> > > >> > > > > > >> </additionalCompilerOptions>
>> > > >> > > >> > > > > > >>
>> > > >> > > >> > > > > > >> 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
>> > > >> > > >> > > > > > >> <https://bowlerhat.dev>
>> > > >> > > >> > > > > > >>
>> > > >> > > >> > > > > > >>
>> > > >> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos
>> > > >> > > >> > > > > > >> Rovira <
>> > > >> > > >> > > > carlosrovira@apache.org
>> > > >> > > >> > > > > >
>> > > >> > > >> > > > > > >> 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:
>> > > >> > > >> > > > > > >> >
>> > > >> > > >> > > > > > >> > <additionalCompilerOptions>
>> > > >> > > >> > > > > > >> >
>> > > >> > > >> > >
>> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
>> > > >> +aven
>> > > >> > > >> > > > > > >> > -source-map=true;
>> > > >> > > >> > > > > > >> >
>> > > -source-map-source-root=/frameworks/projects/Jewel/
>> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
>> > > >> > > >> > > > > > >> >
>> > > >> > > >> > > > > > >> > and in TDJ:
>> > > >> > > >> > > > > > >> >
>> > > >> > > >> > > > > > >> >
>> > > >> > > >> > >
>> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m
>> > > >> +aven
>> > > >> > > >> > > > > > >> > -source-map=true;
>> > > >> > > >> > > > > > >> >
>> > > -source-map-source-root=/examples/jewel/TourDeJewel
>> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
>> > > >> > > >> > > > > > >> >
>> > > >> > > >> > > > > > >> > 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.dutz@c-ware.de>)
>> > > >> > > >> > > > > > >> > escribió:
>> > > >> > > >> > > > > > >> >
>> > > >> > > >> > > > > > >> >> Hi all,
>> > > >> > > >> > > > > > >> >>
>> > > >> > > >> > > > > > >> >> Sure, happy to help, but what exactly
>> > > >> > > >> > > > > > >> >> do you
>> > > need?
>> > > >> > > >> > > > > > >> >>
>> > > >> > > >> > > > > > >> >> Chris
>> > > >> > > >> > > > > > >> >> ------------------------------
>> > > >> > > >> > > > > > >> >> *Von:* Carlos Rovira <
>> carlosrovira@apache.org>
>> > > >> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021
>> > > >> > > >> > > > > > >> >> 23:23
>> > > >> > > >> > > > > > >> >> *An:* Josh Tynjala <
>> joshtynjala@bowlerhat.dev
>> > >;
>> > > >> > > >> Christofer
>> > > >> > > >> > > Dutz
>> > > >> > > >> > > > <
>> > > >> > > >> > > > > > >> >> christofer.dutz@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 (<
>> > > >> > > >> > > > > > >> joshtynjala@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/framewo
>> > > >> > > >> > > > > > >> >> +rks/
>> > > >> > > >> > > > > > >> >>
>> > > >> > > >> > > > > > >> >> 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 <
>> > > >> > > >> > > > > > carlosrovira@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:
>> > > >> > > >> > > > > > >> >>
>> > > >> > > >> > > > > > >> >> <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
>> > > >> > > >> > > > > > >> >>
>> > > >> > > >> > > > > > >> >>
>> > > >> > > >> > > > > > >> >
>> > > >> > > >> > > > > > >> > --
>> > > >> > > >> > > > > > >> > 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
>> > > >> > > >> > > > > >
>> > > >> > > >> > > > >
>> > > >> > > >> > > >
>> > > >> > > >> > > >
>> > > >> > > >> > > > --
>> > > >> > > >> > > > 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
>> > > >> > > >
>> > > >> > > >
>> > > >> > >
>> > > >> > > --
>> > > >> > > 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
>>
>
Re: Configuring source maps on Royale with new compiler options
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
Okay, I've determined a couple of tweaks to the process that made things
work on my machine to allow source map debugging with Maven.
The source-map-source-root for Jewel and other SDK libs must include
src/main/royale/ at the end.
<additionalCompilerOptions>
-source-map=true;
-source-map-source-root=/frameworks/projects/Jewel/src/main/royale/
</additionalCompilerOptions>
For TDJ and other apps, you only need the source-map option. Do NOT add
source-map-source-root and do NOT add +royalelib.
<additionalCompilerOptions>
-source-map=true;
</additionalCompilerOptions>
Instead add an extra -Droyalelib option to your mvn command line. For
example:
mvn clean install
-Droyalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Wed, Jan 13, 2021 at 2:57 PM Josh Tynjala <jo...@bowlerhat.dev>
wrote:
> I just gave it a try myself, and it looks like the compiler is failing to
> recognize the +royalelib token when you try to put it into Maven's
> additionalCompilerOptions. As I implied, it was certainly possible that
> this might or might not work.
>
> I'll let you know if I have another suggestion.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Sat, Jan 9, 2021 at 1:01 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
>> Hi Josh,
>>
>> Thanks for taking a look, I'll check maven distribution to see how to add
>> the missing folder. It's strange since I think I was debugging against the
>> Maven SDK until now.
>>
>> I made now a quick try with ANT SDK, after my daily build completed, with
>> your latest changes from yesterday, and compiled TDJ with:
>>
>> +royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/frameworks
>>
>> to point to ANT instead to MAVEN, and the result was the same for royale
>> ANT sdk: TDJ stops at breakpoints in VSCode but Jewel not. I thought that
>> ANT SDK should work right, isn't?
>>
>> Thanks
>>
>>
>>
>>
>> El vie, 8 ene 2021 a las 22:57, Greg Dove (<gr...@gmail.com>)
>> escribió:
>>
>> > Thanks Josh, I guess there was still something cached at a different
>> level
>> > in our local m2 that meant it was still working for Hiedra and me. Nice
>> > sleuthing!
>> >
>> >
>> > On Sat, Jan 9, 2021 at 10:43 AM Josh Tynjala <joshtynjala@bowlerhat.dev
>> >
>> > wrote:
>> >
>> > > Following up, since I can now successfully build the Maven
>> distribution
>> > > again.
>> > >
>> > > I've confirmed that frameworks/projects is missing from a Maven
>> > > distribution, like I had observed in the past. With that in mind, a
>> Maven
>> > > distribution cannot currently be referenced with +royalelib for
>> > > sourcemap-enabled debugging with the original .as files.
>> > >
>> > > --
>> > > Josh Tynjala
>> > > Bowler Hat LLC <https://bowlerhat.dev>
>> > >
>> > >
>> > > On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <
>> joshtynjala@bowlerhat.dev>
>> > > wrote:
>> > >
>> > > > Carlos, are you using a Maven distribution as your IDE-compatible
>> SDK?
>> > > The
>> > > > last time that I built one, I seem to recall that the distribution
>> did
>> > > not
>> > > > include the original .as source files. I don't know if that's still
>> the
>> > > > case or not. I tried building a Maven distribution today to check,
>> but
>> > > the
>> > > > build fails due to the current compiler being on version 0.9.9 and
>> the
>> > > > framework still expecting 0.9.8.
>> > > >
>> > > > --
>> > > > Josh Tynjala
>> > > > Bowler Hat LLC <https://bowlerhat.dev>
>> > > >
>> > > >
>> > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
>> carlosrovira@apache.org
>> > >
>> > > > wrote:
>> > > >
>> > > >> Hi Josh,
>> > > >>
>> > > >> thanks, I added "frameworks" in TDJ +royalelib but seems it doesn't
>> > have
>> > > >> effect, stil debug TDJ but not classes in Jewel.
>> > > >> Don't see what it could be :?
>> > > >>
>> > > >> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
>> > > joshtynjala@bowlerhat.dev
>> > > >> >)
>> > > >> escribió:
>> > > >>
>> > > >> > Looking over previous emails in this thread, it looks like you
>> > forgot
>> > > to
>> > > >> > add /frameworks at the end of the +royalelib path.
>> > > >> >
>> > > >> > You have:
>> > > >> >
>> > > >> >
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > >> >
>> > > >> > It should be:
>> > > >> >
>> > > >> >
>> > > >> >
>> > > >>
>> > >
>> >
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
>> > > >> >
>> > > >> > --
>> > > >> > Josh Tynjala
>> > > >> > Bowler Hat LLC <https://bowlerhat.dev>
>> > > >> >
>> > > >> >
>> > > >> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
>> > > carlosrovira@apache.org>
>> > > >> > wrote:
>> > > >> >
>> > > >> > > Hi,
>> > > >> > >
>> > > >> > > just fyi I added:
>> > > >> > >
>> > > >> > >
>> > > >> >
>> -source-map-source-root=/frameworks/projects/{$project.artifactId}/
>> > > >> > >
>> > > >> > > at frameworks/projects/pom.xml
>> > > >> > > so now we have setup source maps in all libraries
>> > > >> > >
>> > > >> > > but while that seems ok, I'm not getting lib debugging as I
>> stated
>> > > in
>> > > >> my
>> > > >> > > last email.
>> > > >> > >
>> > > >> > >
>> > > >> > >
>> > > >> > >
>> > > >> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
>> > > >> carlosrovira@apache.org
>> > > >> > >)
>> > > >> > > escribió:
>> > > >> > >
>> > > >> > > > Ok Josh,
>> > > >> > > >
>> > > >> > > > so all seems ok, but debug is not working in classes from
>> Jewel
>> > > lib.
>> > > >> > > > I see the jewel.swc has the js.map files in the same way I
>> > > related,
>> > > >> so
>> > > >> > > > that's ok as you stated.
>> > > >> > > > I'm setting breakpoints in the same VSCode window for Jewel
>> and
>> > > TDJ
>> > > >> > > files,
>> > > >> > > > but only TDJ files (in the root or subfolders) are making
>> > > execution
>> > > >> > stop.
>> > > >> > > > If I set up a breakpoint in let's say Jewel Button.as, that
>> > > appears
>> > > >> > empty
>> > > >> > > > on execution and doesn't have effect, while TDJ appears red
>> and
>> > > >> works
>> > > >> > ok.
>> > > >> > > >
>> > > >> > > > Do you know what could be happening?
>> > > >> > > >
>> > > >> > > >
>> > > >> > > >
>> > > >> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
>> > > >> > joshtynjala@bowlerhat.dev
>> > > >> > > >)
>> > > >> > > > escribió:
>> > > >> > > >
>> > > >> > > >> The path of the .js.map file is relative to the .js file.
>> > Since
>> > > >> the
>> > > >> > > >> .js.map file is supposed to be in the same folder as the .js
>> > > file,
>> > > >> > that
>> > > >> > > >> looks correct to me.
>> > > >> > > >>
>> > > >> > > >> --
>> > > >> > > >> Josh Tynjala
>> > > >> > > >> Bowler Hat LLC <https://bowlerhat.dev>
>> > > >> > > >>
>> > > >> > > >>
>> > > >> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
>> > > >> > carlosrovira@apache.org>
>> > > >> > > >> wrote:
>> > > >> > > >>
>> > > >> > > >> > Hi Josh,
>> > > >> > > >> >
>> > > >> > > >> > I'm trying to debug jewel classes in TDJ and for example
>> > > >> > > >> AlertController.js
>> > > >> > > >> > has at the end:
>> > > >> > > >> >
>> > > >> > > >> > //# sourceMappingURL=./AlertController.js.map
>> > > >> > > >> >
>> > > >> > > >> > It's ok? I expect it to reference the concrete subfolder:
>> > > >> > > >> > org/apache/royale/jewel/beads/controllers
>> > > >> > > >> >
>> > > >> > > >> >
>> > > >> > > >> >
>> > > >> > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
>> > > >> > > >> joshtynjala@bowlerhat.dev>)
>> > > >> > > >> > escribió:
>> > > >> > > >> >
>> > > >> > > >> > > Yes, you're right that +royalelib should not be required
>> > for
>> > > >> > > framework
>> > > >> > > >> > > libs. I wasn't paying close enough attention to see that
>> > you
>> > > >> had
>> > > >> > > added
>> > > >> > > >> > > +royalelib to both Jewel and TDJ.
>> > > >> > > >> > >
>> > > >> > > >> > > So, to summarize, you should use source-map-source-root
>> > when
>> > > >> > > building
>> > > >> > > >> > > framework libs, and you should use +royalelib when
>> building
>> > > >> > > >> > examples/apps.
>> > > >> > > >> > > +royalelib is not necessary for framework libs, and
>> > > >> > > >> > source-map-source-root
>> > > >> > > >> > > is (generally) not necessary for examples/apps.
>> > > >> > > >> > >
>> > > >> > > >> > > --
>> > > >> > > >> > > Josh Tynjala
>> > > >> > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
>> > > >> > > >> > >
>> > > >> > > >> > >
>> > > >> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
>> > > >> > > carlosrovira@apache.org
>> > > >> > > >> >
>> > > >> > > >> > > wrote:
>> > > >> > > >> > >
>> > > >> > > >> > > > Hi Josh,
>> > > >> > > >> > > >
>> > > >> > > >> > > > I discover right now that I was understanding wrong
>> how
>> > all
>> > > >> this
>> > > >> > > >> works.
>> > > >> > > >> > > > I thought we needed +royalelib in framework libs, but
>> > it's
>> > > >> not
>> > > >> > the
>> > > >> > > >> > case.
>> > > >> > > >> > > > Just need to add +royalelib to a final project, so
>> that
>> > can
>> > > >> be
>> > > >> > > left
>> > > >> > > >> to
>> > > >> > > >> > > the
>> > > >> > > >> > > > user.
>> > > >> > > >> > > >
>> > > >> > > >> > > > That means that we can add to all libs this:
>> > > >> > > >> > > >
>> > > >> -source-map-source-root=/frameworks/projects/XXX/target/
>> > > >> > > >> > > > (Where XXX is the root libraryfolder) -> For this
>> I'll be
>> > > >> adding
>> > > >> > > in
>> > > >> > > >> a
>> > > >> > > >> > > > commit soon
>> > > >> > > >> > > >
>> > > >> > > >> > > > So, Chris, we don't need anything more to implement,
>> as I
>> > > >> commit
>> > > >> > > the
>> > > >> > > >> > > > -source-map-source-root line in all framework poms.
>> > > >> > > >> > > >
>> > > >> > > >> > > > Another thing is if we should upload all source maps
>> > > (js.map
>> > > >> > > files)
>> > > >> > > >> of
>> > > >> > > >> > > all
>> > > >> > > >> > > > framework libs to some r.a.o url (for example /debug),
>> > and
>> > > if
>> > > >> > > people
>> > > >> > > >> > can
>> > > >> > > >> > > > point with +royalelib (i.e: +royalelib=
>> > > >> > > >> http://royale.apache.org/debug
>> > > >> > > >> > )
>> > > >> > > >> > > >
>> > > >> > > >> > > > What do you think?
>> > > >> > > >> > > >
>> > > >> > > >> > > >
>> > > >> > > >> > > >
>> > > >> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
>> > > >> > > >> > joshtynjala@bowlerhat.dev
>> > > >> > > >> > > >)
>> > > >> > > >> > > > escribió:
>> > > >> > > >> > > >
>> > > >> > > >> > > > > While we can set source-map-source-root in all of
>> the
>> > > >> library
>> > > >> > > >> > > projects, I
>> > > >> > > >> > > > > don't think that there's any way for us to specify
>> > > >> +royalelib
>> > > >> > > for
>> > > >> > > >> TDJ
>> > > >> > > >> > > and
>> > > >> > > >> > > > > other examples in a general way. That's the one
>> thing
>> > > that
>> > > >> > users
>> > > >> > > >> will
>> > > >> > > >> > > > > probably need to set up manually because the source
>> > files
>> > > >> come
>> > > >> > > >> from
>> > > >> > > >> > an
>> > > >> > > >> > > > > IDE-compatible SDK.
>> > > >> > > >> > > > >
>> > > >> > > >> > > > > --
>> > > >> > > >> > > > > Josh Tynjala
>> > > >> > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
>> > > >> > > >> > > > >
>> > > >> > > >> > > > >
>> > > >> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
>> > > >> > > >> > carlosrovira@apache.org>
>> > > >> > > >> > > > > wrote:
>> > > >> > > >> > > > >
>> > > >> > > >> > > > > > 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 (<
>> > > >> > > >> > > > carlosrovira@apache.org
>> > > >> > > >> > > > > >)
>> > > >> > > >> > > > > > escribió:
>> > > >> > > >> > > > > >
>> > > >> > > >> > > > > > > Hi Josh, Thanks! That worked and I finally have
>> > > >> debugging
>> > > >> > > >> again!
>> > > >> > > >> > :D
>> > > >> > > >> > > > > > >
>> > > >> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
>> > > >> > > >> > > > > joshtynjala@bowlerhat.dev
>> > > >> > > >> > > > > > >)
>> > > >> > > >> > > > > > > escribió:
>> > > >> > > >> > > > > > >
>> > > >> > > >> > > > > > >> Hey Carlos,
>> > > >> > > >> > > > > > >>
>> > > >> > > >> > > > > > >> Try using source-map-source-root with Jewel
>> only,
>> > > and
>> > > >> > omit
>> > > >> > > it
>> > > >> > > >> > from
>> > > >> > > >> > > > > TDJ.
>> > > >> > > >> > > > > > >>
>> > > >> > > >> > > > > > >> Jewel:
>> > > >> > > >> > > > > > >>
>> > > >> > > >> > > > > > >> <additionalCompilerOptions>
>> > > >> > > >> > > > > > >>
>> > > >> > > >> >
>> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > >> > > >> > > > > > >> -source-map=true;
>> > > >> > > >> > > > > > >>
>> > -source-map-source-root=/frameworks/projects/Jewel/
>> > > >> > > >> > > > > > >> </additionalCompilerOptions>
>> > > >> > > >> > > > > > >>
>> > > >> > > >> > > > > > >> TDJ:
>> > > >> > > >> > > > > > >>
>> > > >> > > >> > > > > > >> <additionalCompilerOptions>
>> > > >> > > >> > > > > > >>
>> > > >> > > >> >
>> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > >> > > >> > > > > > >> -source-map=true;
>> > > >> > > >> > > > > > >> </additionalCompilerOptions>
>> > > >> > > >> > > > > > >>
>> > > >> > > >> > > > > > >> 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 <https://bowlerhat.dev>
>> > > >> > > >> > > > > > >>
>> > > >> > > >> > > > > > >>
>> > > >> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
>> > > >> > > >> > > > carlosrovira@apache.org
>> > > >> > > >> > > > > >
>> > > >> > > >> > > > > > >> 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:
>> > > >> > > >> > > > > > >> >
>> > > >> > > >> > > > > > >> > <additionalCompilerOptions>
>> > > >> > > >> > > > > > >> >
>> > > >> > > >> > >
>> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > >> > > >> > > > > > >> > -source-map=true;
>> > > >> > > >> > > > > > >> >
>> > > -source-map-source-root=/frameworks/projects/Jewel/
>> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
>> > > >> > > >> > > > > > >> >
>> > > >> > > >> > > > > > >> > and in TDJ:
>> > > >> > > >> > > > > > >> >
>> > > >> > > >> > > > > > >> >
>> > > >> > > >> > >
>> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > >> > > >> > > > > > >> > -source-map=true;
>> > > >> > > >> > > > > > >> >
>> > > -source-map-source-root=/examples/jewel/TourDeJewel
>> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
>> > > >> > > >> > > > > > >> >
>> > > >> > > >> > > > > > >> > 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.dutz@c-ware.de>)
>> > > >> > > >> > > > > > >> > escribió:
>> > > >> > > >> > > > > > >> >
>> > > >> > > >> > > > > > >> >> Hi all,
>> > > >> > > >> > > > > > >> >>
>> > > >> > > >> > > > > > >> >> Sure, happy to help, but what exactly do you
>> > > need?
>> > > >> > > >> > > > > > >> >>
>> > > >> > > >> > > > > > >> >> Chris
>> > > >> > > >> > > > > > >> >> ------------------------------
>> > > >> > > >> > > > > > >> >> *Von:* Carlos Rovira <
>> carlosrovira@apache.org>
>> > > >> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
>> > > >> > > >> > > > > > >> >> *An:* Josh Tynjala <
>> joshtynjala@bowlerhat.dev
>> > >;
>> > > >> > > >> Christofer
>> > > >> > > >> > > Dutz
>> > > >> > > >> > > > <
>> > > >> > > >> > > > > > >> >> christofer.dutz@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 (<
>> > > >> > > >> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
>> > > >> > > >> > > > > > >> >>
>> > > >> > > >> > > > > > >> >>
>> > > >> > > >> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos
>> Rovira <
>> > > >> > > >> > > > > > carlosrovira@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:
>> > > >> > > >> > > > > > >> >>
>> > > >> > > >> > > > > > >> >> <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
>> > > >> > > >> > > > > > >> >>
>> > > >> > > >> > > > > > >> >>
>> > > >> > > >> > > > > > >> >
>> > > >> > > >> > > > > > >> > --
>> > > >> > > >> > > > > > >> > 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
>> > > >> > > >> > > > > >
>> > > >> > > >> > > > >
>> > > >> > > >> > > >
>> > > >> > > >> > > >
>> > > >> > > >> > > > --
>> > > >> > > >> > > > 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
>> > > >> > > >
>> > > >> > > >
>> > > >> > >
>> > > >> > > --
>> > > >> > > 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
>>
>
Re: Configuring source maps on Royale with new compiler options
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
I just gave it a try myself, and it looks like the compiler is failing to
recognize the +royalelib token when you try to put it into Maven's
additionalCompilerOptions. As I implied, it was certainly possible that
this might or might not work.
I'll let you know if I have another suggestion.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Sat, Jan 9, 2021 at 1:01 AM Carlos Rovira <ca...@apache.org>
wrote:
> Hi Josh,
>
> Thanks for taking a look, I'll check maven distribution to see how to add
> the missing folder. It's strange since I think I was debugging against the
> Maven SDK until now.
>
> I made now a quick try with ANT SDK, after my daily build completed, with
> your latest changes from yesterday, and compiled TDJ with:
>
> +royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/frameworks
>
> to point to ANT instead to MAVEN, and the result was the same for royale
> ANT sdk: TDJ stops at breakpoints in VSCode but Jewel not. I thought that
> ANT SDK should work right, isn't?
>
> Thanks
>
>
>
>
> El vie, 8 ene 2021 a las 22:57, Greg Dove (<gr...@gmail.com>)
> escribió:
>
> > Thanks Josh, I guess there was still something cached at a different
> level
> > in our local m2 that meant it was still working for Hiedra and me. Nice
> > sleuthing!
> >
> >
> > On Sat, Jan 9, 2021 at 10:43 AM Josh Tynjala <jo...@bowlerhat.dev>
> > wrote:
> >
> > > Following up, since I can now successfully build the Maven distribution
> > > again.
> > >
> > > I've confirmed that frameworks/projects is missing from a Maven
> > > distribution, like I had observed in the past. With that in mind, a
> Maven
> > > distribution cannot currently be referenced with +royalelib for
> > > sourcemap-enabled debugging with the original .as files.
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >
> > >
> > > On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <
> joshtynjala@bowlerhat.dev>
> > > wrote:
> > >
> > > > Carlos, are you using a Maven distribution as your IDE-compatible
> SDK?
> > > The
> > > > last time that I built one, I seem to recall that the distribution
> did
> > > not
> > > > include the original .as source files. I don't know if that's still
> the
> > > > case or not. I tried building a Maven distribution today to check,
> but
> > > the
> > > > build fails due to the current compiler being on version 0.9.9 and
> the
> > > > framework still expecting 0.9.8.
> > > >
> > > > --
> > > > Josh Tynjala
> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >
> > > >
> > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
> carlosrovira@apache.org
> > >
> > > > wrote:
> > > >
> > > >> Hi Josh,
> > > >>
> > > >> thanks, I added "frameworks" in TDJ +royalelib but seems it doesn't
> > have
> > > >> effect, stil debug TDJ but not classes in Jewel.
> > > >> Don't see what it could be :?
> > > >>
> > > >> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > > joshtynjala@bowlerhat.dev
> > > >> >)
> > > >> escribió:
> > > >>
> > > >> > Looking over previous emails in this thread, it looks like you
> > forgot
> > > to
> > > >> > add /frameworks at the end of the +royalelib path.
> > > >> >
> > > >> > You have:
> > > >> >
> > > >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > >> >
> > > >> > It should be:
> > > >> >
> > > >> >
> > > >> >
> > > >>
> > >
> >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
> > > >> >
> > > >> > --
> > > >> > Josh Tynjala
> > > >> > Bowler Hat LLC <https://bowlerhat.dev>
> > > >> >
> > > >> >
> > > >> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > > carlosrovira@apache.org>
> > > >> > wrote:
> > > >> >
> > > >> > > Hi,
> > > >> > >
> > > >> > > just fyi I added:
> > > >> > >
> > > >> > >
> > > >> >
> -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > >> > >
> > > >> > > at frameworks/projects/pom.xml
> > > >> > > so now we have setup source maps in all libraries
> > > >> > >
> > > >> > > but while that seems ok, I'm not getting lib debugging as I
> stated
> > > in
> > > >> my
> > > >> > > last email.
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > > >> carlosrovira@apache.org
> > > >> > >)
> > > >> > > escribió:
> > > >> > >
> > > >> > > > Ok Josh,
> > > >> > > >
> > > >> > > > so all seems ok, but debug is not working in classes from
> Jewel
> > > lib.
> > > >> > > > I see the jewel.swc has the js.map files in the same way I
> > > related,
> > > >> so
> > > >> > > > that's ok as you stated.
> > > >> > > > I'm setting breakpoints in the same VSCode window for Jewel
> and
> > > TDJ
> > > >> > > files,
> > > >> > > > but only TDJ files (in the root or subfolders) are making
> > > execution
> > > >> > stop.
> > > >> > > > If I set up a breakpoint in let's say Jewel Button.as, that
> > > appears
> > > >> > empty
> > > >> > > > on execution and doesn't have effect, while TDJ appears red
> and
> > > >> works
> > > >> > ok.
> > > >> > > >
> > > >> > > > Do you know what could be happening?
> > > >> > > >
> > > >> > > >
> > > >> > > >
> > > >> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> > > >> > joshtynjala@bowlerhat.dev
> > > >> > > >)
> > > >> > > > escribió:
> > > >> > > >
> > > >> > > >> The path of the .js.map file is relative to the .js file.
> > Since
> > > >> the
> > > >> > > >> .js.map file is supposed to be in the same folder as the .js
> > > file,
> > > >> > that
> > > >> > > >> looks correct to me.
> > > >> > > >>
> > > >> > > >> --
> > > >> > > >> Josh Tynjala
> > > >> > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > >> > > >>
> > > >> > > >>
> > > >> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> > > >> > carlosrovira@apache.org>
> > > >> > > >> wrote:
> > > >> > > >>
> > > >> > > >> > Hi Josh,
> > > >> > > >> >
> > > >> > > >> > I'm trying to debug jewel classes in TDJ and for example
> > > >> > > >> AlertController.js
> > > >> > > >> > has at the end:
> > > >> > > >> >
> > > >> > > >> > //# sourceMappingURL=./AlertController.js.map
> > > >> > > >> >
> > > >> > > >> > It's ok? I expect it to reference the concrete subfolder:
> > > >> > > >> > org/apache/royale/jewel/beads/controllers
> > > >> > > >> >
> > > >> > > >> >
> > > >> > > >> >
> > > >> > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> > > >> > > >> joshtynjala@bowlerhat.dev>)
> > > >> > > >> > escribió:
> > > >> > > >> >
> > > >> > > >> > > Yes, you're right that +royalelib should not be required
> > for
> > > >> > > framework
> > > >> > > >> > > libs. I wasn't paying close enough attention to see that
> > you
> > > >> had
> > > >> > > added
> > > >> > > >> > > +royalelib to both Jewel and TDJ.
> > > >> > > >> > >
> > > >> > > >> > > So, to summarize, you should use source-map-source-root
> > when
> > > >> > > building
> > > >> > > >> > > framework libs, and you should use +royalelib when
> building
> > > >> > > >> > examples/apps.
> > > >> > > >> > > +royalelib is not necessary for framework libs, and
> > > >> > > >> > source-map-source-root
> > > >> > > >> > > is (generally) not necessary for examples/apps.
> > > >> > > >> > >
> > > >> > > >> > > --
> > > >> > > >> > > Josh Tynjala
> > > >> > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >> > > >> > >
> > > >> > > >> > >
> > > >> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> > > >> > > carlosrovira@apache.org
> > > >> > > >> >
> > > >> > > >> > > wrote:
> > > >> > > >> > >
> > > >> > > >> > > > Hi Josh,
> > > >> > > >> > > >
> > > >> > > >> > > > I discover right now that I was understanding wrong how
> > all
> > > >> this
> > > >> > > >> works.
> > > >> > > >> > > > I thought we needed +royalelib in framework libs, but
> > it's
> > > >> not
> > > >> > the
> > > >> > > >> > case.
> > > >> > > >> > > > Just need to add +royalelib to a final project, so that
> > can
> > > >> be
> > > >> > > left
> > > >> > > >> to
> > > >> > > >> > > the
> > > >> > > >> > > > user.
> > > >> > > >> > > >
> > > >> > > >> > > > That means that we can add to all libs this:
> > > >> > > >> > > >
> > > >> -source-map-source-root=/frameworks/projects/XXX/target/
> > > >> > > >> > > > (Where XXX is the root libraryfolder) -> For this I'll
> be
> > > >> adding
> > > >> > > in
> > > >> > > >> a
> > > >> > > >> > > > commit soon
> > > >> > > >> > > >
> > > >> > > >> > > > So, Chris, we don't need anything more to implement,
> as I
> > > >> commit
> > > >> > > the
> > > >> > > >> > > > -source-map-source-root line in all framework poms.
> > > >> > > >> > > >
> > > >> > > >> > > > Another thing is if we should upload all source maps
> > > (js.map
> > > >> > > files)
> > > >> > > >> of
> > > >> > > >> > > all
> > > >> > > >> > > > framework libs to some r.a.o url (for example /debug),
> > and
> > > if
> > > >> > > people
> > > >> > > >> > can
> > > >> > > >> > > > point with +royalelib (i.e: +royalelib=
> > > >> > > >> http://royale.apache.org/debug
> > > >> > > >> > )
> > > >> > > >> > > >
> > > >> > > >> > > > What do you think?
> > > >> > > >> > > >
> > > >> > > >> > > >
> > > >> > > >> > > >
> > > >> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> > > >> > > >> > joshtynjala@bowlerhat.dev
> > > >> > > >> > > >)
> > > >> > > >> > > > escribió:
> > > >> > > >> > > >
> > > >> > > >> > > > > While we can set source-map-source-root in all of the
> > > >> library
> > > >> > > >> > > projects, I
> > > >> > > >> > > > > don't think that there's any way for us to specify
> > > >> +royalelib
> > > >> > > for
> > > >> > > >> TDJ
> > > >> > > >> > > and
> > > >> > > >> > > > > other examples in a general way. That's the one thing
> > > that
> > > >> > users
> > > >> > > >> will
> > > >> > > >> > > > > probably need to set up manually because the source
> > files
> > > >> come
> > > >> > > >> from
> > > >> > > >> > an
> > > >> > > >> > > > > IDE-compatible SDK.
> > > >> > > >> > > > >
> > > >> > > >> > > > > --
> > > >> > > >> > > > > Josh Tynjala
> > > >> > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >> > > >> > > > >
> > > >> > > >> > > > >
> > > >> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> > > >> > > >> > carlosrovira@apache.org>
> > > >> > > >> > > > > wrote:
> > > >> > > >> > > > >
> > > >> > > >> > > > > > 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 (<
> > > >> > > >> > > > carlosrovira@apache.org
> > > >> > > >> > > > > >)
> > > >> > > >> > > > > > escribió:
> > > >> > > >> > > > > >
> > > >> > > >> > > > > > > Hi Josh, Thanks! That worked and I finally have
> > > >> debugging
> > > >> > > >> again!
> > > >> > > >> > :D
> > > >> > > >> > > > > > >
> > > >> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
> > > >> > > >> > > > > joshtynjala@bowlerhat.dev
> > > >> > > >> > > > > > >)
> > > >> > > >> > > > > > > escribió:
> > > >> > > >> > > > > > >
> > > >> > > >> > > > > > >> Hey Carlos,
> > > >> > > >> > > > > > >>
> > > >> > > >> > > > > > >> Try using source-map-source-root with Jewel
> only,
> > > and
> > > >> > omit
> > > >> > > it
> > > >> > > >> > from
> > > >> > > >> > > > > TDJ.
> > > >> > > >> > > > > > >>
> > > >> > > >> > > > > > >> Jewel:
> > > >> > > >> > > > > > >>
> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > >> > > >> > > > > > >>
> > > >> > > >> >
> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > >> > > >> > > > > > >> -source-map=true;
> > > >> > > >> > > > > > >>
> > -source-map-source-root=/frameworks/projects/Jewel/
> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > >> > > >> > > > > > >>
> > > >> > > >> > > > > > >> TDJ:
> > > >> > > >> > > > > > >>
> > > >> > > >> > > > > > >> <additionalCompilerOptions>
> > > >> > > >> > > > > > >>
> > > >> > > >> >
> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > >> > > >> > > > > > >> -source-map=true;
> > > >> > > >> > > > > > >> </additionalCompilerOptions>
> > > >> > > >> > > > > > >>
> > > >> > > >> > > > > > >> 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 <https://bowlerhat.dev>
> > > >> > > >> > > > > > >>
> > > >> > > >> > > > > > >>
> > > >> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
> > > >> > > >> > > > carlosrovira@apache.org
> > > >> > > >> > > > > >
> > > >> > > >> > > > > > >> 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:
> > > >> > > >> > > > > > >> >
> > > >> > > >> > > > > > >> > <additionalCompilerOptions>
> > > >> > > >> > > > > > >> >
> > > >> > > >> > >
> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > >> > > >> > > > > > >> > -source-map=true;
> > > >> > > >> > > > > > >> >
> > > -source-map-source-root=/frameworks/projects/Jewel/
> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > >> > > >> > > > > > >> >
> > > >> > > >> > > > > > >> > and in TDJ:
> > > >> > > >> > > > > > >> >
> > > >> > > >> > > > > > >> >
> > > >> > > >> > >
> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > >> > > >> > > > > > >> > -source-map=true;
> > > >> > > >> > > > > > >> >
> > > -source-map-source-root=/examples/jewel/TourDeJewel
> > > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > > >> > > >> > > > > > >> >
> > > >> > > >> > > > > > >> > 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.dutz@c-ware.de>)
> > > >> > > >> > > > > > >> > escribió:
> > > >> > > >> > > > > > >> >
> > > >> > > >> > > > > > >> >> Hi all,
> > > >> > > >> > > > > > >> >>
> > > >> > > >> > > > > > >> >> Sure, happy to help, but what exactly do you
> > > need?
> > > >> > > >> > > > > > >> >>
> > > >> > > >> > > > > > >> >> Chris
> > > >> > > >> > > > > > >> >> ------------------------------
> > > >> > > >> > > > > > >> >> *Von:* Carlos Rovira <
> carlosrovira@apache.org>
> > > >> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> > > >> > > >> > > > > > >> >> *An:* Josh Tynjala <
> joshtynjala@bowlerhat.dev
> > >;
> > > >> > > >> Christofer
> > > >> > > >> > > Dutz
> > > >> > > >> > > > <
> > > >> > > >> > > > > > >> >> christofer.dutz@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
> (<
> > > >> > > >> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
> > > >> > > >> > > > > > >> >>
> > > >> > > >> > > > > > >> >>
> > > >> > > >> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos
> Rovira <
> > > >> > > >> > > > > > carlosrovira@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:
> > > >> > > >> > > > > > >> >>
> > > >> > > >> > > > > > >> >> <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
> > > >> > > >> > > > > > >> >>
> > > >> > > >> > > > > > >> >>
> > > >> > > >> > > > > > >> >
> > > >> > > >> > > > > > >> > --
> > > >> > > >> > > > > > >> > 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
> > > >> > > >> > > > > >
> > > >> > > >> > > > >
> > > >> > > >> > > >
> > > >> > > >> > > >
> > > >> > > >> > > > --
> > > >> > > >> > > > 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
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> > > --
> > > >> > > 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
>
Re: Configuring source maps on Royale with new compiler options
Posted by Carlos Rovira <ca...@apache.org>.
Hi Josh,
Thanks for taking a look, I'll check maven distribution to see how to add
the missing folder. It's strange since I think I was debugging against the
Maven SDK until now.
I made now a quick try with ANT SDK, after my daily build completed, with
your latest changes from yesterday, and compiled TDJ with:
+royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/frameworks
to point to ANT instead to MAVEN, and the result was the same for royale
ANT sdk: TDJ stops at breakpoints in VSCode but Jewel not. I thought that
ANT SDK should work right, isn't?
Thanks
El vie, 8 ene 2021 a las 22:57, Greg Dove (<gr...@gmail.com>) escribió:
> Thanks Josh, I guess there was still something cached at a different level
> in our local m2 that meant it was still working for Hiedra and me. Nice
> sleuthing!
>
>
> On Sat, Jan 9, 2021 at 10:43 AM Josh Tynjala <jo...@bowlerhat.dev>
> wrote:
>
> > Following up, since I can now successfully build the Maven distribution
> > again.
> >
> > I've confirmed that frameworks/projects is missing from a Maven
> > distribution, like I had observed in the past. With that in mind, a Maven
> > distribution cannot currently be referenced with +royalelib for
> > sourcemap-enabled debugging with the original .as files.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <jo...@bowlerhat.dev>
> > wrote:
> >
> > > Carlos, are you using a Maven distribution as your IDE-compatible SDK?
> > The
> > > last time that I built one, I seem to recall that the distribution did
> > not
> > > include the original .as source files. I don't know if that's still the
> > > case or not. I tried building a Maven distribution today to check, but
> > the
> > > build fails due to the current compiler being on version 0.9.9 and the
> > > framework still expecting 0.9.8.
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >
> > >
> > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <carlosrovira@apache.org
> >
> > > wrote:
> > >
> > >> Hi Josh,
> > >>
> > >> thanks, I added "frameworks" in TDJ +royalelib but seems it doesn't
> have
> > >> effect, stil debug TDJ but not classes in Jewel.
> > >> Don't see what it could be :?
> > >>
> > >> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > joshtynjala@bowlerhat.dev
> > >> >)
> > >> escribió:
> > >>
> > >> > Looking over previous emails in this thread, it looks like you
> forgot
> > to
> > >> > add /frameworks at the end of the +royalelib path.
> > >> >
> > >> > You have:
> > >> >
> > >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > >> >
> > >> > It should be:
> > >> >
> > >> >
> > >> >
> > >>
> >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
> > >> >
> > >> > --
> > >> > Josh Tynjala
> > >> > Bowler Hat LLC <https://bowlerhat.dev>
> > >> >
> > >> >
> > >> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > carlosrovira@apache.org>
> > >> > wrote:
> > >> >
> > >> > > Hi,
> > >> > >
> > >> > > just fyi I added:
> > >> > >
> > >> > >
> > >> > -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > >> > >
> > >> > > at frameworks/projects/pom.xml
> > >> > > so now we have setup source maps in all libraries
> > >> > >
> > >> > > but while that seems ok, I'm not getting lib debugging as I stated
> > in
> > >> my
> > >> > > last email.
> > >> > >
> > >> > >
> > >> > >
> > >> > >
> > >> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > >> carlosrovira@apache.org
> > >> > >)
> > >> > > escribió:
> > >> > >
> > >> > > > Ok Josh,
> > >> > > >
> > >> > > > so all seems ok, but debug is not working in classes from Jewel
> > lib.
> > >> > > > I see the jewel.swc has the js.map files in the same way I
> > related,
> > >> so
> > >> > > > that's ok as you stated.
> > >> > > > I'm setting breakpoints in the same VSCode window for Jewel and
> > TDJ
> > >> > > files,
> > >> > > > but only TDJ files (in the root or subfolders) are making
> > execution
> > >> > stop.
> > >> > > > If I set up a breakpoint in let's say Jewel Button.as, that
> > appears
> > >> > empty
> > >> > > > on execution and doesn't have effect, while TDJ appears red and
> > >> works
> > >> > ok.
> > >> > > >
> > >> > > > Do you know what could be happening?
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> > >> > joshtynjala@bowlerhat.dev
> > >> > > >)
> > >> > > > escribió:
> > >> > > >
> > >> > > >> The path of the .js.map file is relative to the .js file.
> Since
> > >> the
> > >> > > >> .js.map file is supposed to be in the same folder as the .js
> > file,
> > >> > that
> > >> > > >> looks correct to me.
> > >> > > >>
> > >> > > >> --
> > >> > > >> Josh Tynjala
> > >> > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > >> > > >>
> > >> > > >>
> > >> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> > >> > carlosrovira@apache.org>
> > >> > > >> wrote:
> > >> > > >>
> > >> > > >> > Hi Josh,
> > >> > > >> >
> > >> > > >> > I'm trying to debug jewel classes in TDJ and for example
> > >> > > >> AlertController.js
> > >> > > >> > has at the end:
> > >> > > >> >
> > >> > > >> > //# sourceMappingURL=./AlertController.js.map
> > >> > > >> >
> > >> > > >> > It's ok? I expect it to reference the concrete subfolder:
> > >> > > >> > org/apache/royale/jewel/beads/controllers
> > >> > > >> >
> > >> > > >> >
> > >> > > >> >
> > >> > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> > >> > > >> joshtynjala@bowlerhat.dev>)
> > >> > > >> > escribió:
> > >> > > >> >
> > >> > > >> > > Yes, you're right that +royalelib should not be required
> for
> > >> > > framework
> > >> > > >> > > libs. I wasn't paying close enough attention to see that
> you
> > >> had
> > >> > > added
> > >> > > >> > > +royalelib to both Jewel and TDJ.
> > >> > > >> > >
> > >> > > >> > > So, to summarize, you should use source-map-source-root
> when
> > >> > > building
> > >> > > >> > > framework libs, and you should use +royalelib when building
> > >> > > >> > examples/apps.
> > >> > > >> > > +royalelib is not necessary for framework libs, and
> > >> > > >> > source-map-source-root
> > >> > > >> > > is (generally) not necessary for examples/apps.
> > >> > > >> > >
> > >> > > >> > > --
> > >> > > >> > > Josh Tynjala
> > >> > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >> > > >> > >
> > >> > > >> > >
> > >> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> > >> > > carlosrovira@apache.org
> > >> > > >> >
> > >> > > >> > > wrote:
> > >> > > >> > >
> > >> > > >> > > > Hi Josh,
> > >> > > >> > > >
> > >> > > >> > > > I discover right now that I was understanding wrong how
> all
> > >> this
> > >> > > >> works.
> > >> > > >> > > > I thought we needed +royalelib in framework libs, but
> it's
> > >> not
> > >> > the
> > >> > > >> > case.
> > >> > > >> > > > Just need to add +royalelib to a final project, so that
> can
> > >> be
> > >> > > left
> > >> > > >> to
> > >> > > >> > > the
> > >> > > >> > > > user.
> > >> > > >> > > >
> > >> > > >> > > > That means that we can add to all libs this:
> > >> > > >> > > >
> > >> -source-map-source-root=/frameworks/projects/XXX/target/
> > >> > > >> > > > (Where XXX is the root libraryfolder) -> For this I'll be
> > >> adding
> > >> > > in
> > >> > > >> a
> > >> > > >> > > > commit soon
> > >> > > >> > > >
> > >> > > >> > > > So, Chris, we don't need anything more to implement, as I
> > >> commit
> > >> > > the
> > >> > > >> > > > -source-map-source-root line in all framework poms.
> > >> > > >> > > >
> > >> > > >> > > > Another thing is if we should upload all source maps
> > (js.map
> > >> > > files)
> > >> > > >> of
> > >> > > >> > > all
> > >> > > >> > > > framework libs to some r.a.o url (for example /debug),
> and
> > if
> > >> > > people
> > >> > > >> > can
> > >> > > >> > > > point with +royalelib (i.e: +royalelib=
> > >> > > >> http://royale.apache.org/debug
> > >> > > >> > )
> > >> > > >> > > >
> > >> > > >> > > > What do you think?
> > >> > > >> > > >
> > >> > > >> > > >
> > >> > > >> > > >
> > >> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> > >> > > >> > joshtynjala@bowlerhat.dev
> > >> > > >> > > >)
> > >> > > >> > > > escribió:
> > >> > > >> > > >
> > >> > > >> > > > > While we can set source-map-source-root in all of the
> > >> library
> > >> > > >> > > projects, I
> > >> > > >> > > > > don't think that there's any way for us to specify
> > >> +royalelib
> > >> > > for
> > >> > > >> TDJ
> > >> > > >> > > and
> > >> > > >> > > > > other examples in a general way. That's the one thing
> > that
> > >> > users
> > >> > > >> will
> > >> > > >> > > > > probably need to set up manually because the source
> files
> > >> come
> > >> > > >> from
> > >> > > >> > an
> > >> > > >> > > > > IDE-compatible SDK.
> > >> > > >> > > > >
> > >> > > >> > > > > --
> > >> > > >> > > > > Josh Tynjala
> > >> > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > >> > > >> > > > >
> > >> > > >> > > > >
> > >> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> > >> > > >> > carlosrovira@apache.org>
> > >> > > >> > > > > wrote:
> > >> > > >> > > > >
> > >> > > >> > > > > > 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 (<
> > >> > > >> > > > carlosrovira@apache.org
> > >> > > >> > > > > >)
> > >> > > >> > > > > > escribió:
> > >> > > >> > > > > >
> > >> > > >> > > > > > > Hi Josh, Thanks! That worked and I finally have
> > >> debugging
> > >> > > >> again!
> > >> > > >> > :D
> > >> > > >> > > > > > >
> > >> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
> > >> > > >> > > > > joshtynjala@bowlerhat.dev
> > >> > > >> > > > > > >)
> > >> > > >> > > > > > > escribió:
> > >> > > >> > > > > > >
> > >> > > >> > > > > > >> Hey Carlos,
> > >> > > >> > > > > > >>
> > >> > > >> > > > > > >> Try using source-map-source-root with Jewel only,
> > and
> > >> > omit
> > >> > > it
> > >> > > >> > from
> > >> > > >> > > > > TDJ.
> > >> > > >> > > > > > >>
> > >> > > >> > > > > > >> Jewel:
> > >> > > >> > > > > > >>
> > >> > > >> > > > > > >> <additionalCompilerOptions>
> > >> > > >> > > > > > >>
> > >> > > >> >
> > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > >> > > >> > > > > > >> -source-map=true;
> > >> > > >> > > > > > >>
> -source-map-source-root=/frameworks/projects/Jewel/
> > >> > > >> > > > > > >> </additionalCompilerOptions>
> > >> > > >> > > > > > >>
> > >> > > >> > > > > > >> TDJ:
> > >> > > >> > > > > > >>
> > >> > > >> > > > > > >> <additionalCompilerOptions>
> > >> > > >> > > > > > >>
> > >> > > >> >
> > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > >> > > >> > > > > > >> -source-map=true;
> > >> > > >> > > > > > >> </additionalCompilerOptions>
> > >> > > >> > > > > > >>
> > >> > > >> > > > > > >> 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 <https://bowlerhat.dev>
> > >> > > >> > > > > > >>
> > >> > > >> > > > > > >>
> > >> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
> > >> > > >> > > > carlosrovira@apache.org
> > >> > > >> > > > > >
> > >> > > >> > > > > > >> 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:
> > >> > > >> > > > > > >> >
> > >> > > >> > > > > > >> > <additionalCompilerOptions>
> > >> > > >> > > > > > >> >
> > >> > > >> > >
> > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > >> > > >> > > > > > >> > -source-map=true;
> > >> > > >> > > > > > >> >
> > -source-map-source-root=/frameworks/projects/Jewel/
> > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > >> > > >> > > > > > >> >
> > >> > > >> > > > > > >> > and in TDJ:
> > >> > > >> > > > > > >> >
> > >> > > >> > > > > > >> >
> > >> > > >> > >
> > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > >> > > >> > > > > > >> > -source-map=true;
> > >> > > >> > > > > > >> >
> > -source-map-source-root=/examples/jewel/TourDeJewel
> > >> > > >> > > > > > >> > </additionalCompilerOptions>
> > >> > > >> > > > > > >> >
> > >> > > >> > > > > > >> > 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.dutz@c-ware.de>)
> > >> > > >> > > > > > >> > escribió:
> > >> > > >> > > > > > >> >
> > >> > > >> > > > > > >> >> Hi all,
> > >> > > >> > > > > > >> >>
> > >> > > >> > > > > > >> >> Sure, happy to help, but what exactly do you
> > need?
> > >> > > >> > > > > > >> >>
> > >> > > >> > > > > > >> >> Chris
> > >> > > >> > > > > > >> >> ------------------------------
> > >> > > >> > > > > > >> >> *Von:* Carlos Rovira <ca...@apache.org>
> > >> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> > >> > > >> > > > > > >> >> *An:* Josh Tynjala <joshtynjala@bowlerhat.dev
> >;
> > >> > > >> Christofer
> > >> > > >> > > Dutz
> > >> > > >> > > > <
> > >> > > >> > > > > > >> >> christofer.dutz@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 (<
> > >> > > >> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
> > >> > > >> > > > > > >> >>
> > >> > > >> > > > > > >> >>
> > >> > > >> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
> > >> > > >> > > > > > carlosrovira@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:
> > >> > > >> > > > > > >> >>
> > >> > > >> > > > > > >> >> <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
> > >> > > >> > > > > > >> >>
> > >> > > >> > > > > > >> >>
> > >> > > >> > > > > > >> >
> > >> > > >> > > > > > >> > --
> > >> > > >> > > > > > >> > 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
> > >> > > >> > > > > >
> > >> > > >> > > > >
> > >> > > >> > > >
> > >> > > >> > > >
> > >> > > >> > > > --
> > >> > > >> > > > 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
> > >> > > >
> > >> > > >
> > >> > >
> > >> > > --
> > >> > > 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
Re: Configuring source maps on Royale with new compiler options
Posted by Greg Dove <gr...@gmail.com>.
Thanks Josh, I guess there was still something cached at a different level
in our local m2 that meant it was still working for Hiedra and me. Nice
sleuthing!
On Sat, Jan 9, 2021 at 10:43 AM Josh Tynjala <jo...@bowlerhat.dev>
wrote:
> Following up, since I can now successfully build the Maven distribution
> again.
>
> I've confirmed that frameworks/projects is missing from a Maven
> distribution, like I had observed in the past. With that in mind, a Maven
> distribution cannot currently be referenced with +royalelib for
> sourcemap-enabled debugging with the original .as files.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <jo...@bowlerhat.dev>
> wrote:
>
> > Carlos, are you using a Maven distribution as your IDE-compatible SDK?
> The
> > last time that I built one, I seem to recall that the distribution did
> not
> > include the original .as source files. I don't know if that's still the
> > case or not. I tried building a Maven distribution today to check, but
> the
> > build fails due to the current compiler being on version 0.9.9 and the
> > framework still expecting 0.9.8.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <ca...@apache.org>
> > wrote:
> >
> >> Hi Josh,
> >>
> >> thanks, I added "frameworks" in TDJ +royalelib but seems it doesn't have
> >> effect, stil debug TDJ but not classes in Jewel.
> >> Don't see what it could be :?
> >>
> >> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> joshtynjala@bowlerhat.dev
> >> >)
> >> escribió:
> >>
> >> > Looking over previous emails in this thread, it looks like you forgot
> to
> >> > add /frameworks at the end of the +royalelib path.
> >> >
> >> > You have:
> >> >
> >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> >> >
> >> > It should be:
> >> >
> >> >
> >> >
> >>
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
> >> >
> >> > --
> >> > Josh Tynjala
> >> > Bowler Hat LLC <https://bowlerhat.dev>
> >> >
> >> >
> >> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> carlosrovira@apache.org>
> >> > wrote:
> >> >
> >> > > Hi,
> >> > >
> >> > > just fyi I added:
> >> > >
> >> > >
> >> > -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> >> > >
> >> > > at frameworks/projects/pom.xml
> >> > > so now we have setup source maps in all libraries
> >> > >
> >> > > but while that seems ok, I'm not getting lib debugging as I stated
> in
> >> my
> >> > > last email.
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> >> carlosrovira@apache.org
> >> > >)
> >> > > escribió:
> >> > >
> >> > > > Ok Josh,
> >> > > >
> >> > > > so all seems ok, but debug is not working in classes from Jewel
> lib.
> >> > > > I see the jewel.swc has the js.map files in the same way I
> related,
> >> so
> >> > > > that's ok as you stated.
> >> > > > I'm setting breakpoints in the same VSCode window for Jewel and
> TDJ
> >> > > files,
> >> > > > but only TDJ files (in the root or subfolders) are making
> execution
> >> > stop.
> >> > > > If I set up a breakpoint in let's say Jewel Button.as, that
> appears
> >> > empty
> >> > > > on execution and doesn't have effect, while TDJ appears red and
> >> works
> >> > ok.
> >> > > >
> >> > > > Do you know what could be happening?
> >> > > >
> >> > > >
> >> > > >
> >> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> >> > joshtynjala@bowlerhat.dev
> >> > > >)
> >> > > > escribió:
> >> > > >
> >> > > >> The path of the .js.map file is relative to the .js file. Since
> >> the
> >> > > >> .js.map file is supposed to be in the same folder as the .js
> file,
> >> > that
> >> > > >> looks correct to me.
> >> > > >>
> >> > > >> --
> >> > > >> Josh Tynjala
> >> > > >> Bowler Hat LLC <https://bowlerhat.dev>
> >> > > >>
> >> > > >>
> >> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> >> > carlosrovira@apache.org>
> >> > > >> wrote:
> >> > > >>
> >> > > >> > Hi Josh,
> >> > > >> >
> >> > > >> > I'm trying to debug jewel classes in TDJ and for example
> >> > > >> AlertController.js
> >> > > >> > has at the end:
> >> > > >> >
> >> > > >> > //# sourceMappingURL=./AlertController.js.map
> >> > > >> >
> >> > > >> > It's ok? I expect it to reference the concrete subfolder:
> >> > > >> > org/apache/royale/jewel/beads/controllers
> >> > > >> >
> >> > > >> >
> >> > > >> >
> >> > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> >> > > >> joshtynjala@bowlerhat.dev>)
> >> > > >> > escribió:
> >> > > >> >
> >> > > >> > > Yes, you're right that +royalelib should not be required for
> >> > > framework
> >> > > >> > > libs. I wasn't paying close enough attention to see that you
> >> had
> >> > > added
> >> > > >> > > +royalelib to both Jewel and TDJ.
> >> > > >> > >
> >> > > >> > > So, to summarize, you should use source-map-source-root when
> >> > > building
> >> > > >> > > framework libs, and you should use +royalelib when building
> >> > > >> > examples/apps.
> >> > > >> > > +royalelib is not necessary for framework libs, and
> >> > > >> > source-map-source-root
> >> > > >> > > is (generally) not necessary for examples/apps.
> >> > > >> > >
> >> > > >> > > --
> >> > > >> > > Josh Tynjala
> >> > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> >> > > >> > >
> >> > > >> > >
> >> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> >> > > carlosrovira@apache.org
> >> > > >> >
> >> > > >> > > wrote:
> >> > > >> > >
> >> > > >> > > > Hi Josh,
> >> > > >> > > >
> >> > > >> > > > I discover right now that I was understanding wrong how all
> >> this
> >> > > >> works.
> >> > > >> > > > I thought we needed +royalelib in framework libs, but it's
> >> not
> >> > the
> >> > > >> > case.
> >> > > >> > > > Just need to add +royalelib to a final project, so that can
> >> be
> >> > > left
> >> > > >> to
> >> > > >> > > the
> >> > > >> > > > user.
> >> > > >> > > >
> >> > > >> > > > That means that we can add to all libs this:
> >> > > >> > > >
> >> -source-map-source-root=/frameworks/projects/XXX/target/
> >> > > >> > > > (Where XXX is the root libraryfolder) -> For this I'll be
> >> adding
> >> > > in
> >> > > >> a
> >> > > >> > > > commit soon
> >> > > >> > > >
> >> > > >> > > > So, Chris, we don't need anything more to implement, as I
> >> commit
> >> > > the
> >> > > >> > > > -source-map-source-root line in all framework poms.
> >> > > >> > > >
> >> > > >> > > > Another thing is if we should upload all source maps
> (js.map
> >> > > files)
> >> > > >> of
> >> > > >> > > all
> >> > > >> > > > framework libs to some r.a.o url (for example /debug), and
> if
> >> > > people
> >> > > >> > can
> >> > > >> > > > point with +royalelib (i.e: +royalelib=
> >> > > >> http://royale.apache.org/debug
> >> > > >> > )
> >> > > >> > > >
> >> > > >> > > > What do you think?
> >> > > >> > > >
> >> > > >> > > >
> >> > > >> > > >
> >> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> >> > > >> > joshtynjala@bowlerhat.dev
> >> > > >> > > >)
> >> > > >> > > > escribió:
> >> > > >> > > >
> >> > > >> > > > > While we can set source-map-source-root in all of the
> >> library
> >> > > >> > > projects, I
> >> > > >> > > > > don't think that there's any way for us to specify
> >> +royalelib
> >> > > for
> >> > > >> TDJ
> >> > > >> > > and
> >> > > >> > > > > other examples in a general way. That's the one thing
> that
> >> > users
> >> > > >> will
> >> > > >> > > > > probably need to set up manually because the source files
> >> come
> >> > > >> from
> >> > > >> > an
> >> > > >> > > > > IDE-compatible SDK.
> >> > > >> > > > >
> >> > > >> > > > > --
> >> > > >> > > > > Josh Tynjala
> >> > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> >> > > >> > > > >
> >> > > >> > > > >
> >> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> >> > > >> > carlosrovira@apache.org>
> >> > > >> > > > > wrote:
> >> > > >> > > > >
> >> > > >> > > > > > 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 (<
> >> > > >> > > > carlosrovira@apache.org
> >> > > >> > > > > >)
> >> > > >> > > > > > escribió:
> >> > > >> > > > > >
> >> > > >> > > > > > > Hi Josh, Thanks! That worked and I finally have
> >> debugging
> >> > > >> again!
> >> > > >> > :D
> >> > > >> > > > > > >
> >> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
> >> > > >> > > > > joshtynjala@bowlerhat.dev
> >> > > >> > > > > > >)
> >> > > >> > > > > > > escribió:
> >> > > >> > > > > > >
> >> > > >> > > > > > >> Hey Carlos,
> >> > > >> > > > > > >>
> >> > > >> > > > > > >> Try using source-map-source-root with Jewel only,
> and
> >> > omit
> >> > > it
> >> > > >> > from
> >> > > >> > > > > TDJ.
> >> > > >> > > > > > >>
> >> > > >> > > > > > >> Jewel:
> >> > > >> > > > > > >>
> >> > > >> > > > > > >> <additionalCompilerOptions>
> >> > > >> > > > > > >>
> >> > > >> >
> >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> >> > > >> > > > > > >> -source-map=true;
> >> > > >> > > > > > >> -source-map-source-root=/frameworks/projects/Jewel/
> >> > > >> > > > > > >> </additionalCompilerOptions>
> >> > > >> > > > > > >>
> >> > > >> > > > > > >> TDJ:
> >> > > >> > > > > > >>
> >> > > >> > > > > > >> <additionalCompilerOptions>
> >> > > >> > > > > > >>
> >> > > >> >
> >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> >> > > >> > > > > > >> -source-map=true;
> >> > > >> > > > > > >> </additionalCompilerOptions>
> >> > > >> > > > > > >>
> >> > > >> > > > > > >> 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 <https://bowlerhat.dev>
> >> > > >> > > > > > >>
> >> > > >> > > > > > >>
> >> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
> >> > > >> > > > carlosrovira@apache.org
> >> > > >> > > > > >
> >> > > >> > > > > > >> 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:
> >> > > >> > > > > > >> >
> >> > > >> > > > > > >> > <additionalCompilerOptions>
> >> > > >> > > > > > >> >
> >> > > >> > >
> >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> >> > > >> > > > > > >> > -source-map=true;
> >> > > >> > > > > > >> >
> -source-map-source-root=/frameworks/projects/Jewel/
> >> > > >> > > > > > >> > </additionalCompilerOptions>
> >> > > >> > > > > > >> >
> >> > > >> > > > > > >> > and in TDJ:
> >> > > >> > > > > > >> >
> >> > > >> > > > > > >> >
> >> > > >> > >
> >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> >> > > >> > > > > > >> > -source-map=true;
> >> > > >> > > > > > >> >
> -source-map-source-root=/examples/jewel/TourDeJewel
> >> > > >> > > > > > >> > </additionalCompilerOptions>
> >> > > >> > > > > > >> >
> >> > > >> > > > > > >> > 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.dutz@c-ware.de>)
> >> > > >> > > > > > >> > escribió:
> >> > > >> > > > > > >> >
> >> > > >> > > > > > >> >> Hi all,
> >> > > >> > > > > > >> >>
> >> > > >> > > > > > >> >> Sure, happy to help, but what exactly do you
> need?
> >> > > >> > > > > > >> >>
> >> > > >> > > > > > >> >> Chris
> >> > > >> > > > > > >> >> ------------------------------
> >> > > >> > > > > > >> >> *Von:* Carlos Rovira <ca...@apache.org>
> >> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> >> > > >> > > > > > >> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>;
> >> > > >> Christofer
> >> > > >> > > Dutz
> >> > > >> > > > <
> >> > > >> > > > > > >> >> christofer.dutz@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 (<
> >> > > >> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
> >> > > >> > > > > > >> >>
> >> > > >> > > > > > >> >>
> >> > > >> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
> >> > > >> > > > > > carlosrovira@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:
> >> > > >> > > > > > >> >>
> >> > > >> > > > > > >> >> <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
> >> > > >> > > > > > >> >>
> >> > > >> > > > > > >> >>
> >> > > >> > > > > > >> >
> >> > > >> > > > > > >> > --
> >> > > >> > > > > > >> > 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
> >> > > >> > > > > >
> >> > > >> > > > >
> >> > > >> > > >
> >> > > >> > > >
> >> > > >> > > > --
> >> > > >> > > > 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
> >> > > >
> >> > > >
> >> > >
> >> > > --
> >> > > 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
> >>
> >
>
Re: Configuring source maps on Royale with new compiler options
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
Following up, since I can now successfully build the Maven distribution
again.
I've confirmed that frameworks/projects is missing from a Maven
distribution, like I had observed in the past. With that in mind, a Maven
distribution cannot currently be referenced with +royalelib for
sourcemap-enabled debugging with the original .as files.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Fri, Jan 8, 2021 at 10:32 AM Josh Tynjala <jo...@bowlerhat.dev>
wrote:
> Carlos, are you using a Maven distribution as your IDE-compatible SDK? The
> last time that I built one, I seem to recall that the distribution did not
> include the original .as source files. I don't know if that's still the
> case or not. I tried building a Maven distribution today to check, but the
> build fails due to the current compiler being on version 0.9.9 and the
> framework still expecting 0.9.8.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
>> Hi Josh,
>>
>> thanks, I added "frameworks" in TDJ +royalelib but seems it doesn't have
>> effect, stil debug TDJ but not classes in Jewel.
>> Don't see what it could be :?
>>
>> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<joshtynjala@bowlerhat.dev
>> >)
>> escribió:
>>
>> > Looking over previous emails in this thread, it looks like you forgot to
>> > add /frameworks at the end of the +royalelib path.
>> >
>> > You have:
>> >
>> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> >
>> > It should be:
>> >
>> >
>> >
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
>> >
>> > --
>> > Josh Tynjala
>> > Bowler Hat LLC <https://bowlerhat.dev>
>> >
>> >
>> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <ca...@apache.org>
>> > wrote:
>> >
>> > > Hi,
>> > >
>> > > just fyi I added:
>> > >
>> > >
>> > -source-map-source-root=/frameworks/projects/{$project.artifactId}/
>> > >
>> > > at frameworks/projects/pom.xml
>> > > so now we have setup source maps in all libraries
>> > >
>> > > but while that seems ok, I'm not getting lib debugging as I stated in
>> my
>> > > last email.
>> > >
>> > >
>> > >
>> > >
>> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
>> carlosrovira@apache.org
>> > >)
>> > > escribió:
>> > >
>> > > > Ok Josh,
>> > > >
>> > > > so all seems ok, but debug is not working in classes from Jewel lib.
>> > > > I see the jewel.swc has the js.map files in the same way I related,
>> so
>> > > > that's ok as you stated.
>> > > > I'm setting breakpoints in the same VSCode window for Jewel and TDJ
>> > > files,
>> > > > but only TDJ files (in the root or subfolders) are making execution
>> > stop.
>> > > > If I set up a breakpoint in let's say Jewel Button.as, that appears
>> > empty
>> > > > on execution and doesn't have effect, while TDJ appears red and
>> works
>> > ok.
>> > > >
>> > > > Do you know what could be happening?
>> > > >
>> > > >
>> > > >
>> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
>> > joshtynjala@bowlerhat.dev
>> > > >)
>> > > > escribió:
>> > > >
>> > > >> The path of the .js.map file is relative to the .js file. Since
>> the
>> > > >> .js.map file is supposed to be in the same folder as the .js file,
>> > that
>> > > >> looks correct to me.
>> > > >>
>> > > >> --
>> > > >> Josh Tynjala
>> > > >> Bowler Hat LLC <https://bowlerhat.dev>
>> > > >>
>> > > >>
>> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
>> > carlosrovira@apache.org>
>> > > >> wrote:
>> > > >>
>> > > >> > Hi Josh,
>> > > >> >
>> > > >> > I'm trying to debug jewel classes in TDJ and for example
>> > > >> AlertController.js
>> > > >> > has at the end:
>> > > >> >
>> > > >> > //# sourceMappingURL=./AlertController.js.map
>> > > >> >
>> > > >> > It's ok? I expect it to reference the concrete subfolder:
>> > > >> > org/apache/royale/jewel/beads/controllers
>> > > >> >
>> > > >> >
>> > > >> >
>> > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
>> > > >> joshtynjala@bowlerhat.dev>)
>> > > >> > escribió:
>> > > >> >
>> > > >> > > Yes, you're right that +royalelib should not be required for
>> > > framework
>> > > >> > > libs. I wasn't paying close enough attention to see that you
>> had
>> > > added
>> > > >> > > +royalelib to both Jewel and TDJ.
>> > > >> > >
>> > > >> > > So, to summarize, you should use source-map-source-root when
>> > > building
>> > > >> > > framework libs, and you should use +royalelib when building
>> > > >> > examples/apps.
>> > > >> > > +royalelib is not necessary for framework libs, and
>> > > >> > source-map-source-root
>> > > >> > > is (generally) not necessary for examples/apps.
>> > > >> > >
>> > > >> > > --
>> > > >> > > Josh Tynjala
>> > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
>> > > >> > >
>> > > >> > >
>> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
>> > > carlosrovira@apache.org
>> > > >> >
>> > > >> > > wrote:
>> > > >> > >
>> > > >> > > > Hi Josh,
>> > > >> > > >
>> > > >> > > > I discover right now that I was understanding wrong how all
>> this
>> > > >> works.
>> > > >> > > > I thought we needed +royalelib in framework libs, but it's
>> not
>> > the
>> > > >> > case.
>> > > >> > > > Just need to add +royalelib to a final project, so that can
>> be
>> > > left
>> > > >> to
>> > > >> > > the
>> > > >> > > > user.
>> > > >> > > >
>> > > >> > > > That means that we can add to all libs this:
>> > > >> > > >
>> -source-map-source-root=/frameworks/projects/XXX/target/
>> > > >> > > > (Where XXX is the root libraryfolder) -> For this I'll be
>> adding
>> > > in
>> > > >> a
>> > > >> > > > commit soon
>> > > >> > > >
>> > > >> > > > So, Chris, we don't need anything more to implement, as I
>> commit
>> > > the
>> > > >> > > > -source-map-source-root line in all framework poms.
>> > > >> > > >
>> > > >> > > > Another thing is if we should upload all source maps (js.map
>> > > files)
>> > > >> of
>> > > >> > > all
>> > > >> > > > framework libs to some r.a.o url (for example /debug), and if
>> > > people
>> > > >> > can
>> > > >> > > > point with +royalelib (i.e: +royalelib=
>> > > >> http://royale.apache.org/debug
>> > > >> > )
>> > > >> > > >
>> > > >> > > > What do you think?
>> > > >> > > >
>> > > >> > > >
>> > > >> > > >
>> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
>> > > >> > joshtynjala@bowlerhat.dev
>> > > >> > > >)
>> > > >> > > > escribió:
>> > > >> > > >
>> > > >> > > > > While we can set source-map-source-root in all of the
>> library
>> > > >> > > projects, I
>> > > >> > > > > don't think that there's any way for us to specify
>> +royalelib
>> > > for
>> > > >> TDJ
>> > > >> > > and
>> > > >> > > > > other examples in a general way. That's the one thing that
>> > users
>> > > >> will
>> > > >> > > > > probably need to set up manually because the source files
>> come
>> > > >> from
>> > > >> > an
>> > > >> > > > > IDE-compatible SDK.
>> > > >> > > > >
>> > > >> > > > > --
>> > > >> > > > > Josh Tynjala
>> > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
>> > > >> > > > >
>> > > >> > > > >
>> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
>> > > >> > carlosrovira@apache.org>
>> > > >> > > > > wrote:
>> > > >> > > > >
>> > > >> > > > > > 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 (<
>> > > >> > > > carlosrovira@apache.org
>> > > >> > > > > >)
>> > > >> > > > > > escribió:
>> > > >> > > > > >
>> > > >> > > > > > > Hi Josh, Thanks! That worked and I finally have
>> debugging
>> > > >> again!
>> > > >> > :D
>> > > >> > > > > > >
>> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
>> > > >> > > > > joshtynjala@bowlerhat.dev
>> > > >> > > > > > >)
>> > > >> > > > > > > escribió:
>> > > >> > > > > > >
>> > > >> > > > > > >> Hey Carlos,
>> > > >> > > > > > >>
>> > > >> > > > > > >> Try using source-map-source-root with Jewel only, and
>> > omit
>> > > it
>> > > >> > from
>> > > >> > > > > TDJ.
>> > > >> > > > > > >>
>> > > >> > > > > > >> Jewel:
>> > > >> > > > > > >>
>> > > >> > > > > > >> <additionalCompilerOptions>
>> > > >> > > > > > >>
>> > > >> >
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > >> > > > > > >> -source-map=true;
>> > > >> > > > > > >> -source-map-source-root=/frameworks/projects/Jewel/
>> > > >> > > > > > >> </additionalCompilerOptions>
>> > > >> > > > > > >>
>> > > >> > > > > > >> TDJ:
>> > > >> > > > > > >>
>> > > >> > > > > > >> <additionalCompilerOptions>
>> > > >> > > > > > >>
>> > > >> >
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > >> > > > > > >> -source-map=true;
>> > > >> > > > > > >> </additionalCompilerOptions>
>> > > >> > > > > > >>
>> > > >> > > > > > >> 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 <https://bowlerhat.dev>
>> > > >> > > > > > >>
>> > > >> > > > > > >>
>> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
>> > > >> > > > carlosrovira@apache.org
>> > > >> > > > > >
>> > > >> > > > > > >> 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:
>> > > >> > > > > > >> >
>> > > >> > > > > > >> > <additionalCompilerOptions>
>> > > >> > > > > > >> >
>> > > >> > >
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > >> > > > > > >> > -source-map=true;
>> > > >> > > > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
>> > > >> > > > > > >> > </additionalCompilerOptions>
>> > > >> > > > > > >> >
>> > > >> > > > > > >> > and in TDJ:
>> > > >> > > > > > >> >
>> > > >> > > > > > >> >
>> > > >> > >
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > >> > > > > > >> > -source-map=true;
>> > > >> > > > > > >> > -source-map-source-root=/examples/jewel/TourDeJewel
>> > > >> > > > > > >> > </additionalCompilerOptions>
>> > > >> > > > > > >> >
>> > > >> > > > > > >> > 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.dutz@c-ware.de>)
>> > > >> > > > > > >> > escribió:
>> > > >> > > > > > >> >
>> > > >> > > > > > >> >> Hi all,
>> > > >> > > > > > >> >>
>> > > >> > > > > > >> >> Sure, happy to help, but what exactly do you need?
>> > > >> > > > > > >> >>
>> > > >> > > > > > >> >> Chris
>> > > >> > > > > > >> >> ------------------------------
>> > > >> > > > > > >> >> *Von:* Carlos Rovira <ca...@apache.org>
>> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
>> > > >> > > > > > >> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>;
>> > > >> Christofer
>> > > >> > > Dutz
>> > > >> > > > <
>> > > >> > > > > > >> >> christofer.dutz@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 (<
>> > > >> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
>> > > >> > > > > > >> >>
>> > > >> > > > > > >> >>
>> > > >> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
>> > > >> > > > > > carlosrovira@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:
>> > > >> > > > > > >> >>
>> > > >> > > > > > >> >> <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
>> > > >> > > > > > >> >>
>> > > >> > > > > > >> >>
>> > > >> > > > > > >> >
>> > > >> > > > > > >> > --
>> > > >> > > > > > >> > 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
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > > >
>> > > >> > > > --
>> > > >> > > > 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
>> > > >
>> > > >
>> > >
>> > > --
>> > > 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
>>
>
Re: Configuring source maps on Royale with new compiler options
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
Hi Greg,
I found the issue. In each of the pom.xml files in distribution/jars, you
switched to ${royale.compiler.version}, but in distribution/pom.xml, it
still referenced these JAR files as 0.9.8-SNAPSHOT. Now, with my latest
commit, it's consistently using ${royale.compiler.version} in both places.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Fri, Jan 8, 2021 at 1:05 PM Greg Dove <gr...@gmail.com> wrote:
> I deleted all the 0.9.8-SNAPSHOT folders inside each of the m2 compiler
> subfolders. It still worked after that (although tbh I did use mvn clean
> install and not mvn install)
>
>
> On Sat, Jan 9, 2021 at 9:16 AM Josh Tynjala <jo...@bowlerhat.dev>
> wrote:
>
> > What if you go into your Maven cache and delete the 0.9.8 compiler? Maybe
> > it's using that version for the distribution part of the build only, but
> > 0.9.9 for everything else?
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Fri, Jan 8, 2021 at 11:28 AM Greg Dove <gr...@gmail.com> wrote:
> >
> > > That's odd, it 'works for me' when doing exactly the same thing. I'm
> not
> > > sure if it was relevant, but the maven build of framework libs was
> broken
> > > before my very recent commit.
> > > Because maven doesn't seem to halt on failure, perhaps there was some
> > issue
> > > after that. Aside from that, I am not sure what is causing the
> > > difference....
> > >
> > >
> > > On Sat, Jan 9, 2021 at 8:10 AM Josh Tynjala <joshtynjala@bowlerhat.dev
> >
> > > wrote:
> > >
> > > > Yes, I double-checked that I am up-to-date. The framework seems to
> > build
> > > > successfully, but once it tries making the distribution, that's where
> > > it's
> > > > failing.
> > > >
> > > > > [ERROR] Failed to execute goal on project distribution: Could not
> > > resolve
> > > > dependencies for project
> > > > org.apache.royale.framework:distribution:pom:0.9.8-SNAPSHOT: The
> > > following
> > > > artifacts could not be resolved:
> > > > org.apache.royale.framework.distribution:compc:jar:0.9.8-SNAPSHOT,
> > > > org.apache.royale.framework.distribution:mxmlc:jar:0.9.8-SNAPSHOT,
> > > >
> > org.apache.royale.framework.distribution:compiler-asc:jar:0.9.8-SNAPSHOT,
> > > >
> > >
> >
> org.apache.royale.framework.distribution:compiler-compc:jar:0.9.8-SNAPSHOT,
> > > >
> > >
> >
> org.apache.royale.framework.distribution:compiler-mxmlc:jar:0.9.8-SNAPSHOT,
> > > >
> > > >
> > >
> >
> org.apache.royale.framework.distribution:compiler-compjsc:jar:0.9.8-SNAPSHOT,
> > > >
> > > >
> > >
> >
> org.apache.royale.framework.distribution:compiler-mxmljsc:jar:0.9.8-SNAPSHOT,
> > > >
> > > >
> > >
> >
> org.apache.royale.framework.distribution:compiler-optimizer:jar:0.9.8-SNAPSHOT,
> > > >
> > > >
> > >
> >
> org.apache.royale.framework.distribution:compiler-swfdump:jar:0.9.8-SNAPSHOT:
> > > > Failure to find
> > > > org.apache.royale.framework.distribution:compc:jar:0.9.8-SNAPSHOT in
> > > > https://repository.apache.org/snapshots was cached in the local
> > > > repository,
> > > > resolution will not be reattempted until the update interval of
> > > > apache.snapshots has elapsed or updates are forced -> [Help 1]
> > > >
> > > > This is the command that I'm running:
> > > >
> > > > mvn install -P with-distribution
> > > >
> > > > --
> > > > Josh Tynjala
> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >
> > > >
> > > > On Fri, Jan 8, 2021 at 11:01 AM Greg Dove <gr...@gmail.com>
> wrote:
> > > >
> > > > > Josh, are you using the latest updates from asjs?
> > > > > I thought I had added a workaround for that the other day: I
> updated
> > > the
> > > > > compiler to 0.9.9 for the framework and Hiedra subsequently said
> that
> > > it
> > > > > broke the maven distribution build. I don't use that maven profile
> so
> > > had
> > > > > not seen that previously, but I made a few changes and tested it
> and
> > it
> > > > was
> > > > > working (and it also worked for Hiedra after the changes).
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Sat, Jan 9, 2021 at 7:33 AM Josh Tynjala <
> > joshtynjala@bowlerhat.dev
> > > >
> > > > > wrote:
> > > > >
> > > > > > Carlos, are you using a Maven distribution as your IDE-compatible
> > > SDK?
> > > > > The
> > > > > > last time that I built one, I seem to recall that the
> distribution
> > > did
> > > > > not
> > > > > > include the original .as source files. I don't know if that's
> still
> > > the
> > > > > > case or not. I tried building a Maven distribution today to
> check,
> > > but
> > > > > the
> > > > > > build fails due to the current compiler being on version 0.9.9
> and
> > > the
> > > > > > framework still expecting 0.9.8.
> > > > > >
> > > > > > --
> > > > > > Josh Tynjala
> > > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >
> > > > > >
> > > > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
> > > carlosrovira@apache.org
> > > > >
> > > > > > wrote:
> > > > > >
> > > > > > > Hi Josh,
> > > > > > >
> > > > > > > thanks, I added "frameworks" in TDJ +royalelib but seems it
> > doesn't
> > > > > have
> > > > > > > effect, stil debug TDJ but not classes in Jewel.
> > > > > > > Don't see what it could be :?
> > > > > > >
> > > > > > > El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > > > > joshtynjala@bowlerhat.dev
> > > > > > >)
> > > > > > > escribió:
> > > > > > >
> > > > > > > > Looking over previous emails in this thread, it looks like
> you
> > > > forgot
> > > > > > to
> > > > > > > > add /frameworks at the end of the +royalelib path.
> > > > > > > >
> > > > > > > > You have:
> > > > > > > >
> > > > > > > >
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > > >
> > > > > > > > It should be:
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
> > > > > > > >
> > > > > > > > --
> > > > > > > > Josh Tynjala
> > > > > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > >
> > > > > > > >
> > > > > > > > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > > > > carlosrovira@apache.org
> > > > > > >
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > > > Hi,
> > > > > > > > >
> > > > > > > > > just fyi I added:
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > > > > > > >
> > > > > > > > > at frameworks/projects/pom.xml
> > > > > > > > > so now we have setup source maps in all libraries
> > > > > > > > >
> > > > > > > > > but while that seems ok, I'm not getting lib debugging as I
> > > > stated
> > > > > in
> > > > > > > my
> > > > > > > > > last email.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > > > > > > carlosrovira@apache.org
> > > > > > > > >)
> > > > > > > > > escribió:
> > > > > > > > >
> > > > > > > > > > Ok Josh,
> > > > > > > > > >
> > > > > > > > > > so all seems ok, but debug is not working in classes from
> > > Jewel
> > > > > > lib.
> > > > > > > > > > I see the jewel.swc has the js.map files in the same way
> I
> > > > > related,
> > > > > > > so
> > > > > > > > > > that's ok as you stated.
> > > > > > > > > > I'm setting breakpoints in the same VSCode window for
> Jewel
> > > and
> > > > > TDJ
> > > > > > > > > files,
> > > > > > > > > > but only TDJ files (in the root or subfolders) are making
> > > > > execution
> > > > > > > > stop.
> > > > > > > > > > If I set up a breakpoint in let's say Jewel Button.as,
> that
> > > > > appears
> > > > > > > > empty
> > > > > > > > > > on execution and doesn't have effect, while TDJ appears
> red
> > > and
> > > > > > works
> > > > > > > > ok.
> > > > > > > > > >
> > > > > > > > > > Do you know what could be happening?
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> > > > > > > > joshtynjala@bowlerhat.dev
> > > > > > > > > >)
> > > > > > > > > > escribió:
> > > > > > > > > >
> > > > > > > > > >> The path of the .js.map file is relative to the .js
> file.
> > > > Since
> > > > > > the
> > > > > > > > > >> .js.map file is supposed to be in the same folder as the
> > .js
> > > > > file,
> > > > > > > > that
> > > > > > > > > >> looks correct to me.
> > > > > > > > > >>
> > > > > > > > > >> --
> > > > > > > > > >> Josh Tynjala
> > > > > > > > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > > > >>
> > > > > > > > > >>
> > > > > > > > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> > > > > > > > carlosrovira@apache.org>
> > > > > > > > > >> wrote:
> > > > > > > > > >>
> > > > > > > > > >> > Hi Josh,
> > > > > > > > > >> >
> > > > > > > > > >> > I'm trying to debug jewel classes in TDJ and for
> example
> > > > > > > > > >> AlertController.js
> > > > > > > > > >> > has at the end:
> > > > > > > > > >> >
> > > > > > > > > >> > //# sourceMappingURL=./AlertController.js.map
> > > > > > > > > >> >
> > > > > > > > > >> > It's ok? I expect it to reference the concrete
> > subfolder:
> > > > > > > > > >> > org/apache/royale/jewel/beads/controllers
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> > > > > > > > > >> joshtynjala@bowlerhat.dev>)
> > > > > > > > > >> > escribió:
> > > > > > > > > >> >
> > > > > > > > > >> > > Yes, you're right that +royalelib should not be
> > required
> > > > for
> > > > > > > > > framework
> > > > > > > > > >> > > libs. I wasn't paying close enough attention to see
> > that
> > > > you
> > > > > > had
> > > > > > > > > added
> > > > > > > > > >> > > +royalelib to both Jewel and TDJ.
> > > > > > > > > >> > >
> > > > > > > > > >> > > So, to summarize, you should use
> > source-map-source-root
> > > > when
> > > > > > > > > building
> > > > > > > > > >> > > framework libs, and you should use +royalelib when
> > > > building
> > > > > > > > > >> > examples/apps.
> > > > > > > > > >> > > +royalelib is not necessary for framework libs, and
> > > > > > > > > >> > source-map-source-root
> > > > > > > > > >> > > is (generally) not necessary for examples/apps.
> > > > > > > > > >> > >
> > > > > > > > > >> > > --
> > > > > > > > > >> > > Josh Tynjala
> > > > > > > > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > > > >> > >
> > > > > > > > > >> > >
> > > > > > > > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> > > > > > > > > carlosrovira@apache.org
> > > > > > > > > >> >
> > > > > > > > > >> > > wrote:
> > > > > > > > > >> > >
> > > > > > > > > >> > > > Hi Josh,
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > I discover right now that I was understanding
> wrong
> > > how
> > > > > all
> > > > > > > this
> > > > > > > > > >> works.
> > > > > > > > > >> > > > I thought we needed +royalelib in framework libs,
> > but
> > > > it's
> > > > > > not
> > > > > > > > the
> > > > > > > > > >> > case.
> > > > > > > > > >> > > > Just need to add +royalelib to a final project, so
> > > that
> > > > > can
> > > > > > be
> > > > > > > > > left
> > > > > > > > > >> to
> > > > > > > > > >> > > the
> > > > > > > > > >> > > > user.
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > That means that we can add to all libs this:
> > > > > > > > > >> > > >
> > > > > > -source-map-source-root=/frameworks/projects/XXX/target/
> > > > > > > > > >> > > > (Where XXX is the root libraryfolder) -> For this
> > I'll
> > > > be
> > > > > > > adding
> > > > > > > > > in
> > > > > > > > > >> a
> > > > > > > > > >> > > > commit soon
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > So, Chris, we don't need anything more to
> implement,
> > > as
> > > > I
> > > > > > > commit
> > > > > > > > > the
> > > > > > > > > >> > > > -source-map-source-root line in all framework
> poms.
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > Another thing is if we should upload all source
> maps
> > > > > (js.map
> > > > > > > > > files)
> > > > > > > > > >> of
> > > > > > > > > >> > > all
> > > > > > > > > >> > > > framework libs to some r.a.o url (for example
> > /debug),
> > > > and
> > > > > > if
> > > > > > > > > people
> > > > > > > > > >> > can
> > > > > > > > > >> > > > point with +royalelib (i.e: +royalelib=
> > > > > > > > > >> http://royale.apache.org/debug
> > > > > > > > > >> > )
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > What do you think?
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> > > > > > > > > >> > joshtynjala@bowlerhat.dev
> > > > > > > > > >> > > >)
> > > > > > > > > >> > > > escribió:
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > > While we can set source-map-source-root in all
> of
> > > the
> > > > > > > library
> > > > > > > > > >> > > projects, I
> > > > > > > > > >> > > > > don't think that there's any way for us to
> specify
> > > > > > > +royalelib
> > > > > > > > > for
> > > > > > > > > >> TDJ
> > > > > > > > > >> > > and
> > > > > > > > > >> > > > > other examples in a general way. That's the one
> > > thing
> > > > > that
> > > > > > > > users
> > > > > > > > > >> will
> > > > > > > > > >> > > > > probably need to set up manually because the
> > source
> > > > > files
> > > > > > > come
> > > > > > > > > >> from
> > > > > > > > > >> > an
> > > > > > > > > >> > > > > IDE-compatible SDK.
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > > --
> > > > > > > > > >> > > > > Josh Tynjala
> > > > > > > > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> > > > > > > > > >> > carlosrovira@apache.org>
> > > > > > > > > >> > > > > wrote:
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > > > 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
> (<
> > > > > > > > > >> > > > carlosrovira@apache.org
> > > > > > > > > >> > > > > >)
> > > > > > > > > >> > > > > > escribió:
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > > Hi Josh, Thanks! That worked and I finally
> > have
> > > > > > > debugging
> > > > > > > > > >> again!
> > > > > > > > > >> > :D
> > > > > > > > > >> > > > > > >
> > > > > > > > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala
> > (<
> > > > > > > > > >> > > > > joshtynjala@bowlerhat.dev
> > > > > > > > > >> > > > > > >)
> > > > > > > > > >> > > > > > > escribió:
> > > > > > > > > >> > > > > > >
> > > > > > > > > >> > > > > > >> Hey Carlos,
> > > > > > > > > >> > > > > > >>
> > > > > > > > > >> > > > > > >> Try using source-map-source-root with Jewel
> > > only,
> > > > > and
> > > > > > > > omit
> > > > > > > > > it
> > > > > > > > > >> > from
> > > > > > > > > >> > > > > TDJ.
> > > > > > > > > >> > > > > > >>
> > > > > > > > > >> > > > > > >> Jewel:
> > > > > > > > > >> > > > > > >>
> > > > > > > > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > > > > >> > > > > > >>
> > > > > > > > > >> >
> > > > > >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > > > > >> > > > > > >> -source-map=true;
> > > > > > > > > >> > > > > > >>
> > > > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > > > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > > > > >> > > > > > >>
> > > > > > > > > >> > > > > > >> TDJ:
> > > > > > > > > >> > > > > > >>
> > > > > > > > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > > > > >> > > > > > >>
> > > > > > > > > >> >
> > > > > >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > > > > >> > > > > > >> -source-map=true;
> > > > > > > > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > > > > >> > > > > > >>
> > > > > > > > > >> > > > > > >> 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 <https://bowlerhat.dev>
> > > > > > > > > >> > > > > > >>
> > > > > > > > > >> > > > > > >>
> > > > > > > > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos
> Rovira
> > <
> > > > > > > > > >> > > > carlosrovira@apache.org
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > >> 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:
> > > > > > > > > >> > > > > > >> >
> > > > > > > > > >> > > > > > >> > <additionalCompilerOptions>
> > > > > > > > > >> > > > > > >> >
> > > > > > > > > >> > >
> > > > > > >
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > > > > >> > > > > > >> > -source-map=true;
> > > > > > > > > >> > > > > > >> >
> > > > > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > > > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > > > > >> > > > > > >> >
> > > > > > > > > >> > > > > > >> > and in TDJ:
> > > > > > > > > >> > > > > > >> >
> > > > > > > > > >> > > > > > >> >
> > > > > > > > > >> > >
> > > > > > >
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > > > > >> > > > > > >> > -source-map=true;
> > > > > > > > > >> > > > > > >> >
> > > > > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > > > > > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > > > > >> > > > > > >> >
> > > > > > > > > >> > > > > > >> > 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.dutz@c-ware.de>)
> > > > > > > > > >> > > > > > >> > escribió:
> > > > > > > > > >> > > > > > >> >
> > > > > > > > > >> > > > > > >> >> Hi all,
> > > > > > > > > >> > > > > > >> >>
> > > > > > > > > >> > > > > > >> >> Sure, happy to help, but what exactly do
> > you
> > > > > need?
> > > > > > > > > >> > > > > > >> >>
> > > > > > > > > >> > > > > > >> >> Chris
> > > > > > > > > >> > > > > > >> >> ------------------------------
> > > > > > > > > >> > > > > > >> >> *Von:* Carlos Rovira <
> > > carlosrovira@apache.org
> > > > >
> > > > > > > > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021
> 23:23
> > > > > > > > > >> > > > > > >> >> *An:* Josh Tynjala <
> > > joshtynjala@bowlerhat.dev
> > > > >;
> > > > > > > > > >> Christofer
> > > > > > > > > >> > > Dutz
> > > > > > > > > >> > > > <
> > > > > > > > > >> > > > > > >> >> christofer.dutz@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
> > > > (<
> > > > > > > > > >> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
> > > > > > > > > >> > > > > > >> >>
> > > > > > > > > >> > > > > > >> >>
> > > > > > > > > >> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos
> > > Rovira
> > > > <
> > > > > > > > > >> > > > > > carlosrovira@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:
> > > > > > > > > >> > > > > > >> >>
> > > > > > > > > >> > > > > > >> >> <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
> > > > > > > > > >> > > > > > >> >>
> > > > > > > > > >> > > > > > >> >>
> > > > > > > > > >> > > > > > >> >
> > > > > > > > > >> > > > > > >> > --
> > > > > > > > > >> > > > > > >> > 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
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > --
> > > > > > > > > >> > > > 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
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > 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
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: Configuring source maps on Royale with new compiler options
Posted by Greg Dove <gr...@gmail.com>.
I deleted all the 0.9.8-SNAPSHOT folders inside each of the m2 compiler
subfolders. It still worked after that (although tbh I did use mvn clean
install and not mvn install)
On Sat, Jan 9, 2021 at 9:16 AM Josh Tynjala <jo...@bowlerhat.dev>
wrote:
> What if you go into your Maven cache and delete the 0.9.8 compiler? Maybe
> it's using that version for the distribution part of the build only, but
> 0.9.9 for everything else?
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Fri, Jan 8, 2021 at 11:28 AM Greg Dove <gr...@gmail.com> wrote:
>
> > That's odd, it 'works for me' when doing exactly the same thing. I'm not
> > sure if it was relevant, but the maven build of framework libs was broken
> > before my very recent commit.
> > Because maven doesn't seem to halt on failure, perhaps there was some
> issue
> > after that. Aside from that, I am not sure what is causing the
> > difference....
> >
> >
> > On Sat, Jan 9, 2021 at 8:10 AM Josh Tynjala <jo...@bowlerhat.dev>
> > wrote:
> >
> > > Yes, I double-checked that I am up-to-date. The framework seems to
> build
> > > successfully, but once it tries making the distribution, that's where
> > it's
> > > failing.
> > >
> > > > [ERROR] Failed to execute goal on project distribution: Could not
> > resolve
> > > dependencies for project
> > > org.apache.royale.framework:distribution:pom:0.9.8-SNAPSHOT: The
> > following
> > > artifacts could not be resolved:
> > > org.apache.royale.framework.distribution:compc:jar:0.9.8-SNAPSHOT,
> > > org.apache.royale.framework.distribution:mxmlc:jar:0.9.8-SNAPSHOT,
> > >
> org.apache.royale.framework.distribution:compiler-asc:jar:0.9.8-SNAPSHOT,
> > >
> >
> org.apache.royale.framework.distribution:compiler-compc:jar:0.9.8-SNAPSHOT,
> > >
> >
> org.apache.royale.framework.distribution:compiler-mxmlc:jar:0.9.8-SNAPSHOT,
> > >
> > >
> >
> org.apache.royale.framework.distribution:compiler-compjsc:jar:0.9.8-SNAPSHOT,
> > >
> > >
> >
> org.apache.royale.framework.distribution:compiler-mxmljsc:jar:0.9.8-SNAPSHOT,
> > >
> > >
> >
> org.apache.royale.framework.distribution:compiler-optimizer:jar:0.9.8-SNAPSHOT,
> > >
> > >
> >
> org.apache.royale.framework.distribution:compiler-swfdump:jar:0.9.8-SNAPSHOT:
> > > Failure to find
> > > org.apache.royale.framework.distribution:compc:jar:0.9.8-SNAPSHOT in
> > > https://repository.apache.org/snapshots was cached in the local
> > > repository,
> > > resolution will not be reattempted until the update interval of
> > > apache.snapshots has elapsed or updates are forced -> [Help 1]
> > >
> > > This is the command that I'm running:
> > >
> > > mvn install -P with-distribution
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >
> > >
> > > On Fri, Jan 8, 2021 at 11:01 AM Greg Dove <gr...@gmail.com> wrote:
> > >
> > > > Josh, are you using the latest updates from asjs?
> > > > I thought I had added a workaround for that the other day: I updated
> > the
> > > > compiler to 0.9.9 for the framework and Hiedra subsequently said that
> > it
> > > > broke the maven distribution build. I don't use that maven profile so
> > had
> > > > not seen that previously, but I made a few changes and tested it and
> it
> > > was
> > > > working (and it also worked for Hiedra after the changes).
> > > >
> > > >
> > > >
> > > >
> > > > On Sat, Jan 9, 2021 at 7:33 AM Josh Tynjala <
> joshtynjala@bowlerhat.dev
> > >
> > > > wrote:
> > > >
> > > > > Carlos, are you using a Maven distribution as your IDE-compatible
> > SDK?
> > > > The
> > > > > last time that I built one, I seem to recall that the distribution
> > did
> > > > not
> > > > > include the original .as source files. I don't know if that's still
> > the
> > > > > case or not. I tried building a Maven distribution today to check,
> > but
> > > > the
> > > > > build fails due to the current compiler being on version 0.9.9 and
> > the
> > > > > framework still expecting 0.9.8.
> > > > >
> > > > > --
> > > > > Josh Tynjala
> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >
> > > > >
> > > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
> > carlosrovira@apache.org
> > > >
> > > > > wrote:
> > > > >
> > > > > > Hi Josh,
> > > > > >
> > > > > > thanks, I added "frameworks" in TDJ +royalelib but seems it
> doesn't
> > > > have
> > > > > > effect, stil debug TDJ but not classes in Jewel.
> > > > > > Don't see what it could be :?
> > > > > >
> > > > > > El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > > > joshtynjala@bowlerhat.dev
> > > > > >)
> > > > > > escribió:
> > > > > >
> > > > > > > Looking over previous emails in this thread, it looks like you
> > > forgot
> > > > > to
> > > > > > > add /frameworks at the end of the +royalelib path.
> > > > > > >
> > > > > > > You have:
> > > > > > >
> > > > > > >
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > >
> > > > > > > It should be:
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
> > > > > > >
> > > > > > > --
> > > > > > > Josh Tynjala
> > > > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >
> > > > > > >
> > > > > > > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > > > carlosrovira@apache.org
> > > > > >
> > > > > > > wrote:
> > > > > > >
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > just fyi I added:
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > > > > > >
> > > > > > > > at frameworks/projects/pom.xml
> > > > > > > > so now we have setup source maps in all libraries
> > > > > > > >
> > > > > > > > but while that seems ok, I'm not getting lib debugging as I
> > > stated
> > > > in
> > > > > > my
> > > > > > > > last email.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > > > > > carlosrovira@apache.org
> > > > > > > >)
> > > > > > > > escribió:
> > > > > > > >
> > > > > > > > > Ok Josh,
> > > > > > > > >
> > > > > > > > > so all seems ok, but debug is not working in classes from
> > Jewel
> > > > > lib.
> > > > > > > > > I see the jewel.swc has the js.map files in the same way I
> > > > related,
> > > > > > so
> > > > > > > > > that's ok as you stated.
> > > > > > > > > I'm setting breakpoints in the same VSCode window for Jewel
> > and
> > > > TDJ
> > > > > > > > files,
> > > > > > > > > but only TDJ files (in the root or subfolders) are making
> > > > execution
> > > > > > > stop.
> > > > > > > > > If I set up a breakpoint in let's say Jewel Button.as, that
> > > > appears
> > > > > > > empty
> > > > > > > > > on execution and doesn't have effect, while TDJ appears red
> > and
> > > > > works
> > > > > > > ok.
> > > > > > > > >
> > > > > > > > > Do you know what could be happening?
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> > > > > > > joshtynjala@bowlerhat.dev
> > > > > > > > >)
> > > > > > > > > escribió:
> > > > > > > > >
> > > > > > > > >> The path of the .js.map file is relative to the .js file.
> > > Since
> > > > > the
> > > > > > > > >> .js.map file is supposed to be in the same folder as the
> .js
> > > > file,
> > > > > > > that
> > > > > > > > >> looks correct to me.
> > > > > > > > >>
> > > > > > > > >> --
> > > > > > > > >> Josh Tynjala
> > > > > > > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> > > > > > > carlosrovira@apache.org>
> > > > > > > > >> wrote:
> > > > > > > > >>
> > > > > > > > >> > Hi Josh,
> > > > > > > > >> >
> > > > > > > > >> > I'm trying to debug jewel classes in TDJ and for example
> > > > > > > > >> AlertController.js
> > > > > > > > >> > has at the end:
> > > > > > > > >> >
> > > > > > > > >> > //# sourceMappingURL=./AlertController.js.map
> > > > > > > > >> >
> > > > > > > > >> > It's ok? I expect it to reference the concrete
> subfolder:
> > > > > > > > >> > org/apache/royale/jewel/beads/controllers
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> > > > > > > > >> joshtynjala@bowlerhat.dev>)
> > > > > > > > >> > escribió:
> > > > > > > > >> >
> > > > > > > > >> > > Yes, you're right that +royalelib should not be
> required
> > > for
> > > > > > > > framework
> > > > > > > > >> > > libs. I wasn't paying close enough attention to see
> that
> > > you
> > > > > had
> > > > > > > > added
> > > > > > > > >> > > +royalelib to both Jewel and TDJ.
> > > > > > > > >> > >
> > > > > > > > >> > > So, to summarize, you should use
> source-map-source-root
> > > when
> > > > > > > > building
> > > > > > > > >> > > framework libs, and you should use +royalelib when
> > > building
> > > > > > > > >> > examples/apps.
> > > > > > > > >> > > +royalelib is not necessary for framework libs, and
> > > > > > > > >> > source-map-source-root
> > > > > > > > >> > > is (generally) not necessary for examples/apps.
> > > > > > > > >> > >
> > > > > > > > >> > > --
> > > > > > > > >> > > Josh Tynjala
> > > > > > > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > > >> > >
> > > > > > > > >> > >
> > > > > > > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> > > > > > > > carlosrovira@apache.org
> > > > > > > > >> >
> > > > > > > > >> > > wrote:
> > > > > > > > >> > >
> > > > > > > > >> > > > Hi Josh,
> > > > > > > > >> > > >
> > > > > > > > >> > > > I discover right now that I was understanding wrong
> > how
> > > > all
> > > > > > this
> > > > > > > > >> works.
> > > > > > > > >> > > > I thought we needed +royalelib in framework libs,
> but
> > > it's
> > > > > not
> > > > > > > the
> > > > > > > > >> > case.
> > > > > > > > >> > > > Just need to add +royalelib to a final project, so
> > that
> > > > can
> > > > > be
> > > > > > > > left
> > > > > > > > >> to
> > > > > > > > >> > > the
> > > > > > > > >> > > > user.
> > > > > > > > >> > > >
> > > > > > > > >> > > > That means that we can add to all libs this:
> > > > > > > > >> > > >
> > > > > -source-map-source-root=/frameworks/projects/XXX/target/
> > > > > > > > >> > > > (Where XXX is the root libraryfolder) -> For this
> I'll
> > > be
> > > > > > adding
> > > > > > > > in
> > > > > > > > >> a
> > > > > > > > >> > > > commit soon
> > > > > > > > >> > > >
> > > > > > > > >> > > > So, Chris, we don't need anything more to implement,
> > as
> > > I
> > > > > > commit
> > > > > > > > the
> > > > > > > > >> > > > -source-map-source-root line in all framework poms.
> > > > > > > > >> > > >
> > > > > > > > >> > > > Another thing is if we should upload all source maps
> > > > (js.map
> > > > > > > > files)
> > > > > > > > >> of
> > > > > > > > >> > > all
> > > > > > > > >> > > > framework libs to some r.a.o url (for example
> /debug),
> > > and
> > > > > if
> > > > > > > > people
> > > > > > > > >> > can
> > > > > > > > >> > > > point with +royalelib (i.e: +royalelib=
> > > > > > > > >> http://royale.apache.org/debug
> > > > > > > > >> > )
> > > > > > > > >> > > >
> > > > > > > > >> > > > What do you think?
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> > > > > > > > >> > joshtynjala@bowlerhat.dev
> > > > > > > > >> > > >)
> > > > > > > > >> > > > escribió:
> > > > > > > > >> > > >
> > > > > > > > >> > > > > While we can set source-map-source-root in all of
> > the
> > > > > > library
> > > > > > > > >> > > projects, I
> > > > > > > > >> > > > > don't think that there's any way for us to specify
> > > > > > +royalelib
> > > > > > > > for
> > > > > > > > >> TDJ
> > > > > > > > >> > > and
> > > > > > > > >> > > > > other examples in a general way. That's the one
> > thing
> > > > that
> > > > > > > users
> > > > > > > > >> will
> > > > > > > > >> > > > > probably need to set up manually because the
> source
> > > > files
> > > > > > come
> > > > > > > > >> from
> > > > > > > > >> > an
> > > > > > > > >> > > > > IDE-compatible SDK.
> > > > > > > > >> > > > >
> > > > > > > > >> > > > > --
> > > > > > > > >> > > > > Josh Tynjala
> > > > > > > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > > >> > > > >
> > > > > > > > >> > > > >
> > > > > > > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> > > > > > > > >> > carlosrovira@apache.org>
> > > > > > > > >> > > > > wrote:
> > > > > > > > >> > > > >
> > > > > > > > >> > > > > > 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 (<
> > > > > > > > >> > > > carlosrovira@apache.org
> > > > > > > > >> > > > > >)
> > > > > > > > >> > > > > > escribió:
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > > Hi Josh, Thanks! That worked and I finally
> have
> > > > > > debugging
> > > > > > > > >> again!
> > > > > > > > >> > :D
> > > > > > > > >> > > > > > >
> > > > > > > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala
> (<
> > > > > > > > >> > > > > joshtynjala@bowlerhat.dev
> > > > > > > > >> > > > > > >)
> > > > > > > > >> > > > > > > escribió:
> > > > > > > > >> > > > > > >
> > > > > > > > >> > > > > > >> Hey Carlos,
> > > > > > > > >> > > > > > >>
> > > > > > > > >> > > > > > >> Try using source-map-source-root with Jewel
> > only,
> > > > and
> > > > > > > omit
> > > > > > > > it
> > > > > > > > >> > from
> > > > > > > > >> > > > > TDJ.
> > > > > > > > >> > > > > > >>
> > > > > > > > >> > > > > > >> Jewel:
> > > > > > > > >> > > > > > >>
> > > > > > > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > > > >> > > > > > >>
> > > > > > > > >> >
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > > > >> > > > > > >> -source-map=true;
> > > > > > > > >> > > > > > >>
> > > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > > > >> > > > > > >>
> > > > > > > > >> > > > > > >> TDJ:
> > > > > > > > >> > > > > > >>
> > > > > > > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > > > >> > > > > > >>
> > > > > > > > >> >
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > > > >> > > > > > >> -source-map=true;
> > > > > > > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > > > >> > > > > > >>
> > > > > > > > >> > > > > > >> 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 <https://bowlerhat.dev>
> > > > > > > > >> > > > > > >>
> > > > > > > > >> > > > > > >>
> > > > > > > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira
> <
> > > > > > > > >> > > > carlosrovira@apache.org
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > >> 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:
> > > > > > > > >> > > > > > >> >
> > > > > > > > >> > > > > > >> > <additionalCompilerOptions>
> > > > > > > > >> > > > > > >> >
> > > > > > > > >> > >
> > > > > >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > > > >> > > > > > >> > -source-map=true;
> > > > > > > > >> > > > > > >> >
> > > > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > > > >> > > > > > >> >
> > > > > > > > >> > > > > > >> > and in TDJ:
> > > > > > > > >> > > > > > >> >
> > > > > > > > >> > > > > > >> >
> > > > > > > > >> > >
> > > > > >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > > > >> > > > > > >> > -source-map=true;
> > > > > > > > >> > > > > > >> >
> > > > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > > > > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > > > >> > > > > > >> >
> > > > > > > > >> > > > > > >> > 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.dutz@c-ware.de>)
> > > > > > > > >> > > > > > >> > escribió:
> > > > > > > > >> > > > > > >> >
> > > > > > > > >> > > > > > >> >> Hi all,
> > > > > > > > >> > > > > > >> >>
> > > > > > > > >> > > > > > >> >> Sure, happy to help, but what exactly do
> you
> > > > need?
> > > > > > > > >> > > > > > >> >>
> > > > > > > > >> > > > > > >> >> Chris
> > > > > > > > >> > > > > > >> >> ------------------------------
> > > > > > > > >> > > > > > >> >> *Von:* Carlos Rovira <
> > carlosrovira@apache.org
> > > >
> > > > > > > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> > > > > > > > >> > > > > > >> >> *An:* Josh Tynjala <
> > joshtynjala@bowlerhat.dev
> > > >;
> > > > > > > > >> Christofer
> > > > > > > > >> > > Dutz
> > > > > > > > >> > > > <
> > > > > > > > >> > > > > > >> >> christofer.dutz@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
> > > (<
> > > > > > > > >> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
> > > > > > > > >> > > > > > >> >>
> > > > > > > > >> > > > > > >> >>
> > > > > > > > >> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos
> > Rovira
> > > <
> > > > > > > > >> > > > > > carlosrovira@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:
> > > > > > > > >> > > > > > >> >>
> > > > > > > > >> > > > > > >> >> <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
> > > > > > > > >> > > > > > >> >>
> > > > > > > > >> > > > > > >> >>
> > > > > > > > >> > > > > > >> >
> > > > > > > > >> > > > > > >> > --
> > > > > > > > >> > > > > > >> > 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
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > --
> > > > > > > > >> > > > 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
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > 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
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: Configuring source maps on Royale with new compiler options
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
What if you go into your Maven cache and delete the 0.9.8 compiler? Maybe
it's using that version for the distribution part of the build only, but
0.9.9 for everything else?
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Fri, Jan 8, 2021 at 11:28 AM Greg Dove <gr...@gmail.com> wrote:
> That's odd, it 'works for me' when doing exactly the same thing. I'm not
> sure if it was relevant, but the maven build of framework libs was broken
> before my very recent commit.
> Because maven doesn't seem to halt on failure, perhaps there was some issue
> after that. Aside from that, I am not sure what is causing the
> difference....
>
>
> On Sat, Jan 9, 2021 at 8:10 AM Josh Tynjala <jo...@bowlerhat.dev>
> wrote:
>
> > Yes, I double-checked that I am up-to-date. The framework seems to build
> > successfully, but once it tries making the distribution, that's where
> it's
> > failing.
> >
> > > [ERROR] Failed to execute goal on project distribution: Could not
> resolve
> > dependencies for project
> > org.apache.royale.framework:distribution:pom:0.9.8-SNAPSHOT: The
> following
> > artifacts could not be resolved:
> > org.apache.royale.framework.distribution:compc:jar:0.9.8-SNAPSHOT,
> > org.apache.royale.framework.distribution:mxmlc:jar:0.9.8-SNAPSHOT,
> > org.apache.royale.framework.distribution:compiler-asc:jar:0.9.8-SNAPSHOT,
> >
> org.apache.royale.framework.distribution:compiler-compc:jar:0.9.8-SNAPSHOT,
> >
> org.apache.royale.framework.distribution:compiler-mxmlc:jar:0.9.8-SNAPSHOT,
> >
> >
> org.apache.royale.framework.distribution:compiler-compjsc:jar:0.9.8-SNAPSHOT,
> >
> >
> org.apache.royale.framework.distribution:compiler-mxmljsc:jar:0.9.8-SNAPSHOT,
> >
> >
> org.apache.royale.framework.distribution:compiler-optimizer:jar:0.9.8-SNAPSHOT,
> >
> >
> org.apache.royale.framework.distribution:compiler-swfdump:jar:0.9.8-SNAPSHOT:
> > Failure to find
> > org.apache.royale.framework.distribution:compc:jar:0.9.8-SNAPSHOT in
> > https://repository.apache.org/snapshots was cached in the local
> > repository,
> > resolution will not be reattempted until the update interval of
> > apache.snapshots has elapsed or updates are forced -> [Help 1]
> >
> > This is the command that I'm running:
> >
> > mvn install -P with-distribution
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Fri, Jan 8, 2021 at 11:01 AM Greg Dove <gr...@gmail.com> wrote:
> >
> > > Josh, are you using the latest updates from asjs?
> > > I thought I had added a workaround for that the other day: I updated
> the
> > > compiler to 0.9.9 for the framework and Hiedra subsequently said that
> it
> > > broke the maven distribution build. I don't use that maven profile so
> had
> > > not seen that previously, but I made a few changes and tested it and it
> > was
> > > working (and it also worked for Hiedra after the changes).
> > >
> > >
> > >
> > >
> > > On Sat, Jan 9, 2021 at 7:33 AM Josh Tynjala <joshtynjala@bowlerhat.dev
> >
> > > wrote:
> > >
> > > > Carlos, are you using a Maven distribution as your IDE-compatible
> SDK?
> > > The
> > > > last time that I built one, I seem to recall that the distribution
> did
> > > not
> > > > include the original .as source files. I don't know if that's still
> the
> > > > case or not. I tried building a Maven distribution today to check,
> but
> > > the
> > > > build fails due to the current compiler being on version 0.9.9 and
> the
> > > > framework still expecting 0.9.8.
> > > >
> > > > --
> > > > Josh Tynjala
> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >
> > > >
> > > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
> carlosrovira@apache.org
> > >
> > > > wrote:
> > > >
> > > > > Hi Josh,
> > > > >
> > > > > thanks, I added "frameworks" in TDJ +royalelib but seems it doesn't
> > > have
> > > > > effect, stil debug TDJ but not classes in Jewel.
> > > > > Don't see what it could be :?
> > > > >
> > > > > El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > > joshtynjala@bowlerhat.dev
> > > > >)
> > > > > escribió:
> > > > >
> > > > > > Looking over previous emails in this thread, it looks like you
> > forgot
> > > > to
> > > > > > add /frameworks at the end of the +royalelib path.
> > > > > >
> > > > > > You have:
> > > > > >
> > > > > >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > >
> > > > > > It should be:
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
> > > > > >
> > > > > > --
> > > > > > Josh Tynjala
> > > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >
> > > > > >
> > > > > > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > > carlosrovira@apache.org
> > > > >
> > > > > > wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > just fyi I added:
> > > > > > >
> > > > > > >
> > > > > >
> > -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > > > > >
> > > > > > > at frameworks/projects/pom.xml
> > > > > > > so now we have setup source maps in all libraries
> > > > > > >
> > > > > > > but while that seems ok, I'm not getting lib debugging as I
> > stated
> > > in
> > > > > my
> > > > > > > last email.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > > > > carlosrovira@apache.org
> > > > > > >)
> > > > > > > escribió:
> > > > > > >
> > > > > > > > Ok Josh,
> > > > > > > >
> > > > > > > > so all seems ok, but debug is not working in classes from
> Jewel
> > > > lib.
> > > > > > > > I see the jewel.swc has the js.map files in the same way I
> > > related,
> > > > > so
> > > > > > > > that's ok as you stated.
> > > > > > > > I'm setting breakpoints in the same VSCode window for Jewel
> and
> > > TDJ
> > > > > > > files,
> > > > > > > > but only TDJ files (in the root or subfolders) are making
> > > execution
> > > > > > stop.
> > > > > > > > If I set up a breakpoint in let's say Jewel Button.as, that
> > > appears
> > > > > > empty
> > > > > > > > on execution and doesn't have effect, while TDJ appears red
> and
> > > > works
> > > > > > ok.
> > > > > > > >
> > > > > > > > Do you know what could be happening?
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> > > > > > joshtynjala@bowlerhat.dev
> > > > > > > >)
> > > > > > > > escribió:
> > > > > > > >
> > > > > > > >> The path of the .js.map file is relative to the .js file.
> > Since
> > > > the
> > > > > > > >> .js.map file is supposed to be in the same folder as the .js
> > > file,
> > > > > > that
> > > > > > > >> looks correct to me.
> > > > > > > >>
> > > > > > > >> --
> > > > > > > >> Josh Tynjala
> > > > > > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> > > > > > carlosrovira@apache.org>
> > > > > > > >> wrote:
> > > > > > > >>
> > > > > > > >> > Hi Josh,
> > > > > > > >> >
> > > > > > > >> > I'm trying to debug jewel classes in TDJ and for example
> > > > > > > >> AlertController.js
> > > > > > > >> > has at the end:
> > > > > > > >> >
> > > > > > > >> > //# sourceMappingURL=./AlertController.js.map
> > > > > > > >> >
> > > > > > > >> > It's ok? I expect it to reference the concrete subfolder:
> > > > > > > >> > org/apache/royale/jewel/beads/controllers
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> > > > > > > >> joshtynjala@bowlerhat.dev>)
> > > > > > > >> > escribió:
> > > > > > > >> >
> > > > > > > >> > > Yes, you're right that +royalelib should not be required
> > for
> > > > > > > framework
> > > > > > > >> > > libs. I wasn't paying close enough attention to see that
> > you
> > > > had
> > > > > > > added
> > > > > > > >> > > +royalelib to both Jewel and TDJ.
> > > > > > > >> > >
> > > > > > > >> > > So, to summarize, you should use source-map-source-root
> > when
> > > > > > > building
> > > > > > > >> > > framework libs, and you should use +royalelib when
> > building
> > > > > > > >> > examples/apps.
> > > > > > > >> > > +royalelib is not necessary for framework libs, and
> > > > > > > >> > source-map-source-root
> > > > > > > >> > > is (generally) not necessary for examples/apps.
> > > > > > > >> > >
> > > > > > > >> > > --
> > > > > > > >> > > Josh Tynjala
> > > > > > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > >> > >
> > > > > > > >> > >
> > > > > > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> > > > > > > carlosrovira@apache.org
> > > > > > > >> >
> > > > > > > >> > > wrote:
> > > > > > > >> > >
> > > > > > > >> > > > Hi Josh,
> > > > > > > >> > > >
> > > > > > > >> > > > I discover right now that I was understanding wrong
> how
> > > all
> > > > > this
> > > > > > > >> works.
> > > > > > > >> > > > I thought we needed +royalelib in framework libs, but
> > it's
> > > > not
> > > > > > the
> > > > > > > >> > case.
> > > > > > > >> > > > Just need to add +royalelib to a final project, so
> that
> > > can
> > > > be
> > > > > > > left
> > > > > > > >> to
> > > > > > > >> > > the
> > > > > > > >> > > > user.
> > > > > > > >> > > >
> > > > > > > >> > > > That means that we can add to all libs this:
> > > > > > > >> > > >
> > > > -source-map-source-root=/frameworks/projects/XXX/target/
> > > > > > > >> > > > (Where XXX is the root libraryfolder) -> For this I'll
> > be
> > > > > adding
> > > > > > > in
> > > > > > > >> a
> > > > > > > >> > > > commit soon
> > > > > > > >> > > >
> > > > > > > >> > > > So, Chris, we don't need anything more to implement,
> as
> > I
> > > > > commit
> > > > > > > the
> > > > > > > >> > > > -source-map-source-root line in all framework poms.
> > > > > > > >> > > >
> > > > > > > >> > > > Another thing is if we should upload all source maps
> > > (js.map
> > > > > > > files)
> > > > > > > >> of
> > > > > > > >> > > all
> > > > > > > >> > > > framework libs to some r.a.o url (for example /debug),
> > and
> > > > if
> > > > > > > people
> > > > > > > >> > can
> > > > > > > >> > > > point with +royalelib (i.e: +royalelib=
> > > > > > > >> http://royale.apache.org/debug
> > > > > > > >> > )
> > > > > > > >> > > >
> > > > > > > >> > > > What do you think?
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> > > > > > > >> > joshtynjala@bowlerhat.dev
> > > > > > > >> > > >)
> > > > > > > >> > > > escribió:
> > > > > > > >> > > >
> > > > > > > >> > > > > While we can set source-map-source-root in all of
> the
> > > > > library
> > > > > > > >> > > projects, I
> > > > > > > >> > > > > don't think that there's any way for us to specify
> > > > > +royalelib
> > > > > > > for
> > > > > > > >> TDJ
> > > > > > > >> > > and
> > > > > > > >> > > > > other examples in a general way. That's the one
> thing
> > > that
> > > > > > users
> > > > > > > >> will
> > > > > > > >> > > > > probably need to set up manually because the source
> > > files
> > > > > come
> > > > > > > >> from
> > > > > > > >> > an
> > > > > > > >> > > > > IDE-compatible SDK.
> > > > > > > >> > > > >
> > > > > > > >> > > > > --
> > > > > > > >> > > > > Josh Tynjala
> > > > > > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > > >> > > > >
> > > > > > > >> > > > >
> > > > > > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> > > > > > > >> > carlosrovira@apache.org>
> > > > > > > >> > > > > wrote:
> > > > > > > >> > > > >
> > > > > > > >> > > > > > 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 (<
> > > > > > > >> > > > carlosrovira@apache.org
> > > > > > > >> > > > > >)
> > > > > > > >> > > > > > escribió:
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > > Hi Josh, Thanks! That worked and I finally have
> > > > > debugging
> > > > > > > >> again!
> > > > > > > >> > :D
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
> > > > > > > >> > > > > joshtynjala@bowlerhat.dev
> > > > > > > >> > > > > > >)
> > > > > > > >> > > > > > > escribió:
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > >> Hey Carlos,
> > > > > > > >> > > > > > >>
> > > > > > > >> > > > > > >> Try using source-map-source-root with Jewel
> only,
> > > and
> > > > > > omit
> > > > > > > it
> > > > > > > >> > from
> > > > > > > >> > > > > TDJ.
> > > > > > > >> > > > > > >>
> > > > > > > >> > > > > > >> Jewel:
> > > > > > > >> > > > > > >>
> > > > > > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > > >> > > > > > >>
> > > > > > > >> >
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > > >> > > > > > >> -source-map=true;
> > > > > > > >> > > > > > >>
> > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > > >> > > > > > >>
> > > > > > > >> > > > > > >> TDJ:
> > > > > > > >> > > > > > >>
> > > > > > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > > >> > > > > > >>
> > > > > > > >> >
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > > >> > > > > > >> -source-map=true;
> > > > > > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > > >> > > > > > >>
> > > > > > > >> > > > > > >> 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 <https://bowlerhat.dev>
> > > > > > > >> > > > > > >>
> > > > > > > >> > > > > > >>
> > > > > > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
> > > > > > > >> > > > carlosrovira@apache.org
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > >> 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:
> > > > > > > >> > > > > > >> >
> > > > > > > >> > > > > > >> > <additionalCompilerOptions>
> > > > > > > >> > > > > > >> >
> > > > > > > >> > >
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > > >> > > > > > >> > -source-map=true;
> > > > > > > >> > > > > > >> >
> > > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > > >> > > > > > >> >
> > > > > > > >> > > > > > >> > and in TDJ:
> > > > > > > >> > > > > > >> >
> > > > > > > >> > > > > > >> >
> > > > > > > >> > >
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > > >> > > > > > >> > -source-map=true;
> > > > > > > >> > > > > > >> >
> > > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > > > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > > >> > > > > > >> >
> > > > > > > >> > > > > > >> > 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.dutz@c-ware.de>)
> > > > > > > >> > > > > > >> > escribió:
> > > > > > > >> > > > > > >> >
> > > > > > > >> > > > > > >> >> Hi all,
> > > > > > > >> > > > > > >> >>
> > > > > > > >> > > > > > >> >> Sure, happy to help, but what exactly do you
> > > need?
> > > > > > > >> > > > > > >> >>
> > > > > > > >> > > > > > >> >> Chris
> > > > > > > >> > > > > > >> >> ------------------------------
> > > > > > > >> > > > > > >> >> *Von:* Carlos Rovira <
> carlosrovira@apache.org
> > >
> > > > > > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> > > > > > > >> > > > > > >> >> *An:* Josh Tynjala <
> joshtynjala@bowlerhat.dev
> > >;
> > > > > > > >> Christofer
> > > > > > > >> > > Dutz
> > > > > > > >> > > > <
> > > > > > > >> > > > > > >> >> christofer.dutz@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
> > (<
> > > > > > > >> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
> > > > > > > >> > > > > > >> >>
> > > > > > > >> > > > > > >> >>
> > > > > > > >> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos
> Rovira
> > <
> > > > > > > >> > > > > > carlosrovira@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:
> > > > > > > >> > > > > > >> >>
> > > > > > > >> > > > > > >> >> <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
> > > > > > > >> > > > > > >> >>
> > > > > > > >> > > > > > >> >>
> > > > > > > >> > > > > > >> >
> > > > > > > >> > > > > > >> > --
> > > > > > > >> > > > > > >> > 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
> > > > > > > >> > > > > >
> > > > > > > >> > > > >
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > --
> > > > > > > >> > > > 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
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > 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
> > > > >
> > > >
> > >
> >
>
Re: Configuring source maps on Royale with new compiler options
Posted by Greg Dove <gr...@gmail.com>.
Actually this comment: "Because maven doesn't seem to halt on failure" is
not particularly accurate. Maven doesn't seem to cause an error in a
windows batch script like ant does if it has issues.
On Sat, Jan 9, 2021 at 8:27 AM Greg Dove <gr...@gmail.com> wrote:
>
> That's odd, it 'works for me' when doing exactly the same thing. I'm not
> sure if it was relevant, but the maven build of framework libs was broken
> before my very recent commit.
> Because maven doesn't seem to halt on failure, perhaps there was some
> issue after that. Aside from that, I am not sure what is causing the
> difference....
>
>
> On Sat, Jan 9, 2021 at 8:10 AM Josh Tynjala <jo...@bowlerhat.dev>
> wrote:
>
>> Yes, I double-checked that I am up-to-date. The framework seems to build
>> successfully, but once it tries making the distribution, that's where it's
>> failing.
>>
>> > [ERROR] Failed to execute goal on project distribution: Could not
>> resolve
>> dependencies for project
>> org.apache.royale.framework:distribution:pom:0.9.8-SNAPSHOT: The following
>> artifacts could not be resolved:
>> org.apache.royale.framework.distribution:compc:jar:0.9.8-SNAPSHOT,
>> org.apache.royale.framework.distribution:mxmlc:jar:0.9.8-SNAPSHOT,
>> org.apache.royale.framework.distribution:compiler-asc:jar:0.9.8-SNAPSHOT,
>>
>> org.apache.royale.framework.distribution:compiler-compc:jar:0.9.8-SNAPSHOT,
>>
>> org.apache.royale.framework.distribution:compiler-mxmlc:jar:0.9.8-SNAPSHOT,
>>
>> org.apache.royale.framework.distribution:compiler-compjsc:jar:0.9.8-SNAPSHOT,
>>
>> org.apache.royale.framework.distribution:compiler-mxmljsc:jar:0.9.8-SNAPSHOT,
>>
>> org.apache.royale.framework.distribution:compiler-optimizer:jar:0.9.8-SNAPSHOT,
>>
>> org.apache.royale.framework.distribution:compiler-swfdump:jar:0.9.8-SNAPSHOT:
>> Failure to find
>> org.apache.royale.framework.distribution:compc:jar:0.9.8-SNAPSHOT in
>> https://repository.apache.org/snapshots was cached in the local
>> repository,
>> resolution will not be reattempted until the update interval of
>> apache.snapshots has elapsed or updates are forced -> [Help 1]
>>
>> This is the command that I'm running:
>>
>> mvn install -P with-distribution
>>
>> --
>> Josh Tynjala
>> Bowler Hat LLC <https://bowlerhat.dev>
>>
>>
>> On Fri, Jan 8, 2021 at 11:01 AM Greg Dove <gr...@gmail.com> wrote:
>>
>> > Josh, are you using the latest updates from asjs?
>> > I thought I had added a workaround for that the other day: I updated the
>> > compiler to 0.9.9 for the framework and Hiedra subsequently said that it
>> > broke the maven distribution build. I don't use that maven profile so
>> had
>> > not seen that previously, but I made a few changes and tested it and it
>> was
>> > working (and it also worked for Hiedra after the changes).
>> >
>> >
>> >
>> >
>> > On Sat, Jan 9, 2021 at 7:33 AM Josh Tynjala <jo...@bowlerhat.dev>
>> > wrote:
>> >
>> > > Carlos, are you using a Maven distribution as your IDE-compatible SDK?
>> > The
>> > > last time that I built one, I seem to recall that the distribution did
>> > not
>> > > include the original .as source files. I don't know if that's still
>> the
>> > > case or not. I tried building a Maven distribution today to check, but
>> > the
>> > > build fails due to the current compiler being on version 0.9.9 and the
>> > > framework still expecting 0.9.8.
>> > >
>> > > --
>> > > Josh Tynjala
>> > > Bowler Hat LLC <https://bowlerhat.dev>
>> > >
>> > >
>> > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <
>> carlosrovira@apache.org>
>> > > wrote:
>> > >
>> > > > Hi Josh,
>> > > >
>> > > > thanks, I added "frameworks" in TDJ +royalelib but seems it doesn't
>> > have
>> > > > effect, stil debug TDJ but not classes in Jewel.
>> > > > Don't see what it could be :?
>> > > >
>> > > > El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
>> > joshtynjala@bowlerhat.dev
>> > > >)
>> > > > escribió:
>> > > >
>> > > > > Looking over previous emails in this thread, it looks like you
>> forgot
>> > > to
>> > > > > add /frameworks at the end of the +royalelib path.
>> > > > >
>> > > > > You have:
>> > > > >
>> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > > >
>> > > > > It should be:
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
>> > > > >
>> > > > > --
>> > > > > Josh Tynjala
>> > > > > Bowler Hat LLC <https://bowlerhat.dev>
>> > > > >
>> > > > >
>> > > > > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
>> > carlosrovira@apache.org
>> > > >
>> > > > > wrote:
>> > > > >
>> > > > > > Hi,
>> > > > > >
>> > > > > > just fyi I added:
>> > > > > >
>> > > > > >
>> > > > >
>> -source-map-source-root=/frameworks/projects/{$project.artifactId}/
>> > > > > >
>> > > > > > at frameworks/projects/pom.xml
>> > > > > > so now we have setup source maps in all libraries
>> > > > > >
>> > > > > > but while that seems ok, I'm not getting lib debugging as I
>> stated
>> > in
>> > > > my
>> > > > > > last email.
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
>> > > > carlosrovira@apache.org
>> > > > > >)
>> > > > > > escribió:
>> > > > > >
>> > > > > > > Ok Josh,
>> > > > > > >
>> > > > > > > so all seems ok, but debug is not working in classes from
>> Jewel
>> > > lib.
>> > > > > > > I see the jewel.swc has the js.map files in the same way I
>> > related,
>> > > > so
>> > > > > > > that's ok as you stated.
>> > > > > > > I'm setting breakpoints in the same VSCode window for Jewel
>> and
>> > TDJ
>> > > > > > files,
>> > > > > > > but only TDJ files (in the root or subfolders) are making
>> > execution
>> > > > > stop.
>> > > > > > > If I set up a breakpoint in let's say Jewel Button.as, that
>> > appears
>> > > > > empty
>> > > > > > > on execution and doesn't have effect, while TDJ appears red
>> and
>> > > works
>> > > > > ok.
>> > > > > > >
>> > > > > > > Do you know what could be happening?
>> > > > > > >
>> > > > > > >
>> > > > > > >
>> > > > > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
>> > > > > joshtynjala@bowlerhat.dev
>> > > > > > >)
>> > > > > > > escribió:
>> > > > > > >
>> > > > > > >> The path of the .js.map file is relative to the .js file.
>> Since
>> > > the
>> > > > > > >> .js.map file is supposed to be in the same folder as the .js
>> > file,
>> > > > > that
>> > > > > > >> looks correct to me.
>> > > > > > >>
>> > > > > > >> --
>> > > > > > >> Josh Tynjala
>> > > > > > >> Bowler Hat LLC <https://bowlerhat.dev>
>> > > > > > >>
>> > > > > > >>
>> > > > > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
>> > > > > carlosrovira@apache.org>
>> > > > > > >> wrote:
>> > > > > > >>
>> > > > > > >> > Hi Josh,
>> > > > > > >> >
>> > > > > > >> > I'm trying to debug jewel classes in TDJ and for example
>> > > > > > >> AlertController.js
>> > > > > > >> > has at the end:
>> > > > > > >> >
>> > > > > > >> > //# sourceMappingURL=./AlertController.js.map
>> > > > > > >> >
>> > > > > > >> > It's ok? I expect it to reference the concrete subfolder:
>> > > > > > >> > org/apache/royale/jewel/beads/controllers
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
>> > > > > > >> joshtynjala@bowlerhat.dev>)
>> > > > > > >> > escribió:
>> > > > > > >> >
>> > > > > > >> > > Yes, you're right that +royalelib should not be required
>> for
>> > > > > > framework
>> > > > > > >> > > libs. I wasn't paying close enough attention to see that
>> you
>> > > had
>> > > > > > added
>> > > > > > >> > > +royalelib to both Jewel and TDJ.
>> > > > > > >> > >
>> > > > > > >> > > So, to summarize, you should use source-map-source-root
>> when
>> > > > > > building
>> > > > > > >> > > framework libs, and you should use +royalelib when
>> building
>> > > > > > >> > examples/apps.
>> > > > > > >> > > +royalelib is not necessary for framework libs, and
>> > > > > > >> > source-map-source-root
>> > > > > > >> > > is (generally) not necessary for examples/apps.
>> > > > > > >> > >
>> > > > > > >> > > --
>> > > > > > >> > > Josh Tynjala
>> > > > > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
>> > > > > > carlosrovira@apache.org
>> > > > > > >> >
>> > > > > > >> > > wrote:
>> > > > > > >> > >
>> > > > > > >> > > > Hi Josh,
>> > > > > > >> > > >
>> > > > > > >> > > > I discover right now that I was understanding wrong how
>> > all
>> > > > this
>> > > > > > >> works.
>> > > > > > >> > > > I thought we needed +royalelib in framework libs, but
>> it's
>> > > not
>> > > > > the
>> > > > > > >> > case.
>> > > > > > >> > > > Just need to add +royalelib to a final project, so that
>> > can
>> > > be
>> > > > > > left
>> > > > > > >> to
>> > > > > > >> > > the
>> > > > > > >> > > > user.
>> > > > > > >> > > >
>> > > > > > >> > > > That means that we can add to all libs this:
>> > > > > > >> > > >
>> > > -source-map-source-root=/frameworks/projects/XXX/target/
>> > > > > > >> > > > (Where XXX is the root libraryfolder) -> For this I'll
>> be
>> > > > adding
>> > > > > > in
>> > > > > > >> a
>> > > > > > >> > > > commit soon
>> > > > > > >> > > >
>> > > > > > >> > > > So, Chris, we don't need anything more to implement,
>> as I
>> > > > commit
>> > > > > > the
>> > > > > > >> > > > -source-map-source-root line in all framework poms.
>> > > > > > >> > > >
>> > > > > > >> > > > Another thing is if we should upload all source maps
>> > (js.map
>> > > > > > files)
>> > > > > > >> of
>> > > > > > >> > > all
>> > > > > > >> > > > framework libs to some r.a.o url (for example /debug),
>> and
>> > > if
>> > > > > > people
>> > > > > > >> > can
>> > > > > > >> > > > point with +royalelib (i.e: +royalelib=
>> > > > > > >> http://royale.apache.org/debug
>> > > > > > >> > )
>> > > > > > >> > > >
>> > > > > > >> > > > What do you think?
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
>> > > > > > >> > joshtynjala@bowlerhat.dev
>> > > > > > >> > > >)
>> > > > > > >> > > > escribió:
>> > > > > > >> > > >
>> > > > > > >> > > > > While we can set source-map-source-root in all of the
>> > > > library
>> > > > > > >> > > projects, I
>> > > > > > >> > > > > don't think that there's any way for us to specify
>> > > > +royalelib
>> > > > > > for
>> > > > > > >> TDJ
>> > > > > > >> > > and
>> > > > > > >> > > > > other examples in a general way. That's the one thing
>> > that
>> > > > > users
>> > > > > > >> will
>> > > > > > >> > > > > probably need to set up manually because the source
>> > files
>> > > > come
>> > > > > > >> from
>> > > > > > >> > an
>> > > > > > >> > > > > IDE-compatible SDK.
>> > > > > > >> > > > >
>> > > > > > >> > > > > --
>> > > > > > >> > > > > Josh Tynjala
>> > > > > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
>> > > > > > >> > carlosrovira@apache.org>
>> > > > > > >> > > > > wrote:
>> > > > > > >> > > > >
>> > > > > > >> > > > > > 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 (<
>> > > > > > >> > > > carlosrovira@apache.org
>> > > > > > >> > > > > >)
>> > > > > > >> > > > > > escribió:
>> > > > > > >> > > > > >
>> > > > > > >> > > > > > > Hi Josh, Thanks! That worked and I finally have
>> > > > debugging
>> > > > > > >> again!
>> > > > > > >> > :D
>> > > > > > >> > > > > > >
>> > > > > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
>> > > > > > >> > > > > joshtynjala@bowlerhat.dev
>> > > > > > >> > > > > > >)
>> > > > > > >> > > > > > > escribió:
>> > > > > > >> > > > > > >
>> > > > > > >> > > > > > >> Hey Carlos,
>> > > > > > >> > > > > > >>
>> > > > > > >> > > > > > >> Try using source-map-source-root with Jewel
>> only,
>> > and
>> > > > > omit
>> > > > > > it
>> > > > > > >> > from
>> > > > > > >> > > > > TDJ.
>> > > > > > >> > > > > > >>
>> > > > > > >> > > > > > >> Jewel:
>> > > > > > >> > > > > > >>
>> > > > > > >> > > > > > >> <additionalCompilerOptions>
>> > > > > > >> > > > > > >>
>> > > > > > >> >
>> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > > > > >> > > > > > >> -source-map=true;
>> > > > > > >> > > > > > >>
>> -source-map-source-root=/frameworks/projects/Jewel/
>> > > > > > >> > > > > > >> </additionalCompilerOptions>
>> > > > > > >> > > > > > >>
>> > > > > > >> > > > > > >> TDJ:
>> > > > > > >> > > > > > >>
>> > > > > > >> > > > > > >> <additionalCompilerOptions>
>> > > > > > >> > > > > > >>
>> > > > > > >> >
>> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > > > > >> > > > > > >> -source-map=true;
>> > > > > > >> > > > > > >> </additionalCompilerOptions>
>> > > > > > >> > > > > > >>
>> > > > > > >> > > > > > >> 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 <https://bowlerhat.dev>
>> > > > > > >> > > > > > >>
>> > > > > > >> > > > > > >>
>> > > > > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
>> > > > > > >> > > > carlosrovira@apache.org
>> > > > > > >> > > > > >
>> > > > > > >> > > > > > >> 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:
>> > > > > > >> > > > > > >> >
>> > > > > > >> > > > > > >> > <additionalCompilerOptions>
>> > > > > > >> > > > > > >> >
>> > > > > > >> > >
>> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > > > > >> > > > > > >> > -source-map=true;
>> > > > > > >> > > > > > >> >
>> > -source-map-source-root=/frameworks/projects/Jewel/
>> > > > > > >> > > > > > >> > </additionalCompilerOptions>
>> > > > > > >> > > > > > >> >
>> > > > > > >> > > > > > >> > and in TDJ:
>> > > > > > >> > > > > > >> >
>> > > > > > >> > > > > > >> >
>> > > > > > >> > >
>> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > > > > >> > > > > > >> > -source-map=true;
>> > > > > > >> > > > > > >> >
>> > -source-map-source-root=/examples/jewel/TourDeJewel
>> > > > > > >> > > > > > >> > </additionalCompilerOptions>
>> > > > > > >> > > > > > >> >
>> > > > > > >> > > > > > >> > 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.dutz@c-ware.de>)
>> > > > > > >> > > > > > >> > escribió:
>> > > > > > >> > > > > > >> >
>> > > > > > >> > > > > > >> >> Hi all,
>> > > > > > >> > > > > > >> >>
>> > > > > > >> > > > > > >> >> Sure, happy to help, but what exactly do you
>> > need?
>> > > > > > >> > > > > > >> >>
>> > > > > > >> > > > > > >> >> Chris
>> > > > > > >> > > > > > >> >> ------------------------------
>> > > > > > >> > > > > > >> >> *Von:* Carlos Rovira <
>> carlosrovira@apache.org>
>> > > > > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
>> > > > > > >> > > > > > >> >> *An:* Josh Tynjala <
>> joshtynjala@bowlerhat.dev>;
>> > > > > > >> Christofer
>> > > > > > >> > > Dutz
>> > > > > > >> > > > <
>> > > > > > >> > > > > > >> >> christofer.dutz@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
>> (<
>> > > > > > >> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
>> > > > > > >> > > > > > >> >>
>> > > > > > >> > > > > > >> >>
>> > > > > > >> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos
>> Rovira <
>> > > > > > >> > > > > > carlosrovira@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:
>> > > > > > >> > > > > > >> >>
>> > > > > > >> > > > > > >> >> <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
>> > > > > > >> > > > > > >> >>
>> > > > > > >> > > > > > >> >>
>> > > > > > >> > > > > > >> >
>> > > > > > >> > > > > > >> > --
>> > > > > > >> > > > > > >> > 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
>> > > > > > >> > > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > > > --
>> > > > > > >> > > > 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
>> > > > > > >
>> > > > > > >
>> > > > > >
>> > > > > > --
>> > > > > > 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
>> > > >
>> > >
>> >
>>
>
Re: Configuring source maps on Royale with new compiler options
Posted by Greg Dove <gr...@gmail.com>.
That's odd, it 'works for me' when doing exactly the same thing. I'm not
sure if it was relevant, but the maven build of framework libs was broken
before my very recent commit.
Because maven doesn't seem to halt on failure, perhaps there was some issue
after that. Aside from that, I am not sure what is causing the
difference....
On Sat, Jan 9, 2021 at 8:10 AM Josh Tynjala <jo...@bowlerhat.dev>
wrote:
> Yes, I double-checked that I am up-to-date. The framework seems to build
> successfully, but once it tries making the distribution, that's where it's
> failing.
>
> > [ERROR] Failed to execute goal on project distribution: Could not resolve
> dependencies for project
> org.apache.royale.framework:distribution:pom:0.9.8-SNAPSHOT: The following
> artifacts could not be resolved:
> org.apache.royale.framework.distribution:compc:jar:0.9.8-SNAPSHOT,
> org.apache.royale.framework.distribution:mxmlc:jar:0.9.8-SNAPSHOT,
> org.apache.royale.framework.distribution:compiler-asc:jar:0.9.8-SNAPSHOT,
> org.apache.royale.framework.distribution:compiler-compc:jar:0.9.8-SNAPSHOT,
> org.apache.royale.framework.distribution:compiler-mxmlc:jar:0.9.8-SNAPSHOT,
>
> org.apache.royale.framework.distribution:compiler-compjsc:jar:0.9.8-SNAPSHOT,
>
> org.apache.royale.framework.distribution:compiler-mxmljsc:jar:0.9.8-SNAPSHOT,
>
> org.apache.royale.framework.distribution:compiler-optimizer:jar:0.9.8-SNAPSHOT,
>
> org.apache.royale.framework.distribution:compiler-swfdump:jar:0.9.8-SNAPSHOT:
> Failure to find
> org.apache.royale.framework.distribution:compc:jar:0.9.8-SNAPSHOT in
> https://repository.apache.org/snapshots was cached in the local
> repository,
> resolution will not be reattempted until the update interval of
> apache.snapshots has elapsed or updates are forced -> [Help 1]
>
> This is the command that I'm running:
>
> mvn install -P with-distribution
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Fri, Jan 8, 2021 at 11:01 AM Greg Dove <gr...@gmail.com> wrote:
>
> > Josh, are you using the latest updates from asjs?
> > I thought I had added a workaround for that the other day: I updated the
> > compiler to 0.9.9 for the framework and Hiedra subsequently said that it
> > broke the maven distribution build. I don't use that maven profile so had
> > not seen that previously, but I made a few changes and tested it and it
> was
> > working (and it also worked for Hiedra after the changes).
> >
> >
> >
> >
> > On Sat, Jan 9, 2021 at 7:33 AM Josh Tynjala <jo...@bowlerhat.dev>
> > wrote:
> >
> > > Carlos, are you using a Maven distribution as your IDE-compatible SDK?
> > The
> > > last time that I built one, I seem to recall that the distribution did
> > not
> > > include the original .as source files. I don't know if that's still the
> > > case or not. I tried building a Maven distribution today to check, but
> > the
> > > build fails due to the current compiler being on version 0.9.9 and the
> > > framework still expecting 0.9.8.
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >
> > >
> > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <carlosrovira@apache.org
> >
> > > wrote:
> > >
> > > > Hi Josh,
> > > >
> > > > thanks, I added "frameworks" in TDJ +royalelib but seems it doesn't
> > have
> > > > effect, stil debug TDJ but not classes in Jewel.
> > > > Don't see what it could be :?
> > > >
> > > > El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > joshtynjala@bowlerhat.dev
> > > >)
> > > > escribió:
> > > >
> > > > > Looking over previous emails in this thread, it looks like you
> forgot
> > > to
> > > > > add /frameworks at the end of the +royalelib path.
> > > > >
> > > > > You have:
> > > > >
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > >
> > > > > It should be:
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
> > > > >
> > > > > --
> > > > > Josh Tynjala
> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >
> > > > >
> > > > > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > carlosrovira@apache.org
> > > >
> > > > > wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > just fyi I added:
> > > > > >
> > > > > >
> > > > >
> -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > > > >
> > > > > > at frameworks/projects/pom.xml
> > > > > > so now we have setup source maps in all libraries
> > > > > >
> > > > > > but while that seems ok, I'm not getting lib debugging as I
> stated
> > in
> > > > my
> > > > > > last email.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > > > carlosrovira@apache.org
> > > > > >)
> > > > > > escribió:
> > > > > >
> > > > > > > Ok Josh,
> > > > > > >
> > > > > > > so all seems ok, but debug is not working in classes from Jewel
> > > lib.
> > > > > > > I see the jewel.swc has the js.map files in the same way I
> > related,
> > > > so
> > > > > > > that's ok as you stated.
> > > > > > > I'm setting breakpoints in the same VSCode window for Jewel and
> > TDJ
> > > > > > files,
> > > > > > > but only TDJ files (in the root or subfolders) are making
> > execution
> > > > > stop.
> > > > > > > If I set up a breakpoint in let's say Jewel Button.as, that
> > appears
> > > > > empty
> > > > > > > on execution and doesn't have effect, while TDJ appears red and
> > > works
> > > > > ok.
> > > > > > >
> > > > > > > Do you know what could be happening?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> > > > > joshtynjala@bowlerhat.dev
> > > > > > >)
> > > > > > > escribió:
> > > > > > >
> > > > > > >> The path of the .js.map file is relative to the .js file.
> Since
> > > the
> > > > > > >> .js.map file is supposed to be in the same folder as the .js
> > file,
> > > > > that
> > > > > > >> looks correct to me.
> > > > > > >>
> > > > > > >> --
> > > > > > >> Josh Tynjala
> > > > > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >>
> > > > > > >>
> > > > > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> > > > > carlosrovira@apache.org>
> > > > > > >> wrote:
> > > > > > >>
> > > > > > >> > Hi Josh,
> > > > > > >> >
> > > > > > >> > I'm trying to debug jewel classes in TDJ and for example
> > > > > > >> AlertController.js
> > > > > > >> > has at the end:
> > > > > > >> >
> > > > > > >> > //# sourceMappingURL=./AlertController.js.map
> > > > > > >> >
> > > > > > >> > It's ok? I expect it to reference the concrete subfolder:
> > > > > > >> > org/apache/royale/jewel/beads/controllers
> > > > > > >> >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> > > > > > >> joshtynjala@bowlerhat.dev>)
> > > > > > >> > escribió:
> > > > > > >> >
> > > > > > >> > > Yes, you're right that +royalelib should not be required
> for
> > > > > > framework
> > > > > > >> > > libs. I wasn't paying close enough attention to see that
> you
> > > had
> > > > > > added
> > > > > > >> > > +royalelib to both Jewel and TDJ.
> > > > > > >> > >
> > > > > > >> > > So, to summarize, you should use source-map-source-root
> when
> > > > > > building
> > > > > > >> > > framework libs, and you should use +royalelib when
> building
> > > > > > >> > examples/apps.
> > > > > > >> > > +royalelib is not necessary for framework libs, and
> > > > > > >> > source-map-source-root
> > > > > > >> > > is (generally) not necessary for examples/apps.
> > > > > > >> > >
> > > > > > >> > > --
> > > > > > >> > > Josh Tynjala
> > > > > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> > > > > > carlosrovira@apache.org
> > > > > > >> >
> > > > > > >> > > wrote:
> > > > > > >> > >
> > > > > > >> > > > Hi Josh,
> > > > > > >> > > >
> > > > > > >> > > > I discover right now that I was understanding wrong how
> > all
> > > > this
> > > > > > >> works.
> > > > > > >> > > > I thought we needed +royalelib in framework libs, but
> it's
> > > not
> > > > > the
> > > > > > >> > case.
> > > > > > >> > > > Just need to add +royalelib to a final project, so that
> > can
> > > be
> > > > > > left
> > > > > > >> to
> > > > > > >> > > the
> > > > > > >> > > > user.
> > > > > > >> > > >
> > > > > > >> > > > That means that we can add to all libs this:
> > > > > > >> > > >
> > > -source-map-source-root=/frameworks/projects/XXX/target/
> > > > > > >> > > > (Where XXX is the root libraryfolder) -> For this I'll
> be
> > > > adding
> > > > > > in
> > > > > > >> a
> > > > > > >> > > > commit soon
> > > > > > >> > > >
> > > > > > >> > > > So, Chris, we don't need anything more to implement, as
> I
> > > > commit
> > > > > > the
> > > > > > >> > > > -source-map-source-root line in all framework poms.
> > > > > > >> > > >
> > > > > > >> > > > Another thing is if we should upload all source maps
> > (js.map
> > > > > > files)
> > > > > > >> of
> > > > > > >> > > all
> > > > > > >> > > > framework libs to some r.a.o url (for example /debug),
> and
> > > if
> > > > > > people
> > > > > > >> > can
> > > > > > >> > > > point with +royalelib (i.e: +royalelib=
> > > > > > >> http://royale.apache.org/debug
> > > > > > >> > )
> > > > > > >> > > >
> > > > > > >> > > > What do you think?
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> > > > > > >> > joshtynjala@bowlerhat.dev
> > > > > > >> > > >)
> > > > > > >> > > > escribió:
> > > > > > >> > > >
> > > > > > >> > > > > While we can set source-map-source-root in all of the
> > > > library
> > > > > > >> > > projects, I
> > > > > > >> > > > > don't think that there's any way for us to specify
> > > > +royalelib
> > > > > > for
> > > > > > >> TDJ
> > > > > > >> > > and
> > > > > > >> > > > > other examples in a general way. That's the one thing
> > that
> > > > > users
> > > > > > >> will
> > > > > > >> > > > > probably need to set up manually because the source
> > files
> > > > come
> > > > > > >> from
> > > > > > >> > an
> > > > > > >> > > > > IDE-compatible SDK.
> > > > > > >> > > > >
> > > > > > >> > > > > --
> > > > > > >> > > > > Josh Tynjala
> > > > > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >> > > > >
> > > > > > >> > > > >
> > > > > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> > > > > > >> > carlosrovira@apache.org>
> > > > > > >> > > > > wrote:
> > > > > > >> > > > >
> > > > > > >> > > > > > 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 (<
> > > > > > >> > > > carlosrovira@apache.org
> > > > > > >> > > > > >)
> > > > > > >> > > > > > escribió:
> > > > > > >> > > > > >
> > > > > > >> > > > > > > Hi Josh, Thanks! That worked and I finally have
> > > > debugging
> > > > > > >> again!
> > > > > > >> > :D
> > > > > > >> > > > > > >
> > > > > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
> > > > > > >> > > > > joshtynjala@bowlerhat.dev
> > > > > > >> > > > > > >)
> > > > > > >> > > > > > > escribió:
> > > > > > >> > > > > > >
> > > > > > >> > > > > > >> Hey Carlos,
> > > > > > >> > > > > > >>
> > > > > > >> > > > > > >> Try using source-map-source-root with Jewel only,
> > and
> > > > > omit
> > > > > > it
> > > > > > >> > from
> > > > > > >> > > > > TDJ.
> > > > > > >> > > > > > >>
> > > > > > >> > > > > > >> Jewel:
> > > > > > >> > > > > > >>
> > > > > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > >> > > > > > >>
> > > > > > >> >
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > >> > > > > > >> -source-map=true;
> > > > > > >> > > > > > >>
> -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > >> > > > > > >>
> > > > > > >> > > > > > >> TDJ:
> > > > > > >> > > > > > >>
> > > > > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > >> > > > > > >>
> > > > > > >> >
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > >> > > > > > >> -source-map=true;
> > > > > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > >> > > > > > >>
> > > > > > >> > > > > > >> 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 <https://bowlerhat.dev>
> > > > > > >> > > > > > >>
> > > > > > >> > > > > > >>
> > > > > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
> > > > > > >> > > > carlosrovira@apache.org
> > > > > > >> > > > > >
> > > > > > >> > > > > > >> 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:
> > > > > > >> > > > > > >> >
> > > > > > >> > > > > > >> > <additionalCompilerOptions>
> > > > > > >> > > > > > >> >
> > > > > > >> > >
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > >> > > > > > >> > -source-map=true;
> > > > > > >> > > > > > >> >
> > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > >> > > > > > >> >
> > > > > > >> > > > > > >> > and in TDJ:
> > > > > > >> > > > > > >> >
> > > > > > >> > > > > > >> >
> > > > > > >> > >
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > >> > > > > > >> > -source-map=true;
> > > > > > >> > > > > > >> >
> > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > >> > > > > > >> >
> > > > > > >> > > > > > >> > 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.dutz@c-ware.de>)
> > > > > > >> > > > > > >> > escribió:
> > > > > > >> > > > > > >> >
> > > > > > >> > > > > > >> >> Hi all,
> > > > > > >> > > > > > >> >>
> > > > > > >> > > > > > >> >> Sure, happy to help, but what exactly do you
> > need?
> > > > > > >> > > > > > >> >>
> > > > > > >> > > > > > >> >> Chris
> > > > > > >> > > > > > >> >> ------------------------------
> > > > > > >> > > > > > >> >> *Von:* Carlos Rovira <carlosrovira@apache.org
> >
> > > > > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> > > > > > >> > > > > > >> >> *An:* Josh Tynjala <joshtynjala@bowlerhat.dev
> >;
> > > > > > >> Christofer
> > > > > > >> > > Dutz
> > > > > > >> > > > <
> > > > > > >> > > > > > >> >> christofer.dutz@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
> (<
> > > > > > >> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
> > > > > > >> > > > > > >> >>
> > > > > > >> > > > > > >> >>
> > > > > > >> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira
> <
> > > > > > >> > > > > > carlosrovira@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:
> > > > > > >> > > > > > >> >>
> > > > > > >> > > > > > >> >> <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
> > > > > > >> > > > > > >> >>
> > > > > > >> > > > > > >> >>
> > > > > > >> > > > > > >> >
> > > > > > >> > > > > > >> > --
> > > > > > >> > > > > > >> > 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
> > > > > > >> > > > > >
> > > > > > >> > > > >
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > --
> > > > > > >> > > > 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
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > 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
> > > >
> > >
> >
>
Re: Configuring source maps on Royale with new compiler options
Posted by Piotr Zarzycki <pi...@gmail.com>.
Hi Josh,
To mee it looks like more a long time existing "friend" bug which is ebing
on Windows for the past 5 years at least ;) Try again and it may go away. I
get used to build some modules couple of times till dependencies gets
resolved.
Thanks,
Piotr
pt., 8 sty 2021 o 20:10 Josh Tynjala <jo...@bowlerhat.dev> napisał(a):
> Yes, I double-checked that I am up-to-date. The framework seems to build
> successfully, but once it tries making the distribution, that's where it's
> failing.
>
> > [ERROR] Failed to execute goal on project distribution: Could not resolve
> dependencies for project
> org.apache.royale.framework:distribution:pom:0.9.8-SNAPSHOT: The following
> artifacts could not be resolved:
> org.apache.royale.framework.distribution:compc:jar:0.9.8-SNAPSHOT,
> org.apache.royale.framework.distribution:mxmlc:jar:0.9.8-SNAPSHOT,
> org.apache.royale.framework.distribution:compiler-asc:jar:0.9.8-SNAPSHOT,
> org.apache.royale.framework.distribution:compiler-compc:jar:0.9.8-SNAPSHOT,
> org.apache.royale.framework.distribution:compiler-mxmlc:jar:0.9.8-SNAPSHOT,
>
> org.apache.royale.framework.distribution:compiler-compjsc:jar:0.9.8-SNAPSHOT,
>
> org.apache.royale.framework.distribution:compiler-mxmljsc:jar:0.9.8-SNAPSHOT,
>
> org.apache.royale.framework.distribution:compiler-optimizer:jar:0.9.8-SNAPSHOT,
>
> org.apache.royale.framework.distribution:compiler-swfdump:jar:0.9.8-SNAPSHOT:
> Failure to find
> org.apache.royale.framework.distribution:compc:jar:0.9.8-SNAPSHOT in
> https://repository.apache.org/snapshots was cached in the local
> repository,
> resolution will not be reattempted until the update interval of
> apache.snapshots has elapsed or updates are forced -> [Help 1]
>
> This is the command that I'm running:
>
> mvn install -P with-distribution
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Fri, Jan 8, 2021 at 11:01 AM Greg Dove <gr...@gmail.com> wrote:
>
> > Josh, are you using the latest updates from asjs?
> > I thought I had added a workaround for that the other day: I updated the
> > compiler to 0.9.9 for the framework and Hiedra subsequently said that it
> > broke the maven distribution build. I don't use that maven profile so had
> > not seen that previously, but I made a few changes and tested it and it
> was
> > working (and it also worked for Hiedra after the changes).
> >
> >
> >
> >
> > On Sat, Jan 9, 2021 at 7:33 AM Josh Tynjala <jo...@bowlerhat.dev>
> > wrote:
> >
> > > Carlos, are you using a Maven distribution as your IDE-compatible SDK?
> > The
> > > last time that I built one, I seem to recall that the distribution did
> > not
> > > include the original .as source files. I don't know if that's still the
> > > case or not. I tried building a Maven distribution today to check, but
> > the
> > > build fails due to the current compiler being on version 0.9.9 and the
> > > framework still expecting 0.9.8.
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >
> > >
> > > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <carlosrovira@apache.org
> >
> > > wrote:
> > >
> > > > Hi Josh,
> > > >
> > > > thanks, I added "frameworks" in TDJ +royalelib but seems it doesn't
> > have
> > > > effect, stil debug TDJ but not classes in Jewel.
> > > > Don't see what it could be :?
> > > >
> > > > El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> > joshtynjala@bowlerhat.dev
> > > >)
> > > > escribió:
> > > >
> > > > > Looking over previous emails in this thread, it looks like you
> forgot
> > > to
> > > > > add /frameworks at the end of the +royalelib path.
> > > > >
> > > > > You have:
> > > > >
> > > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > >
> > > > > It should be:
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
> > > > >
> > > > > --
> > > > > Josh Tynjala
> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >
> > > > >
> > > > > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> > carlosrovira@apache.org
> > > >
> > > > > wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > just fyi I added:
> > > > > >
> > > > > >
> > > > >
> -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > > > >
> > > > > > at frameworks/projects/pom.xml
> > > > > > so now we have setup source maps in all libraries
> > > > > >
> > > > > > but while that seems ok, I'm not getting lib debugging as I
> stated
> > in
> > > > my
> > > > > > last email.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > > > carlosrovira@apache.org
> > > > > >)
> > > > > > escribió:
> > > > > >
> > > > > > > Ok Josh,
> > > > > > >
> > > > > > > so all seems ok, but debug is not working in classes from Jewel
> > > lib.
> > > > > > > I see the jewel.swc has the js.map files in the same way I
> > related,
> > > > so
> > > > > > > that's ok as you stated.
> > > > > > > I'm setting breakpoints in the same VSCode window for Jewel and
> > TDJ
> > > > > > files,
> > > > > > > but only TDJ files (in the root or subfolders) are making
> > execution
> > > > > stop.
> > > > > > > If I set up a breakpoint in let's say Jewel Button.as, that
> > appears
> > > > > empty
> > > > > > > on execution and doesn't have effect, while TDJ appears red and
> > > works
> > > > > ok.
> > > > > > >
> > > > > > > Do you know what could be happening?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> > > > > joshtynjala@bowlerhat.dev
> > > > > > >)
> > > > > > > escribió:
> > > > > > >
> > > > > > >> The path of the .js.map file is relative to the .js file.
> Since
> > > the
> > > > > > >> .js.map file is supposed to be in the same folder as the .js
> > file,
> > > > > that
> > > > > > >> looks correct to me.
> > > > > > >>
> > > > > > >> --
> > > > > > >> Josh Tynjala
> > > > > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >>
> > > > > > >>
> > > > > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> > > > > carlosrovira@apache.org>
> > > > > > >> wrote:
> > > > > > >>
> > > > > > >> > Hi Josh,
> > > > > > >> >
> > > > > > >> > I'm trying to debug jewel classes in TDJ and for example
> > > > > > >> AlertController.js
> > > > > > >> > has at the end:
> > > > > > >> >
> > > > > > >> > //# sourceMappingURL=./AlertController.js.map
> > > > > > >> >
> > > > > > >> > It's ok? I expect it to reference the concrete subfolder:
> > > > > > >> > org/apache/royale/jewel/beads/controllers
> > > > > > >> >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> > > > > > >> joshtynjala@bowlerhat.dev>)
> > > > > > >> > escribió:
> > > > > > >> >
> > > > > > >> > > Yes, you're right that +royalelib should not be required
> for
> > > > > > framework
> > > > > > >> > > libs. I wasn't paying close enough attention to see that
> you
> > > had
> > > > > > added
> > > > > > >> > > +royalelib to both Jewel and TDJ.
> > > > > > >> > >
> > > > > > >> > > So, to summarize, you should use source-map-source-root
> when
> > > > > > building
> > > > > > >> > > framework libs, and you should use +royalelib when
> building
> > > > > > >> > examples/apps.
> > > > > > >> > > +royalelib is not necessary for framework libs, and
> > > > > > >> > source-map-source-root
> > > > > > >> > > is (generally) not necessary for examples/apps.
> > > > > > >> > >
> > > > > > >> > > --
> > > > > > >> > > Josh Tynjala
> > > > > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> > > > > > carlosrovira@apache.org
> > > > > > >> >
> > > > > > >> > > wrote:
> > > > > > >> > >
> > > > > > >> > > > Hi Josh,
> > > > > > >> > > >
> > > > > > >> > > > I discover right now that I was understanding wrong how
> > all
> > > > this
> > > > > > >> works.
> > > > > > >> > > > I thought we needed +royalelib in framework libs, but
> it's
> > > not
> > > > > the
> > > > > > >> > case.
> > > > > > >> > > > Just need to add +royalelib to a final project, so that
> > can
> > > be
> > > > > > left
> > > > > > >> to
> > > > > > >> > > the
> > > > > > >> > > > user.
> > > > > > >> > > >
> > > > > > >> > > > That means that we can add to all libs this:
> > > > > > >> > > >
> > > -source-map-source-root=/frameworks/projects/XXX/target/
> > > > > > >> > > > (Where XXX is the root libraryfolder) -> For this I'll
> be
> > > > adding
> > > > > > in
> > > > > > >> a
> > > > > > >> > > > commit soon
> > > > > > >> > > >
> > > > > > >> > > > So, Chris, we don't need anything more to implement, as
> I
> > > > commit
> > > > > > the
> > > > > > >> > > > -source-map-source-root line in all framework poms.
> > > > > > >> > > >
> > > > > > >> > > > Another thing is if we should upload all source maps
> > (js.map
> > > > > > files)
> > > > > > >> of
> > > > > > >> > > all
> > > > > > >> > > > framework libs to some r.a.o url (for example /debug),
> and
> > > if
> > > > > > people
> > > > > > >> > can
> > > > > > >> > > > point with +royalelib (i.e: +royalelib=
> > > > > > >> http://royale.apache.org/debug
> > > > > > >> > )
> > > > > > >> > > >
> > > > > > >> > > > What do you think?
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> > > > > > >> > joshtynjala@bowlerhat.dev
> > > > > > >> > > >)
> > > > > > >> > > > escribió:
> > > > > > >> > > >
> > > > > > >> > > > > While we can set source-map-source-root in all of the
> > > > library
> > > > > > >> > > projects, I
> > > > > > >> > > > > don't think that there's any way for us to specify
> > > > +royalelib
> > > > > > for
> > > > > > >> TDJ
> > > > > > >> > > and
> > > > > > >> > > > > other examples in a general way. That's the one thing
> > that
> > > > > users
> > > > > > >> will
> > > > > > >> > > > > probably need to set up manually because the source
> > files
> > > > come
> > > > > > >> from
> > > > > > >> > an
> > > > > > >> > > > > IDE-compatible SDK.
> > > > > > >> > > > >
> > > > > > >> > > > > --
> > > > > > >> > > > > Josh Tynjala
> > > > > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > > >> > > > >
> > > > > > >> > > > >
> > > > > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> > > > > > >> > carlosrovira@apache.org>
> > > > > > >> > > > > wrote:
> > > > > > >> > > > >
> > > > > > >> > > > > > 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 (<
> > > > > > >> > > > carlosrovira@apache.org
> > > > > > >> > > > > >)
> > > > > > >> > > > > > escribió:
> > > > > > >> > > > > >
> > > > > > >> > > > > > > Hi Josh, Thanks! That worked and I finally have
> > > > debugging
> > > > > > >> again!
> > > > > > >> > :D
> > > > > > >> > > > > > >
> > > > > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
> > > > > > >> > > > > joshtynjala@bowlerhat.dev
> > > > > > >> > > > > > >)
> > > > > > >> > > > > > > escribió:
> > > > > > >> > > > > > >
> > > > > > >> > > > > > >> Hey Carlos,
> > > > > > >> > > > > > >>
> > > > > > >> > > > > > >> Try using source-map-source-root with Jewel only,
> > and
> > > > > omit
> > > > > > it
> > > > > > >> > from
> > > > > > >> > > > > TDJ.
> > > > > > >> > > > > > >>
> > > > > > >> > > > > > >> Jewel:
> > > > > > >> > > > > > >>
> > > > > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > >> > > > > > >>
> > > > > > >> >
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > >> > > > > > >> -source-map=true;
> > > > > > >> > > > > > >>
> -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > >> > > > > > >>
> > > > > > >> > > > > > >> TDJ:
> > > > > > >> > > > > > >>
> > > > > > >> > > > > > >> <additionalCompilerOptions>
> > > > > > >> > > > > > >>
> > > > > > >> >
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > >> > > > > > >> -source-map=true;
> > > > > > >> > > > > > >> </additionalCompilerOptions>
> > > > > > >> > > > > > >>
> > > > > > >> > > > > > >> 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 <https://bowlerhat.dev>
> > > > > > >> > > > > > >>
> > > > > > >> > > > > > >>
> > > > > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
> > > > > > >> > > > carlosrovira@apache.org
> > > > > > >> > > > > >
> > > > > > >> > > > > > >> 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:
> > > > > > >> > > > > > >> >
> > > > > > >> > > > > > >> > <additionalCompilerOptions>
> > > > > > >> > > > > > >> >
> > > > > > >> > >
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > >> > > > > > >> > -source-map=true;
> > > > > > >> > > > > > >> >
> > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > >> > > > > > >> >
> > > > > > >> > > > > > >> > and in TDJ:
> > > > > > >> > > > > > >> >
> > > > > > >> > > > > > >> >
> > > > > > >> > >
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > >> > > > > > >> > -source-map=true;
> > > > > > >> > > > > > >> >
> > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > > >> > > > > > >> >
> > > > > > >> > > > > > >> > 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.dutz@c-ware.de>)
> > > > > > >> > > > > > >> > escribió:
> > > > > > >> > > > > > >> >
> > > > > > >> > > > > > >> >> Hi all,
> > > > > > >> > > > > > >> >>
> > > > > > >> > > > > > >> >> Sure, happy to help, but what exactly do you
> > need?
> > > > > > >> > > > > > >> >>
> > > > > > >> > > > > > >> >> Chris
> > > > > > >> > > > > > >> >> ------------------------------
> > > > > > >> > > > > > >> >> *Von:* Carlos Rovira <carlosrovira@apache.org
> >
> > > > > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> > > > > > >> > > > > > >> >> *An:* Josh Tynjala <joshtynjala@bowlerhat.dev
> >;
> > > > > > >> Christofer
> > > > > > >> > > Dutz
> > > > > > >> > > > <
> > > > > > >> > > > > > >> >> christofer.dutz@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
> (<
> > > > > > >> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
> > > > > > >> > > > > > >> >>
> > > > > > >> > > > > > >> >>
> > > > > > >> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira
> <
> > > > > > >> > > > > > carlosrovira@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:
> > > > > > >> > > > > > >> >>
> > > > > > >> > > > > > >> >> <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
> > > > > > >> > > > > > >> >>
> > > > > > >> > > > > > >> >>
> > > > > > >> > > > > > >> >
> > > > > > >> > > > > > >> > --
> > > > > > >> > > > > > >> > 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
> > > > > > >> > > > > >
> > > > > > >> > > > >
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > --
> > > > > > >> > > > 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
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > 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
> > > >
> > >
> >
>
--
Piotr Zarzycki
Re: Configuring source maps on Royale with new compiler options
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
Yes, I double-checked that I am up-to-date. The framework seems to build
successfully, but once it tries making the distribution, that's where it's
failing.
> [ERROR] Failed to execute goal on project distribution: Could not resolve
dependencies for project
org.apache.royale.framework:distribution:pom:0.9.8-SNAPSHOT: The following
artifacts could not be resolved:
org.apache.royale.framework.distribution:compc:jar:0.9.8-SNAPSHOT,
org.apache.royale.framework.distribution:mxmlc:jar:0.9.8-SNAPSHOT,
org.apache.royale.framework.distribution:compiler-asc:jar:0.9.8-SNAPSHOT,
org.apache.royale.framework.distribution:compiler-compc:jar:0.9.8-SNAPSHOT,
org.apache.royale.framework.distribution:compiler-mxmlc:jar:0.9.8-SNAPSHOT,
org.apache.royale.framework.distribution:compiler-compjsc:jar:0.9.8-SNAPSHOT,
org.apache.royale.framework.distribution:compiler-mxmljsc:jar:0.9.8-SNAPSHOT,
org.apache.royale.framework.distribution:compiler-optimizer:jar:0.9.8-SNAPSHOT,
org.apache.royale.framework.distribution:compiler-swfdump:jar:0.9.8-SNAPSHOT:
Failure to find
org.apache.royale.framework.distribution:compc:jar:0.9.8-SNAPSHOT in
https://repository.apache.org/snapshots was cached in the local repository,
resolution will not be reattempted until the update interval of
apache.snapshots has elapsed or updates are forced -> [Help 1]
This is the command that I'm running:
mvn install -P with-distribution
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Fri, Jan 8, 2021 at 11:01 AM Greg Dove <gr...@gmail.com> wrote:
> Josh, are you using the latest updates from asjs?
> I thought I had added a workaround for that the other day: I updated the
> compiler to 0.9.9 for the framework and Hiedra subsequently said that it
> broke the maven distribution build. I don't use that maven profile so had
> not seen that previously, but I made a few changes and tested it and it was
> working (and it also worked for Hiedra after the changes).
>
>
>
>
> On Sat, Jan 9, 2021 at 7:33 AM Josh Tynjala <jo...@bowlerhat.dev>
> wrote:
>
> > Carlos, are you using a Maven distribution as your IDE-compatible SDK?
> The
> > last time that I built one, I seem to recall that the distribution did
> not
> > include the original .as source files. I don't know if that's still the
> > case or not. I tried building a Maven distribution today to check, but
> the
> > build fails due to the current compiler being on version 0.9.9 and the
> > framework still expecting 0.9.8.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <ca...@apache.org>
> > wrote:
> >
> > > Hi Josh,
> > >
> > > thanks, I added "frameworks" in TDJ +royalelib but seems it doesn't
> have
> > > effect, stil debug TDJ but not classes in Jewel.
> > > Don't see what it could be :?
> > >
> > > El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<
> joshtynjala@bowlerhat.dev
> > >)
> > > escribió:
> > >
> > > > Looking over previous emails in this thread, it looks like you forgot
> > to
> > > > add /frameworks at the end of the +royalelib path.
> > > >
> > > > You have:
> > > >
> > > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > >
> > > > It should be:
> > > >
> > > >
> > > >
> > >
> >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
> > > >
> > > > --
> > > > Josh Tynjala
> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >
> > > >
> > > > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <
> carlosrovira@apache.org
> > >
> > > > wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > just fyi I added:
> > > > >
> > > > >
> > > > -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > > >
> > > > > at frameworks/projects/pom.xml
> > > > > so now we have setup source maps in all libraries
> > > > >
> > > > > but while that seems ok, I'm not getting lib debugging as I stated
> in
> > > my
> > > > > last email.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > > carlosrovira@apache.org
> > > > >)
> > > > > escribió:
> > > > >
> > > > > > Ok Josh,
> > > > > >
> > > > > > so all seems ok, but debug is not working in classes from Jewel
> > lib.
> > > > > > I see the jewel.swc has the js.map files in the same way I
> related,
> > > so
> > > > > > that's ok as you stated.
> > > > > > I'm setting breakpoints in the same VSCode window for Jewel and
> TDJ
> > > > > files,
> > > > > > but only TDJ files (in the root or subfolders) are making
> execution
> > > > stop.
> > > > > > If I set up a breakpoint in let's say Jewel Button.as, that
> appears
> > > > empty
> > > > > > on execution and doesn't have effect, while TDJ appears red and
> > works
> > > > ok.
> > > > > >
> > > > > > Do you know what could be happening?
> > > > > >
> > > > > >
> > > > > >
> > > > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> > > > joshtynjala@bowlerhat.dev
> > > > > >)
> > > > > > escribió:
> > > > > >
> > > > > >> The path of the .js.map file is relative to the .js file. Since
> > the
> > > > > >> .js.map file is supposed to be in the same folder as the .js
> file,
> > > > that
> > > > > >> looks correct to me.
> > > > > >>
> > > > > >> --
> > > > > >> Josh Tynjala
> > > > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >>
> > > > > >>
> > > > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> > > > carlosrovira@apache.org>
> > > > > >> wrote:
> > > > > >>
> > > > > >> > Hi Josh,
> > > > > >> >
> > > > > >> > I'm trying to debug jewel classes in TDJ and for example
> > > > > >> AlertController.js
> > > > > >> > has at the end:
> > > > > >> >
> > > > > >> > //# sourceMappingURL=./AlertController.js.map
> > > > > >> >
> > > > > >> > It's ok? I expect it to reference the concrete subfolder:
> > > > > >> > org/apache/royale/jewel/beads/controllers
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> > > > > >> joshtynjala@bowlerhat.dev>)
> > > > > >> > escribió:
> > > > > >> >
> > > > > >> > > Yes, you're right that +royalelib should not be required for
> > > > > framework
> > > > > >> > > libs. I wasn't paying close enough attention to see that you
> > had
> > > > > added
> > > > > >> > > +royalelib to both Jewel and TDJ.
> > > > > >> > >
> > > > > >> > > So, to summarize, you should use source-map-source-root when
> > > > > building
> > > > > >> > > framework libs, and you should use +royalelib when building
> > > > > >> > examples/apps.
> > > > > >> > > +royalelib is not necessary for framework libs, and
> > > > > >> > source-map-source-root
> > > > > >> > > is (generally) not necessary for examples/apps.
> > > > > >> > >
> > > > > >> > > --
> > > > > >> > > Josh Tynjala
> > > > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> > > > > carlosrovira@apache.org
> > > > > >> >
> > > > > >> > > wrote:
> > > > > >> > >
> > > > > >> > > > Hi Josh,
> > > > > >> > > >
> > > > > >> > > > I discover right now that I was understanding wrong how
> all
> > > this
> > > > > >> works.
> > > > > >> > > > I thought we needed +royalelib in framework libs, but it's
> > not
> > > > the
> > > > > >> > case.
> > > > > >> > > > Just need to add +royalelib to a final project, so that
> can
> > be
> > > > > left
> > > > > >> to
> > > > > >> > > the
> > > > > >> > > > user.
> > > > > >> > > >
> > > > > >> > > > That means that we can add to all libs this:
> > > > > >> > > >
> > -source-map-source-root=/frameworks/projects/XXX/target/
> > > > > >> > > > (Where XXX is the root libraryfolder) -> For this I'll be
> > > adding
> > > > > in
> > > > > >> a
> > > > > >> > > > commit soon
> > > > > >> > > >
> > > > > >> > > > So, Chris, we don't need anything more to implement, as I
> > > commit
> > > > > the
> > > > > >> > > > -source-map-source-root line in all framework poms.
> > > > > >> > > >
> > > > > >> > > > Another thing is if we should upload all source maps
> (js.map
> > > > > files)
> > > > > >> of
> > > > > >> > > all
> > > > > >> > > > framework libs to some r.a.o url (for example /debug), and
> > if
> > > > > people
> > > > > >> > can
> > > > > >> > > > point with +royalelib (i.e: +royalelib=
> > > > > >> http://royale.apache.org/debug
> > > > > >> > )
> > > > > >> > > >
> > > > > >> > > > What do you think?
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> > > > > >> > joshtynjala@bowlerhat.dev
> > > > > >> > > >)
> > > > > >> > > > escribió:
> > > > > >> > > >
> > > > > >> > > > > While we can set source-map-source-root in all of the
> > > library
> > > > > >> > > projects, I
> > > > > >> > > > > don't think that there's any way for us to specify
> > > +royalelib
> > > > > for
> > > > > >> TDJ
> > > > > >> > > and
> > > > > >> > > > > other examples in a general way. That's the one thing
> that
> > > > users
> > > > > >> will
> > > > > >> > > > > probably need to set up manually because the source
> files
> > > come
> > > > > >> from
> > > > > >> > an
> > > > > >> > > > > IDE-compatible SDK.
> > > > > >> > > > >
> > > > > >> > > > > --
> > > > > >> > > > > Josh Tynjala
> > > > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> > > > > >> > carlosrovira@apache.org>
> > > > > >> > > > > wrote:
> > > > > >> > > > >
> > > > > >> > > > > > 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 (<
> > > > > >> > > > carlosrovira@apache.org
> > > > > >> > > > > >)
> > > > > >> > > > > > escribió:
> > > > > >> > > > > >
> > > > > >> > > > > > > Hi Josh, Thanks! That worked and I finally have
> > > debugging
> > > > > >> again!
> > > > > >> > :D
> > > > > >> > > > > > >
> > > > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
> > > > > >> > > > > joshtynjala@bowlerhat.dev
> > > > > >> > > > > > >)
> > > > > >> > > > > > > escribió:
> > > > > >> > > > > > >
> > > > > >> > > > > > >> Hey Carlos,
> > > > > >> > > > > > >>
> > > > > >> > > > > > >> Try using source-map-source-root with Jewel only,
> and
> > > > omit
> > > > > it
> > > > > >> > from
> > > > > >> > > > > TDJ.
> > > > > >> > > > > > >>
> > > > > >> > > > > > >> Jewel:
> > > > > >> > > > > > >>
> > > > > >> > > > > > >> <additionalCompilerOptions>
> > > > > >> > > > > > >>
> > > > > >> >
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > >> > > > > > >> -source-map=true;
> > > > > >> > > > > > >> -source-map-source-root=/frameworks/projects/Jewel/
> > > > > >> > > > > > >> </additionalCompilerOptions>
> > > > > >> > > > > > >>
> > > > > >> > > > > > >> TDJ:
> > > > > >> > > > > > >>
> > > > > >> > > > > > >> <additionalCompilerOptions>
> > > > > >> > > > > > >>
> > > > > >> >
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > >> > > > > > >> -source-map=true;
> > > > > >> > > > > > >> </additionalCompilerOptions>
> > > > > >> > > > > > >>
> > > > > >> > > > > > >> 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 <https://bowlerhat.dev>
> > > > > >> > > > > > >>
> > > > > >> > > > > > >>
> > > > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
> > > > > >> > > > carlosrovira@apache.org
> > > > > >> > > > > >
> > > > > >> > > > > > >> 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:
> > > > > >> > > > > > >> >
> > > > > >> > > > > > >> > <additionalCompilerOptions>
> > > > > >> > > > > > >> >
> > > > > >> > >
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > >> > > > > > >> > -source-map=true;
> > > > > >> > > > > > >> >
> -source-map-source-root=/frameworks/projects/Jewel/
> > > > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > >> > > > > > >> >
> > > > > >> > > > > > >> > and in TDJ:
> > > > > >> > > > > > >> >
> > > > > >> > > > > > >> >
> > > > > >> > >
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > >> > > > > > >> > -source-map=true;
> > > > > >> > > > > > >> >
> -source-map-source-root=/examples/jewel/TourDeJewel
> > > > > >> > > > > > >> > </additionalCompilerOptions>
> > > > > >> > > > > > >> >
> > > > > >> > > > > > >> > 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.dutz@c-ware.de>)
> > > > > >> > > > > > >> > escribió:
> > > > > >> > > > > > >> >
> > > > > >> > > > > > >> >> Hi all,
> > > > > >> > > > > > >> >>
> > > > > >> > > > > > >> >> Sure, happy to help, but what exactly do you
> need?
> > > > > >> > > > > > >> >>
> > > > > >> > > > > > >> >> Chris
> > > > > >> > > > > > >> >> ------------------------------
> > > > > >> > > > > > >> >> *Von:* Carlos Rovira <ca...@apache.org>
> > > > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> > > > > >> > > > > > >> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>;
> > > > > >> Christofer
> > > > > >> > > Dutz
> > > > > >> > > > <
> > > > > >> > > > > > >> >> christofer.dutz@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 (<
> > > > > >> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
> > > > > >> > > > > > >> >>
> > > > > >> > > > > > >> >>
> > > > > >> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
> > > > > >> > > > > > carlosrovira@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:
> > > > > >> > > > > > >> >>
> > > > > >> > > > > > >> >> <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
> > > > > >> > > > > > >> >>
> > > > > >> > > > > > >> >>
> > > > > >> > > > > > >> >
> > > > > >> > > > > > >> > --
> > > > > >> > > > > > >> > 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
> > > > > >> > > > > >
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > --
> > > > > >> > > > 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
> > > > > >
> > > > > >
> > > > >
> > > > > --
> > > > > 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
> > >
> >
>
Re: Configuring source maps on Royale with new compiler options
Posted by Greg Dove <gr...@gmail.com>.
Josh, are you using the latest updates from asjs?
I thought I had added a workaround for that the other day: I updated the
compiler to 0.9.9 for the framework and Hiedra subsequently said that it
broke the maven distribution build. I don't use that maven profile so had
not seen that previously, but I made a few changes and tested it and it was
working (and it also worked for Hiedra after the changes).
On Sat, Jan 9, 2021 at 7:33 AM Josh Tynjala <jo...@bowlerhat.dev>
wrote:
> Carlos, are you using a Maven distribution as your IDE-compatible SDK? The
> last time that I built one, I seem to recall that the distribution did not
> include the original .as source files. I don't know if that's still the
> case or not. I tried building a Maven distribution today to check, but the
> build fails due to the current compiler being on version 0.9.9 and the
> framework still expecting 0.9.8.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
> > Hi Josh,
> >
> > thanks, I added "frameworks" in TDJ +royalelib but seems it doesn't have
> > effect, stil debug TDJ but not classes in Jewel.
> > Don't see what it could be :?
> >
> > El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<joshtynjala@bowlerhat.dev
> >)
> > escribió:
> >
> > > Looking over previous emails in this thread, it looks like you forgot
> to
> > > add /frameworks at the end of the +royalelib path.
> > >
> > > You have:
> > >
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > >
> > > It should be:
> > >
> > >
> > >
> >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >
> > >
> > > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <carlosrovira@apache.org
> >
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > just fyi I added:
> > > >
> > > >
> > > -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > > >
> > > > at frameworks/projects/pom.xml
> > > > so now we have setup source maps in all libraries
> > > >
> > > > but while that seems ok, I'm not getting lib debugging as I stated in
> > my
> > > > last email.
> > > >
> > > >
> > > >
> > > >
> > > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> > carlosrovira@apache.org
> > > >)
> > > > escribió:
> > > >
> > > > > Ok Josh,
> > > > >
> > > > > so all seems ok, but debug is not working in classes from Jewel
> lib.
> > > > > I see the jewel.swc has the js.map files in the same way I related,
> > so
> > > > > that's ok as you stated.
> > > > > I'm setting breakpoints in the same VSCode window for Jewel and TDJ
> > > > files,
> > > > > but only TDJ files (in the root or subfolders) are making execution
> > > stop.
> > > > > If I set up a breakpoint in let's say Jewel Button.as, that appears
> > > empty
> > > > > on execution and doesn't have effect, while TDJ appears red and
> works
> > > ok.
> > > > >
> > > > > Do you know what could be happening?
> > > > >
> > > > >
> > > > >
> > > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> > > joshtynjala@bowlerhat.dev
> > > > >)
> > > > > escribió:
> > > > >
> > > > >> The path of the .js.map file is relative to the .js file. Since
> the
> > > > >> .js.map file is supposed to be in the same folder as the .js file,
> > > that
> > > > >> looks correct to me.
> > > > >>
> > > > >> --
> > > > >> Josh Tynjala
> > > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > >>
> > > > >>
> > > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> > > carlosrovira@apache.org>
> > > > >> wrote:
> > > > >>
> > > > >> > Hi Josh,
> > > > >> >
> > > > >> > I'm trying to debug jewel classes in TDJ and for example
> > > > >> AlertController.js
> > > > >> > has at the end:
> > > > >> >
> > > > >> > //# sourceMappingURL=./AlertController.js.map
> > > > >> >
> > > > >> > It's ok? I expect it to reference the concrete subfolder:
> > > > >> > org/apache/royale/jewel/beads/controllers
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> > > > >> joshtynjala@bowlerhat.dev>)
> > > > >> > escribió:
> > > > >> >
> > > > >> > > Yes, you're right that +royalelib should not be required for
> > > > framework
> > > > >> > > libs. I wasn't paying close enough attention to see that you
> had
> > > > added
> > > > >> > > +royalelib to both Jewel and TDJ.
> > > > >> > >
> > > > >> > > So, to summarize, you should use source-map-source-root when
> > > > building
> > > > >> > > framework libs, and you should use +royalelib when building
> > > > >> > examples/apps.
> > > > >> > > +royalelib is not necessary for framework libs, and
> > > > >> > source-map-source-root
> > > > >> > > is (generally) not necessary for examples/apps.
> > > > >> > >
> > > > >> > > --
> > > > >> > > Josh Tynjala
> > > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >> > >
> > > > >> > >
> > > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> > > > carlosrovira@apache.org
> > > > >> >
> > > > >> > > wrote:
> > > > >> > >
> > > > >> > > > Hi Josh,
> > > > >> > > >
> > > > >> > > > I discover right now that I was understanding wrong how all
> > this
> > > > >> works.
> > > > >> > > > I thought we needed +royalelib in framework libs, but it's
> not
> > > the
> > > > >> > case.
> > > > >> > > > Just need to add +royalelib to a final project, so that can
> be
> > > > left
> > > > >> to
> > > > >> > > the
> > > > >> > > > user.
> > > > >> > > >
> > > > >> > > > That means that we can add to all libs this:
> > > > >> > > >
> -source-map-source-root=/frameworks/projects/XXX/target/
> > > > >> > > > (Where XXX is the root libraryfolder) -> For this I'll be
> > adding
> > > > in
> > > > >> a
> > > > >> > > > commit soon
> > > > >> > > >
> > > > >> > > > So, Chris, we don't need anything more to implement, as I
> > commit
> > > > the
> > > > >> > > > -source-map-source-root line in all framework poms.
> > > > >> > > >
> > > > >> > > > Another thing is if we should upload all source maps (js.map
> > > > files)
> > > > >> of
> > > > >> > > all
> > > > >> > > > framework libs to some r.a.o url (for example /debug), and
> if
> > > > people
> > > > >> > can
> > > > >> > > > point with +royalelib (i.e: +royalelib=
> > > > >> http://royale.apache.org/debug
> > > > >> > )
> > > > >> > > >
> > > > >> > > > What do you think?
> > > > >> > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> > > > >> > joshtynjala@bowlerhat.dev
> > > > >> > > >)
> > > > >> > > > escribió:
> > > > >> > > >
> > > > >> > > > > While we can set source-map-source-root in all of the
> > library
> > > > >> > > projects, I
> > > > >> > > > > don't think that there's any way for us to specify
> > +royalelib
> > > > for
> > > > >> TDJ
> > > > >> > > and
> > > > >> > > > > other examples in a general way. That's the one thing that
> > > users
> > > > >> will
> > > > >> > > > > probably need to set up manually because the source files
> > come
> > > > >> from
> > > > >> > an
> > > > >> > > > > IDE-compatible SDK.
> > > > >> > > > >
> > > > >> > > > > --
> > > > >> > > > > Josh Tynjala
> > > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> > > > >> > carlosrovira@apache.org>
> > > > >> > > > > wrote:
> > > > >> > > > >
> > > > >> > > > > > 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 (<
> > > > >> > > > carlosrovira@apache.org
> > > > >> > > > > >)
> > > > >> > > > > > escribió:
> > > > >> > > > > >
> > > > >> > > > > > > Hi Josh, Thanks! That worked and I finally have
> > debugging
> > > > >> again!
> > > > >> > :D
> > > > >> > > > > > >
> > > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
> > > > >> > > > > joshtynjala@bowlerhat.dev
> > > > >> > > > > > >)
> > > > >> > > > > > > escribió:
> > > > >> > > > > > >
> > > > >> > > > > > >> Hey Carlos,
> > > > >> > > > > > >>
> > > > >> > > > > > >> Try using source-map-source-root with Jewel only, and
> > > omit
> > > > it
> > > > >> > from
> > > > >> > > > > TDJ.
> > > > >> > > > > > >>
> > > > >> > > > > > >> Jewel:
> > > > >> > > > > > >>
> > > > >> > > > > > >> <additionalCompilerOptions>
> > > > >> > > > > > >>
> > > > >> >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > >> > > > > > >> -source-map=true;
> > > > >> > > > > > >> -source-map-source-root=/frameworks/projects/Jewel/
> > > > >> > > > > > >> </additionalCompilerOptions>
> > > > >> > > > > > >>
> > > > >> > > > > > >> TDJ:
> > > > >> > > > > > >>
> > > > >> > > > > > >> <additionalCompilerOptions>
> > > > >> > > > > > >>
> > > > >> >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > >> > > > > > >> -source-map=true;
> > > > >> > > > > > >> </additionalCompilerOptions>
> > > > >> > > > > > >>
> > > > >> > > > > > >> 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 <https://bowlerhat.dev>
> > > > >> > > > > > >>
> > > > >> > > > > > >>
> > > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
> > > > >> > > > carlosrovira@apache.org
> > > > >> > > > > >
> > > > >> > > > > > >> 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:
> > > > >> > > > > > >> >
> > > > >> > > > > > >> > <additionalCompilerOptions>
> > > > >> > > > > > >> >
> > > > >> > >
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > >> > > > > > >> > -source-map=true;
> > > > >> > > > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > > > >> > > > > > >> > </additionalCompilerOptions>
> > > > >> > > > > > >> >
> > > > >> > > > > > >> > and in TDJ:
> > > > >> > > > > > >> >
> > > > >> > > > > > >> >
> > > > >> > >
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > >> > > > > > >> > -source-map=true;
> > > > >> > > > > > >> > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > >> > > > > > >> > </additionalCompilerOptions>
> > > > >> > > > > > >> >
> > > > >> > > > > > >> > 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.dutz@c-ware.de>)
> > > > >> > > > > > >> > escribió:
> > > > >> > > > > > >> >
> > > > >> > > > > > >> >> Hi all,
> > > > >> > > > > > >> >>
> > > > >> > > > > > >> >> Sure, happy to help, but what exactly do you need?
> > > > >> > > > > > >> >>
> > > > >> > > > > > >> >> Chris
> > > > >> > > > > > >> >> ------------------------------
> > > > >> > > > > > >> >> *Von:* Carlos Rovira <ca...@apache.org>
> > > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> > > > >> > > > > > >> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>;
> > > > >> Christofer
> > > > >> > > Dutz
> > > > >> > > > <
> > > > >> > > > > > >> >> christofer.dutz@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 (<
> > > > >> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
> > > > >> > > > > > >> >>
> > > > >> > > > > > >> >>
> > > > >> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
> > > > >> > > > > > carlosrovira@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:
> > > > >> > > > > > >> >>
> > > > >> > > > > > >> >> <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
> > > > >> > > > > > >> >>
> > > > >> > > > > > >> >>
> > > > >> > > > > > >> >
> > > > >> > > > > > >> > --
> > > > >> > > > > > >> > 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
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > --
> > > > >> > > > 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
> > > > >
> > > > >
> > > >
> > > > --
> > > > 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
> >
>
Re: Configuring source maps on Royale with new compiler options
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
Carlos, are you using a Maven distribution as your IDE-compatible SDK? The
last time that I built one, I seem to recall that the distribution did not
include the original .as source files. I don't know if that's still the
case or not. I tried building a Maven distribution today to check, but the
build fails due to the current compiler being on version 0.9.9 and the
framework still expecting 0.9.8.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Fri, Jan 8, 2021 at 12:34 AM Carlos Rovira <ca...@apache.org>
wrote:
> Hi Josh,
>
> thanks, I added "frameworks" in TDJ +royalelib but seems it doesn't have
> effect, stil debug TDJ but not classes in Jewel.
> Don't see what it could be :?
>
> El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<jo...@bowlerhat.dev>)
> escribió:
>
> > Looking over previous emails in this thread, it looks like you forgot to
> > add /frameworks at the end of the +royalelib path.
> >
> > You have:
> >
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> >
> > It should be:
> >
> >
> >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <ca...@apache.org>
> > wrote:
> >
> > > Hi,
> > >
> > > just fyi I added:
> > >
> > >
> > -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> > >
> > > at frameworks/projects/pom.xml
> > > so now we have setup source maps in all libraries
> > >
> > > but while that seems ok, I'm not getting lib debugging as I stated in
> my
> > > last email.
> > >
> > >
> > >
> > >
> > > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<
> carlosrovira@apache.org
> > >)
> > > escribió:
> > >
> > > > Ok Josh,
> > > >
> > > > so all seems ok, but debug is not working in classes from Jewel lib.
> > > > I see the jewel.swc has the js.map files in the same way I related,
> so
> > > > that's ok as you stated.
> > > > I'm setting breakpoints in the same VSCode window for Jewel and TDJ
> > > files,
> > > > but only TDJ files (in the root or subfolders) are making execution
> > stop.
> > > > If I set up a breakpoint in let's say Jewel Button.as, that appears
> > empty
> > > > on execution and doesn't have effect, while TDJ appears red and works
> > ok.
> > > >
> > > > Do you know what could be happening?
> > > >
> > > >
> > > >
> > > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> > joshtynjala@bowlerhat.dev
> > > >)
> > > > escribió:
> > > >
> > > >> The path of the .js.map file is relative to the .js file. Since the
> > > >> .js.map file is supposed to be in the same folder as the .js file,
> > that
> > > >> looks correct to me.
> > > >>
> > > >> --
> > > >> Josh Tynjala
> > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > >>
> > > >>
> > > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> > carlosrovira@apache.org>
> > > >> wrote:
> > > >>
> > > >> > Hi Josh,
> > > >> >
> > > >> > I'm trying to debug jewel classes in TDJ and for example
> > > >> AlertController.js
> > > >> > has at the end:
> > > >> >
> > > >> > //# sourceMappingURL=./AlertController.js.map
> > > >> >
> > > >> > It's ok? I expect it to reference the concrete subfolder:
> > > >> > org/apache/royale/jewel/beads/controllers
> > > >> >
> > > >> >
> > > >> >
> > > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> > > >> joshtynjala@bowlerhat.dev>)
> > > >> > escribió:
> > > >> >
> > > >> > > Yes, you're right that +royalelib should not be required for
> > > framework
> > > >> > > libs. I wasn't paying close enough attention to see that you had
> > > added
> > > >> > > +royalelib to both Jewel and TDJ.
> > > >> > >
> > > >> > > So, to summarize, you should use source-map-source-root when
> > > building
> > > >> > > framework libs, and you should use +royalelib when building
> > > >> > examples/apps.
> > > >> > > +royalelib is not necessary for framework libs, and
> > > >> > source-map-source-root
> > > >> > > is (generally) not necessary for examples/apps.
> > > >> > >
> > > >> > > --
> > > >> > > Josh Tynjala
> > > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >> > >
> > > >> > >
> > > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> > > carlosrovira@apache.org
> > > >> >
> > > >> > > wrote:
> > > >> > >
> > > >> > > > Hi Josh,
> > > >> > > >
> > > >> > > > I discover right now that I was understanding wrong how all
> this
> > > >> works.
> > > >> > > > I thought we needed +royalelib in framework libs, but it's not
> > the
> > > >> > case.
> > > >> > > > Just need to add +royalelib to a final project, so that can be
> > > left
> > > >> to
> > > >> > > the
> > > >> > > > user.
> > > >> > > >
> > > >> > > > That means that we can add to all libs this:
> > > >> > > > -source-map-source-root=/frameworks/projects/XXX/target/
> > > >> > > > (Where XXX is the root libraryfolder) -> For this I'll be
> adding
> > > in
> > > >> a
> > > >> > > > commit soon
> > > >> > > >
> > > >> > > > So, Chris, we don't need anything more to implement, as I
> commit
> > > the
> > > >> > > > -source-map-source-root line in all framework poms.
> > > >> > > >
> > > >> > > > Another thing is if we should upload all source maps (js.map
> > > files)
> > > >> of
> > > >> > > all
> > > >> > > > framework libs to some r.a.o url (for example /debug), and if
> > > people
> > > >> > can
> > > >> > > > point with +royalelib (i.e: +royalelib=
> > > >> http://royale.apache.org/debug
> > > >> > )
> > > >> > > >
> > > >> > > > What do you think?
> > > >> > > >
> > > >> > > >
> > > >> > > >
> > > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> > > >> > joshtynjala@bowlerhat.dev
> > > >> > > >)
> > > >> > > > escribió:
> > > >> > > >
> > > >> > > > > While we can set source-map-source-root in all of the
> library
> > > >> > > projects, I
> > > >> > > > > don't think that there's any way for us to specify
> +royalelib
> > > for
> > > >> TDJ
> > > >> > > and
> > > >> > > > > other examples in a general way. That's the one thing that
> > users
> > > >> will
> > > >> > > > > probably need to set up manually because the source files
> come
> > > >> from
> > > >> > an
> > > >> > > > > IDE-compatible SDK.
> > > >> > > > >
> > > >> > > > > --
> > > >> > > > > Josh Tynjala
> > > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> > > >> > carlosrovira@apache.org>
> > > >> > > > > wrote:
> > > >> > > > >
> > > >> > > > > > 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 (<
> > > >> > > > carlosrovira@apache.org
> > > >> > > > > >)
> > > >> > > > > > escribió:
> > > >> > > > > >
> > > >> > > > > > > Hi Josh, Thanks! That worked and I finally have
> debugging
> > > >> again!
> > > >> > :D
> > > >> > > > > > >
> > > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
> > > >> > > > > joshtynjala@bowlerhat.dev
> > > >> > > > > > >)
> > > >> > > > > > > escribió:
> > > >> > > > > > >
> > > >> > > > > > >> Hey Carlos,
> > > >> > > > > > >>
> > > >> > > > > > >> Try using source-map-source-root with Jewel only, and
> > omit
> > > it
> > > >> > from
> > > >> > > > > TDJ.
> > > >> > > > > > >>
> > > >> > > > > > >> Jewel:
> > > >> > > > > > >>
> > > >> > > > > > >> <additionalCompilerOptions>
> > > >> > > > > > >>
> > > >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > >> > > > > > >> -source-map=true;
> > > >> > > > > > >> -source-map-source-root=/frameworks/projects/Jewel/
> > > >> > > > > > >> </additionalCompilerOptions>
> > > >> > > > > > >>
> > > >> > > > > > >> TDJ:
> > > >> > > > > > >>
> > > >> > > > > > >> <additionalCompilerOptions>
> > > >> > > > > > >>
> > > >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > >> > > > > > >> -source-map=true;
> > > >> > > > > > >> </additionalCompilerOptions>
> > > >> > > > > > >>
> > > >> > > > > > >> 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 <https://bowlerhat.dev>
> > > >> > > > > > >>
> > > >> > > > > > >>
> > > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
> > > >> > > > carlosrovira@apache.org
> > > >> > > > > >
> > > >> > > > > > >> 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:
> > > >> > > > > > >> >
> > > >> > > > > > >> > <additionalCompilerOptions>
> > > >> > > > > > >> >
> > > >> > >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > >> > > > > > >> > -source-map=true;
> > > >> > > > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > > >> > > > > > >> > </additionalCompilerOptions>
> > > >> > > > > > >> >
> > > >> > > > > > >> > and in TDJ:
> > > >> > > > > > >> >
> > > >> > > > > > >> >
> > > >> > >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > >> > > > > > >> > -source-map=true;
> > > >> > > > > > >> > -source-map-source-root=/examples/jewel/TourDeJewel
> > > >> > > > > > >> > </additionalCompilerOptions>
> > > >> > > > > > >> >
> > > >> > > > > > >> > 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.dutz@c-ware.de>)
> > > >> > > > > > >> > escribió:
> > > >> > > > > > >> >
> > > >> > > > > > >> >> Hi all,
> > > >> > > > > > >> >>
> > > >> > > > > > >> >> Sure, happy to help, but what exactly do you need?
> > > >> > > > > > >> >>
> > > >> > > > > > >> >> Chris
> > > >> > > > > > >> >> ------------------------------
> > > >> > > > > > >> >> *Von:* Carlos Rovira <ca...@apache.org>
> > > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> > > >> > > > > > >> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>;
> > > >> Christofer
> > > >> > > Dutz
> > > >> > > > <
> > > >> > > > > > >> >> christofer.dutz@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 (<
> > > >> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
> > > >> > > > > > >> >>
> > > >> > > > > > >> >>
> > > >> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
> > > >> > > > > > carlosrovira@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:
> > > >> > > > > > >> >>
> > > >> > > > > > >> >> <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
> > > >> > > > > > >> >>
> > > >> > > > > > >> >>
> > > >> > > > > > >> >
> > > >> > > > > > >> > --
> > > >> > > > > > >> > 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
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > > >
> > > >> > > > --
> > > >> > > > 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
> > > >
> > > >
> > >
> > > --
> > > 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
>
Re: Configuring source maps on Royale with new compiler options
Posted by Carlos Rovira <ca...@apache.org>.
Hi Josh,
thanks, I added "frameworks" in TDJ +royalelib but seems it doesn't have
effect, stil debug TDJ but not classes in Jewel.
Don't see what it could be :?
El jue, 7 ene 2021 a las 21:46, Josh Tynjala (<jo...@bowlerhat.dev>)
escribió:
> Looking over previous emails in this thread, it looks like you forgot to
> add /frameworks at the end of the +royalelib path.
>
> You have:
>
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>
> It should be:
>
>
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
> > Hi,
> >
> > just fyi I added:
> >
> >
> -source-map-source-root=/frameworks/projects/{$project.artifactId}/
> >
> > at frameworks/projects/pom.xml
> > so now we have setup source maps in all libraries
> >
> > but while that seems ok, I'm not getting lib debugging as I stated in my
> > last email.
> >
> >
> >
> >
> > El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<carlosrovira@apache.org
> >)
> > escribió:
> >
> > > Ok Josh,
> > >
> > > so all seems ok, but debug is not working in classes from Jewel lib.
> > > I see the jewel.swc has the js.map files in the same way I related, so
> > > that's ok as you stated.
> > > I'm setting breakpoints in the same VSCode window for Jewel and TDJ
> > files,
> > > but only TDJ files (in the root or subfolders) are making execution
> stop.
> > > If I set up a breakpoint in let's say Jewel Button.as, that appears
> empty
> > > on execution and doesn't have effect, while TDJ appears red and works
> ok.
> > >
> > > Do you know what could be happening?
> > >
> > >
> > >
> > > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<
> joshtynjala@bowlerhat.dev
> > >)
> > > escribió:
> > >
> > >> The path of the .js.map file is relative to the .js file. Since the
> > >> .js.map file is supposed to be in the same folder as the .js file,
> that
> > >> looks correct to me.
> > >>
> > >> --
> > >> Josh Tynjala
> > >> Bowler Hat LLC <https://bowlerhat.dev>
> > >>
> > >>
> > >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <
> carlosrovira@apache.org>
> > >> wrote:
> > >>
> > >> > Hi Josh,
> > >> >
> > >> > I'm trying to debug jewel classes in TDJ and for example
> > >> AlertController.js
> > >> > has at the end:
> > >> >
> > >> > //# sourceMappingURL=./AlertController.js.map
> > >> >
> > >> > It's ok? I expect it to reference the concrete subfolder:
> > >> > org/apache/royale/jewel/beads/controllers
> > >> >
> > >> >
> > >> >
> > >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> > >> joshtynjala@bowlerhat.dev>)
> > >> > escribió:
> > >> >
> > >> > > Yes, you're right that +royalelib should not be required for
> > framework
> > >> > > libs. I wasn't paying close enough attention to see that you had
> > added
> > >> > > +royalelib to both Jewel and TDJ.
> > >> > >
> > >> > > So, to summarize, you should use source-map-source-root when
> > building
> > >> > > framework libs, and you should use +royalelib when building
> > >> > examples/apps.
> > >> > > +royalelib is not necessary for framework libs, and
> > >> > source-map-source-root
> > >> > > is (generally) not necessary for examples/apps.
> > >> > >
> > >> > > --
> > >> > > Josh Tynjala
> > >> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >> > >
> > >> > >
> > >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> > carlosrovira@apache.org
> > >> >
> > >> > > wrote:
> > >> > >
> > >> > > > Hi Josh,
> > >> > > >
> > >> > > > I discover right now that I was understanding wrong how all this
> > >> works.
> > >> > > > I thought we needed +royalelib in framework libs, but it's not
> the
> > >> > case.
> > >> > > > Just need to add +royalelib to a final project, so that can be
> > left
> > >> to
> > >> > > the
> > >> > > > user.
> > >> > > >
> > >> > > > That means that we can add to all libs this:
> > >> > > > -source-map-source-root=/frameworks/projects/XXX/target/
> > >> > > > (Where XXX is the root libraryfolder) -> For this I'll be adding
> > in
> > >> a
> > >> > > > commit soon
> > >> > > >
> > >> > > > So, Chris, we don't need anything more to implement, as I commit
> > the
> > >> > > > -source-map-source-root line in all framework poms.
> > >> > > >
> > >> > > > Another thing is if we should upload all source maps (js.map
> > files)
> > >> of
> > >> > > all
> > >> > > > framework libs to some r.a.o url (for example /debug), and if
> > people
> > >> > can
> > >> > > > point with +royalelib (i.e: +royalelib=
> > >> http://royale.apache.org/debug
> > >> > )
> > >> > > >
> > >> > > > What do you think?
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> > >> > joshtynjala@bowlerhat.dev
> > >> > > >)
> > >> > > > escribió:
> > >> > > >
> > >> > > > > While we can set source-map-source-root in all of the library
> > >> > > projects, I
> > >> > > > > don't think that there's any way for us to specify +royalelib
> > for
> > >> TDJ
> > >> > > and
> > >> > > > > other examples in a general way. That's the one thing that
> users
> > >> will
> > >> > > > > probably need to set up manually because the source files come
> > >> from
> > >> > an
> > >> > > > > IDE-compatible SDK.
> > >> > > > >
> > >> > > > > --
> > >> > > > > Josh Tynjala
> > >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > >> > > > >
> > >> > > > >
> > >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> > >> > carlosrovira@apache.org>
> > >> > > > > wrote:
> > >> > > > >
> > >> > > > > > 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 (<
> > >> > > > carlosrovira@apache.org
> > >> > > > > >)
> > >> > > > > > escribió:
> > >> > > > > >
> > >> > > > > > > Hi Josh, Thanks! That worked and I finally have debugging
> > >> again!
> > >> > :D
> > >> > > > > > >
> > >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
> > >> > > > > joshtynjala@bowlerhat.dev
> > >> > > > > > >)
> > >> > > > > > > escribió:
> > >> > > > > > >
> > >> > > > > > >> Hey Carlos,
> > >> > > > > > >>
> > >> > > > > > >> Try using source-map-source-root with Jewel only, and
> omit
> > it
> > >> > from
> > >> > > > > TDJ.
> > >> > > > > > >>
> > >> > > > > > >> Jewel:
> > >> > > > > > >>
> > >> > > > > > >> <additionalCompilerOptions>
> > >> > > > > > >>
> > >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > >> > > > > > >> -source-map=true;
> > >> > > > > > >> -source-map-source-root=/frameworks/projects/Jewel/
> > >> > > > > > >> </additionalCompilerOptions>
> > >> > > > > > >>
> > >> > > > > > >> TDJ:
> > >> > > > > > >>
> > >> > > > > > >> <additionalCompilerOptions>
> > >> > > > > > >>
> > >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > >> > > > > > >> -source-map=true;
> > >> > > > > > >> </additionalCompilerOptions>
> > >> > > > > > >>
> > >> > > > > > >> 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 <https://bowlerhat.dev>
> > >> > > > > > >>
> > >> > > > > > >>
> > >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
> > >> > > > carlosrovira@apache.org
> > >> > > > > >
> > >> > > > > > >> 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:
> > >> > > > > > >> >
> > >> > > > > > >> > <additionalCompilerOptions>
> > >> > > > > > >> >
> > >> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > >> > > > > > >> > -source-map=true;
> > >> > > > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > >> > > > > > >> > </additionalCompilerOptions>
> > >> > > > > > >> >
> > >> > > > > > >> > and in TDJ:
> > >> > > > > > >> >
> > >> > > > > > >> >
> > >> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > >> > > > > > >> > -source-map=true;
> > >> > > > > > >> > -source-map-source-root=/examples/jewel/TourDeJewel
> > >> > > > > > >> > </additionalCompilerOptions>
> > >> > > > > > >> >
> > >> > > > > > >> > 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.dutz@c-ware.de>)
> > >> > > > > > >> > escribió:
> > >> > > > > > >> >
> > >> > > > > > >> >> Hi all,
> > >> > > > > > >> >>
> > >> > > > > > >> >> Sure, happy to help, but what exactly do you need?
> > >> > > > > > >> >>
> > >> > > > > > >> >> Chris
> > >> > > > > > >> >> ------------------------------
> > >> > > > > > >> >> *Von:* Carlos Rovira <ca...@apache.org>
> > >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> > >> > > > > > >> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>;
> > >> Christofer
> > >> > > Dutz
> > >> > > > <
> > >> > > > > > >> >> christofer.dutz@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 (<
> > >> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
> > >> > > > > > >> >>
> > >> > > > > > >> >>
> > >> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
> > >> > > > > > carlosrovira@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:
> > >> > > > > > >> >>
> > >> > > > > > >> >> <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
> > >> > > > > > >> >>
> > >> > > > > > >> >>
> > >> > > > > > >> >
> > >> > > > > > >> > --
> > >> > > > > > >> > 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
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > > >
> > >> > > > --
> > >> > > > 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
> > >
> > >
> >
> > --
> > 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
Re: Configuring source maps on Royale with new compiler options
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
Looking over previous emails in this thread, it looks like you forgot to
add /frameworks at the end of the +royalelib path.
You have:
+royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
It should be:
+royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Thu, Jan 7, 2021 at 11:12 AM Carlos Rovira <ca...@apache.org>
wrote:
> Hi,
>
> just fyi I added:
>
> -source-map-source-root=/frameworks/projects/{$project.artifactId}/
>
> at frameworks/projects/pom.xml
> so now we have setup source maps in all libraries
>
> but while that seems ok, I'm not getting lib debugging as I stated in my
> last email.
>
>
>
>
> El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<ca...@apache.org>)
> escribió:
>
> > Ok Josh,
> >
> > so all seems ok, but debug is not working in classes from Jewel lib.
> > I see the jewel.swc has the js.map files in the same way I related, so
> > that's ok as you stated.
> > I'm setting breakpoints in the same VSCode window for Jewel and TDJ
> files,
> > but only TDJ files (in the root or subfolders) are making execution stop.
> > If I set up a breakpoint in let's say Jewel Button.as, that appears empty
> > on execution and doesn't have effect, while TDJ appears red and works ok.
> >
> > Do you know what could be happening?
> >
> >
> >
> > El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<joshtynjala@bowlerhat.dev
> >)
> > escribió:
> >
> >> The path of the .js.map file is relative to the .js file. Since the
> >> .js.map file is supposed to be in the same folder as the .js file, that
> >> looks correct to me.
> >>
> >> --
> >> Josh Tynjala
> >> Bowler Hat LLC <https://bowlerhat.dev>
> >>
> >>
> >> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <ca...@apache.org>
> >> wrote:
> >>
> >> > Hi Josh,
> >> >
> >> > I'm trying to debug jewel classes in TDJ and for example
> >> AlertController.js
> >> > has at the end:
> >> >
> >> > //# sourceMappingURL=./AlertController.js.map
> >> >
> >> > It's ok? I expect it to reference the concrete subfolder:
> >> > org/apache/royale/jewel/beads/controllers
> >> >
> >> >
> >> >
> >> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
> >> joshtynjala@bowlerhat.dev>)
> >> > escribió:
> >> >
> >> > > Yes, you're right that +royalelib should not be required for
> framework
> >> > > libs. I wasn't paying close enough attention to see that you had
> added
> >> > > +royalelib to both Jewel and TDJ.
> >> > >
> >> > > So, to summarize, you should use source-map-source-root when
> building
> >> > > framework libs, and you should use +royalelib when building
> >> > examples/apps.
> >> > > +royalelib is not necessary for framework libs, and
> >> > source-map-source-root
> >> > > is (generally) not necessary for examples/apps.
> >> > >
> >> > > --
> >> > > Josh Tynjala
> >> > > Bowler Hat LLC <https://bowlerhat.dev>
> >> > >
> >> > >
> >> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <
> carlosrovira@apache.org
> >> >
> >> > > wrote:
> >> > >
> >> > > > Hi Josh,
> >> > > >
> >> > > > I discover right now that I was understanding wrong how all this
> >> works.
> >> > > > I thought we needed +royalelib in framework libs, but it's not the
> >> > case.
> >> > > > Just need to add +royalelib to a final project, so that can be
> left
> >> to
> >> > > the
> >> > > > user.
> >> > > >
> >> > > > That means that we can add to all libs this:
> >> > > > -source-map-source-root=/frameworks/projects/XXX/target/
> >> > > > (Where XXX is the root libraryfolder) -> For this I'll be adding
> in
> >> a
> >> > > > commit soon
> >> > > >
> >> > > > So, Chris, we don't need anything more to implement, as I commit
> the
> >> > > > -source-map-source-root line in all framework poms.
> >> > > >
> >> > > > Another thing is if we should upload all source maps (js.map
> files)
> >> of
> >> > > all
> >> > > > framework libs to some r.a.o url (for example /debug), and if
> people
> >> > can
> >> > > > point with +royalelib (i.e: +royalelib=
> >> http://royale.apache.org/debug
> >> > )
> >> > > >
> >> > > > What do you think?
> >> > > >
> >> > > >
> >> > > >
> >> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> >> > joshtynjala@bowlerhat.dev
> >> > > >)
> >> > > > escribió:
> >> > > >
> >> > > > > While we can set source-map-source-root in all of the library
> >> > > projects, I
> >> > > > > don't think that there's any way for us to specify +royalelib
> for
> >> TDJ
> >> > > and
> >> > > > > other examples in a general way. That's the one thing that users
> >> will
> >> > > > > probably need to set up manually because the source files come
> >> from
> >> > an
> >> > > > > IDE-compatible SDK.
> >> > > > >
> >> > > > > --
> >> > > > > Josh Tynjala
> >> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> >> > > > >
> >> > > > >
> >> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> >> > carlosrovira@apache.org>
> >> > > > > wrote:
> >> > > > >
> >> > > > > > 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 (<
> >> > > > carlosrovira@apache.org
> >> > > > > >)
> >> > > > > > escribió:
> >> > > > > >
> >> > > > > > > Hi Josh, Thanks! That worked and I finally have debugging
> >> again!
> >> > :D
> >> > > > > > >
> >> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
> >> > > > > joshtynjala@bowlerhat.dev
> >> > > > > > >)
> >> > > > > > > escribió:
> >> > > > > > >
> >> > > > > > >> Hey Carlos,
> >> > > > > > >>
> >> > > > > > >> Try using source-map-source-root with Jewel only, and omit
> it
> >> > from
> >> > > > > TDJ.
> >> > > > > > >>
> >> > > > > > >> Jewel:
> >> > > > > > >>
> >> > > > > > >> <additionalCompilerOptions>
> >> > > > > > >>
> >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> >> > > > > > >> -source-map=true;
> >> > > > > > >> -source-map-source-root=/frameworks/projects/Jewel/
> >> > > > > > >> </additionalCompilerOptions>
> >> > > > > > >>
> >> > > > > > >> TDJ:
> >> > > > > > >>
> >> > > > > > >> <additionalCompilerOptions>
> >> > > > > > >>
> >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> >> > > > > > >> -source-map=true;
> >> > > > > > >> </additionalCompilerOptions>
> >> > > > > > >>
> >> > > > > > >> 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 <https://bowlerhat.dev>
> >> > > > > > >>
> >> > > > > > >>
> >> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
> >> > > > carlosrovira@apache.org
> >> > > > > >
> >> > > > > > >> 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:
> >> > > > > > >> >
> >> > > > > > >> > <additionalCompilerOptions>
> >> > > > > > >> >
> >> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> >> > > > > > >> > -source-map=true;
> >> > > > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> >> > > > > > >> > </additionalCompilerOptions>
> >> > > > > > >> >
> >> > > > > > >> > and in TDJ:
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> >> > > > > > >> > -source-map=true;
> >> > > > > > >> > -source-map-source-root=/examples/jewel/TourDeJewel
> >> > > > > > >> > </additionalCompilerOptions>
> >> > > > > > >> >
> >> > > > > > >> > 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.dutz@c-ware.de>)
> >> > > > > > >> > escribió:
> >> > > > > > >> >
> >> > > > > > >> >> Hi all,
> >> > > > > > >> >>
> >> > > > > > >> >> Sure, happy to help, but what exactly do you need?
> >> > > > > > >> >>
> >> > > > > > >> >> Chris
> >> > > > > > >> >> ------------------------------
> >> > > > > > >> >> *Von:* Carlos Rovira <ca...@apache.org>
> >> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> >> > > > > > >> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>;
> >> Christofer
> >> > > Dutz
> >> > > > <
> >> > > > > > >> >> christofer.dutz@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 (<
> >> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
> >> > > > > > >> >>
> >> > > > > > >> >>
> >> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
> >> > > > > > carlosrovira@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:
> >> > > > > > >> >>
> >> > > > > > >> >> <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
> >> > > > > > >> >>
> >> > > > > > >> >>
> >> > > > > > >> >
> >> > > > > > >> > --
> >> > > > > > >> > 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
> >> > > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > > > --
> >> > > > 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
> >
> >
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>
RE: [EXTERNAL] Re: Configuring source maps on Royale with new
compiler options
Posted by Brian Raymes <br...@teotech.com>.
I'm not sure this is working properly. Here are some observations:
I'm seeing a very strange error with my Royale application Firefox (see initially in a release build), and I have no idea how/where it is coming from:
Uncaught TypeError: Error #1034: Type Coercion failed: cannot convert "function Function() {
[native code]
}" to Class.
I switched back to debug and noticed the same error with Firefox. When trying to click on the console class/line numbers, I see the follow paths for all of the files:
http://localhost/frameworks/projects/%7B$project.artifactId%7D/org/apache/royale/utils/Language.as
I was able to set " -source-map-source-root=/;", and that seemed to resolve the path issue with my project, but the "as" files are not within the debug output. FYI, this only seemed to work for debug mode. Attempting to build source-maps for my release mode was doing something even stranger.. injecting the full absolute path to my project files in the js map file -- making it even less usable.
How are we supposed to debug things like this? Do I need to host the framework in my webserver and set "-source-map-source-root=/<to my framework location>;" to make this work?
How can I use "source-map-source-root" for release mode to help identify build issues?
Thank you,
Brian
-----Original Message-----
From: Carlos Rovira <ca...@apache.org>
Sent: Thursday, January 7, 2021 11:12 AM
To: Apache Royale Development <de...@royale.apache.org>
Subject: [EXTERNAL] Re: Configuring source maps on Royale with new compiler options
Hi,
just fyi I added:
-source-map-source-root=/frameworks/projects/{$project.artifactId}/
at frameworks/projects/pom.xml
so now we have setup source maps in all libraries
but while that seems ok, I'm not getting lib debugging as I stated in my last email.
El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<ca...@apache.org>)
escribió:
> Ok Josh,
>
> so all seems ok, but debug is not working in classes from Jewel lib.
> I see the jewel.swc has the js.map files in the same way I related, so
> that's ok as you stated.
> I'm setting breakpoints in the same VSCode window for Jewel and TDJ
> files, but only TDJ files (in the root or subfolders) are making execution stop.
> If I set up a breakpoint in let's say Jewel Button.as, that appears
> empty on execution and doesn't have effect, while TDJ appears red and works ok.
>
> Do you know what could be happening?
>
>
>
> El jue, 7 ene 2021 a las 19:57, Josh Tynjala
> (<jo...@bowlerhat.dev>)
> escribió:
>
>> The path of the .js.map file is relative to the .js file. Since the
>> .js.map file is supposed to be in the same folder as the .js file,
>> that looks correct to me.
>>
>> --
>> Josh Tynjala
>> Bowler Hat LLC <https://bowlerhat.dev>
>>
>>
>> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira
>> <ca...@apache.org>
>> wrote:
>>
>> > Hi Josh,
>> >
>> > I'm trying to debug jewel classes in TDJ and for example
>> AlertController.js
>> > has at the end:
>> >
>> > //# sourceMappingURL=./AlertController.js.map
>> >
>> > It's ok? I expect it to reference the concrete subfolder:
>> > org/apache/royale/jewel/beads/controllers
>> >
>> >
>> >
>> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
>> joshtynjala@bowlerhat.dev>)
>> > escribió:
>> >
>> > > Yes, you're right that +royalelib should not be required for
>> > > framework libs. I wasn't paying close enough attention to see
>> > > that you had added
>> > > +royalelib to both Jewel and TDJ.
>> > >
>> > > So, to summarize, you should use source-map-source-root when
>> > > building framework libs, and you should use +royalelib when
>> > > building
>> > examples/apps.
>> > > +royalelib is not necessary for framework libs, and
>> > source-map-source-root
>> > > is (generally) not necessary for examples/apps.
>> > >
>> > > --
>> > > Josh Tynjala
>> > > Bowler Hat LLC <https://bowlerhat.dev>
>> > >
>> > >
>> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira
>> > > <carlosrovira@apache.org
>> >
>> > > wrote:
>> > >
>> > > > Hi Josh,
>> > > >
>> > > > I discover right now that I was understanding wrong how all
>> > > > this
>> works.
>> > > > I thought we needed +royalelib in framework libs, but it's not
>> > > > the
>> > case.
>> > > > Just need to add +royalelib to a final project, so that can be
>> > > > left
>> to
>> > > the
>> > > > user.
>> > > >
>> > > > That means that we can add to all libs this:
>> > > > -source-map-source-root=/frameworks/projects/XXX/target/
>> > > > (Where XXX is the root libraryfolder) -> For this I'll be
>> > > > adding in
>> a
>> > > > commit soon
>> > > >
>> > > > So, Chris, we don't need anything more to implement, as I
>> > > > commit the -source-map-source-root line in all framework poms.
>> > > >
>> > > > Another thing is if we should upload all source maps (js.map
>> > > > files)
>> of
>> > > all
>> > > > framework libs to some r.a.o url (for example /debug), and if
>> > > > people
>> > can
>> > > > point with +royalelib (i.e: +royalelib=
>> http://royale.apache.org/debug
>> > )
>> > > >
>> > > > What do you think?
>> > > >
>> > > >
>> > > >
>> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
>> > joshtynjala@bowlerhat.dev
>> > > >)
>> > > > escribió:
>> > > >
>> > > > > While we can set source-map-source-root in all of the library
>> > > projects, I
>> > > > > don't think that there's any way for us to specify +royalelib
>> > > > > for
>> TDJ
>> > > and
>> > > > > other examples in a general way. That's the one thing that
>> > > > > users
>> will
>> > > > > probably need to set up manually because the source files
>> > > > > come
>> from
>> > an
>> > > > > IDE-compatible SDK.
>> > > > >
>> > > > > --
>> > > > > Josh Tynjala
>> > > > > Bowler Hat LLC <https://bowlerhat.dev>
>> > > > >
>> > > > >
>> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
>> > carlosrovira@apache.org>
>> > > > > wrote:
>> > > > >
>> > > > > > 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 (<
>> > > > carlosrovira@apache.org
>> > > > > >)
>> > > > > > escribió:
>> > > > > >
>> > > > > > > Hi Josh, Thanks! That worked and I finally have debugging
>> again!
>> > :D
>> > > > > > >
>> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
>> > > > > joshtynjala@bowlerhat.dev
>> > > > > > >)
>> > > > > > > escribió:
>> > > > > > >
>> > > > > > >> Hey Carlos,
>> > > > > > >>
>> > > > > > >> Try using source-map-source-root with Jewel only, and
>> > > > > > >> omit it
>> > from
>> > > > > TDJ.
>> > > > > > >>
>> > > > > > >> Jewel:
>> > > > > > >>
>> > > > > > >> <additionalCompilerOptions>
>> > > > > > >>
>> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > > > > >> -source-map=true;
>> > > > > > >> -source-map-source-root=/frameworks/projects/Jewel/
>> > > > > > >> </additionalCompilerOptions>
>> > > > > > >>
>> > > > > > >> TDJ:
>> > > > > > >>
>> > > > > > >> <additionalCompilerOptions>
>> > > > > > >>
>> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > > > > >> -source-map=true;
>> > > > > > >> </additionalCompilerOptions>
>> > > > > > >>
>> > > > > > >> 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 <https://bowlerhat.dev>
>> > > > > > >>
>> > > > > > >>
>> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
>> > > > carlosrovira@apache.org
>> > > > > >
>> > > > > > >> 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:
>> > > > > > >> >
>> > > > > > >> > <additionalCompilerOptions>
>> > > > > > >> >
>> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-mave
>> > > +n
>> > > > > > >> > -source-map=true;
>> > > > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
>> > > > > > >> > </additionalCompilerOptions>
>> > > > > > >> >
>> > > > > > >> > and in TDJ:
>> > > > > > >> >
>> > > > > > >> >
>> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-mave
>> > > +n
>> > > > > > >> > -source-map=true;
>> > > > > > >> > -source-map-source-root=/examples/jewel/TourDeJewel
>> > > > > > >> > </additionalCompilerOptions>
>> > > > > > >> >
>> > > > > > >> > 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.dutz@c-ware.de>)
>> > > > > > >> > escribió:
>> > > > > > >> >
>> > > > > > >> >> Hi all,
>> > > > > > >> >>
>> > > > > > >> >> Sure, happy to help, but what exactly do you need?
>> > > > > > >> >>
>> > > > > > >> >> Chris
>> > > > > > >> >> ------------------------------
>> > > > > > >> >> *Von:* Carlos Rovira <ca...@apache.org>
>> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
>> > > > > > >> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>;
>> Christofer
>> > > Dutz
>> > > > <
>> > > > > > >> >> christofer.dutz@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 (<
>> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
>> > > > > > >> >>
>> > > > > > >> >>
>> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
>> > > > > > carlosrovira@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:
>> > > > > > >> >>
>> > > > > > >> >> <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
>> > > > > > >> >>
>> > > > > > >> >>
>> > > > > > >> >
>> > > > > > >> > --
>> > > > > > >> > 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
>> > > > > >
>> > > > >
>> > > >
>> > > >
>> > > > --
>> > > > 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
>
>
--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira
Re: Configuring source maps on Royale with new compiler options
Posted by Carlos Rovira <ca...@apache.org>.
Hi,
just fyi I added:
-source-map-source-root=/frameworks/projects/{$project.artifactId}/
at frameworks/projects/pom.xml
so now we have setup source maps in all libraries
but while that seems ok, I'm not getting lib debugging as I stated in my
last email.
El jue, 7 ene 2021 a las 20:07, Carlos Rovira (<ca...@apache.org>)
escribió:
> Ok Josh,
>
> so all seems ok, but debug is not working in classes from Jewel lib.
> I see the jewel.swc has the js.map files in the same way I related, so
> that's ok as you stated.
> I'm setting breakpoints in the same VSCode window for Jewel and TDJ files,
> but only TDJ files (in the root or subfolders) are making execution stop.
> If I set up a breakpoint in let's say Jewel Button.as, that appears empty
> on execution and doesn't have effect, while TDJ appears red and works ok.
>
> Do you know what could be happening?
>
>
>
> El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<jo...@bowlerhat.dev>)
> escribió:
>
>> The path of the .js.map file is relative to the .js file. Since the
>> .js.map file is supposed to be in the same folder as the .js file, that
>> looks correct to me.
>>
>> --
>> Josh Tynjala
>> Bowler Hat LLC <https://bowlerhat.dev>
>>
>>
>> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <ca...@apache.org>
>> wrote:
>>
>> > Hi Josh,
>> >
>> > I'm trying to debug jewel classes in TDJ and for example
>> AlertController.js
>> > has at the end:
>> >
>> > //# sourceMappingURL=./AlertController.js.map
>> >
>> > It's ok? I expect it to reference the concrete subfolder:
>> > org/apache/royale/jewel/beads/controllers
>> >
>> >
>> >
>> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<
>> joshtynjala@bowlerhat.dev>)
>> > escribió:
>> >
>> > > Yes, you're right that +royalelib should not be required for framework
>> > > libs. I wasn't paying close enough attention to see that you had added
>> > > +royalelib to both Jewel and TDJ.
>> > >
>> > > So, to summarize, you should use source-map-source-root when building
>> > > framework libs, and you should use +royalelib when building
>> > examples/apps.
>> > > +royalelib is not necessary for framework libs, and
>> > source-map-source-root
>> > > is (generally) not necessary for examples/apps.
>> > >
>> > > --
>> > > Josh Tynjala
>> > > Bowler Hat LLC <https://bowlerhat.dev>
>> > >
>> > >
>> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <carlosrovira@apache.org
>> >
>> > > wrote:
>> > >
>> > > > Hi Josh,
>> > > >
>> > > > I discover right now that I was understanding wrong how all this
>> works.
>> > > > I thought we needed +royalelib in framework libs, but it's not the
>> > case.
>> > > > Just need to add +royalelib to a final project, so that can be left
>> to
>> > > the
>> > > > user.
>> > > >
>> > > > That means that we can add to all libs this:
>> > > > -source-map-source-root=/frameworks/projects/XXX/target/
>> > > > (Where XXX is the root libraryfolder) -> For this I'll be adding in
>> a
>> > > > commit soon
>> > > >
>> > > > So, Chris, we don't need anything more to implement, as I commit the
>> > > > -source-map-source-root line in all framework poms.
>> > > >
>> > > > Another thing is if we should upload all source maps (js.map files)
>> of
>> > > all
>> > > > framework libs to some r.a.o url (for example /debug), and if people
>> > can
>> > > > point with +royalelib (i.e: +royalelib=
>> http://royale.apache.org/debug
>> > )
>> > > >
>> > > > What do you think?
>> > > >
>> > > >
>> > > >
>> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
>> > joshtynjala@bowlerhat.dev
>> > > >)
>> > > > escribió:
>> > > >
>> > > > > While we can set source-map-source-root in all of the library
>> > > projects, I
>> > > > > don't think that there's any way for us to specify +royalelib for
>> TDJ
>> > > and
>> > > > > other examples in a general way. That's the one thing that users
>> will
>> > > > > probably need to set up manually because the source files come
>> from
>> > an
>> > > > > IDE-compatible SDK.
>> > > > >
>> > > > > --
>> > > > > Josh Tynjala
>> > > > > Bowler Hat LLC <https://bowlerhat.dev>
>> > > > >
>> > > > >
>> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
>> > carlosrovira@apache.org>
>> > > > > wrote:
>> > > > >
>> > > > > > 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 (<
>> > > > carlosrovira@apache.org
>> > > > > >)
>> > > > > > escribió:
>> > > > > >
>> > > > > > > Hi Josh, Thanks! That worked and I finally have debugging
>> again!
>> > :D
>> > > > > > >
>> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
>> > > > > joshtynjala@bowlerhat.dev
>> > > > > > >)
>> > > > > > > escribió:
>> > > > > > >
>> > > > > > >> Hey Carlos,
>> > > > > > >>
>> > > > > > >> Try using source-map-source-root with Jewel only, and omit it
>> > from
>> > > > > TDJ.
>> > > > > > >>
>> > > > > > >> Jewel:
>> > > > > > >>
>> > > > > > >> <additionalCompilerOptions>
>> > > > > > >>
>> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > > > > >> -source-map=true;
>> > > > > > >> -source-map-source-root=/frameworks/projects/Jewel/
>> > > > > > >> </additionalCompilerOptions>
>> > > > > > >>
>> > > > > > >> TDJ:
>> > > > > > >>
>> > > > > > >> <additionalCompilerOptions>
>> > > > > > >>
>> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > > > > >> -source-map=true;
>> > > > > > >> </additionalCompilerOptions>
>> > > > > > >>
>> > > > > > >> 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 <https://bowlerhat.dev>
>> > > > > > >>
>> > > > > > >>
>> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
>> > > > carlosrovira@apache.org
>> > > > > >
>> > > > > > >> 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:
>> > > > > > >> >
>> > > > > > >> > <additionalCompilerOptions>
>> > > > > > >> >
>> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > > > > >> > -source-map=true;
>> > > > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
>> > > > > > >> > </additionalCompilerOptions>
>> > > > > > >> >
>> > > > > > >> > and in TDJ:
>> > > > > > >> >
>> > > > > > >> >
>> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > > > > > >> > -source-map=true;
>> > > > > > >> > -source-map-source-root=/examples/jewel/TourDeJewel
>> > > > > > >> > </additionalCompilerOptions>
>> > > > > > >> >
>> > > > > > >> > 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.dutz@c-ware.de>)
>> > > > > > >> > escribió:
>> > > > > > >> >
>> > > > > > >> >> Hi all,
>> > > > > > >> >>
>> > > > > > >> >> Sure, happy to help, but what exactly do you need?
>> > > > > > >> >>
>> > > > > > >> >> Chris
>> > > > > > >> >> ------------------------------
>> > > > > > >> >> *Von:* Carlos Rovira <ca...@apache.org>
>> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
>> > > > > > >> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>;
>> Christofer
>> > > Dutz
>> > > > <
>> > > > > > >> >> christofer.dutz@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 (<
>> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
>> > > > > > >> >>
>> > > > > > >> >>
>> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
>> > > > > > carlosrovira@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:
>> > > > > > >> >>
>> > > > > > >> >> <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
>> > > > > > >> >>
>> > > > > > >> >>
>> > > > > > >> >
>> > > > > > >> > --
>> > > > > > >> > 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
>> > > > > >
>> > > > >
>> > > >
>> > > >
>> > > > --
>> > > > 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
>
>
--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira
Re: Configuring source maps on Royale with new compiler options
Posted by Carlos Rovira <ca...@apache.org>.
Ok Josh,
so all seems ok, but debug is not working in classes from Jewel lib.
I see the jewel.swc has the js.map files in the same way I related, so
that's ok as you stated.
I'm setting breakpoints in the same VSCode window for Jewel and TDJ files,
but only TDJ files (in the root or subfolders) are making execution stop.
If I set up a breakpoint in let's say Jewel Button.as, that appears empty
on execution and doesn't have effect, while TDJ appears red and works ok.
Do you know what could be happening?
El jue, 7 ene 2021 a las 19:57, Josh Tynjala (<jo...@bowlerhat.dev>)
escribió:
> The path of the .js.map file is relative to the .js file. Since the
> .js.map file is supposed to be in the same folder as the .js file, that
> looks correct to me.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
> > Hi Josh,
> >
> > I'm trying to debug jewel classes in TDJ and for example
> AlertController.js
> > has at the end:
> >
> > //# sourceMappingURL=./AlertController.js.map
> >
> > It's ok? I expect it to reference the concrete subfolder:
> > org/apache/royale/jewel/beads/controllers
> >
> >
> >
> > El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<joshtynjala@bowlerhat.dev
> >)
> > escribió:
> >
> > > Yes, you're right that +royalelib should not be required for framework
> > > libs. I wasn't paying close enough attention to see that you had added
> > > +royalelib to both Jewel and TDJ.
> > >
> > > So, to summarize, you should use source-map-source-root when building
> > > framework libs, and you should use +royalelib when building
> > examples/apps.
> > > +royalelib is not necessary for framework libs, and
> > source-map-source-root
> > > is (generally) not necessary for examples/apps.
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >
> > >
> > > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <ca...@apache.org>
> > > wrote:
> > >
> > > > Hi Josh,
> > > >
> > > > I discover right now that I was understanding wrong how all this
> works.
> > > > I thought we needed +royalelib in framework libs, but it's not the
> > case.
> > > > Just need to add +royalelib to a final project, so that can be left
> to
> > > the
> > > > user.
> > > >
> > > > That means that we can add to all libs this:
> > > > -source-map-source-root=/frameworks/projects/XXX/target/
> > > > (Where XXX is the root libraryfolder) -> For this I'll be adding in a
> > > > commit soon
> > > >
> > > > So, Chris, we don't need anything more to implement, as I commit the
> > > > -source-map-source-root line in all framework poms.
> > > >
> > > > Another thing is if we should upload all source maps (js.map files)
> of
> > > all
> > > > framework libs to some r.a.o url (for example /debug), and if people
> > can
> > > > point with +royalelib (i.e: +royalelib=
> http://royale.apache.org/debug
> > )
> > > >
> > > > What do you think?
> > > >
> > > >
> > > >
> > > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> > joshtynjala@bowlerhat.dev
> > > >)
> > > > escribió:
> > > >
> > > > > While we can set source-map-source-root in all of the library
> > > projects, I
> > > > > don't think that there's any way for us to specify +royalelib for
> TDJ
> > > and
> > > > > other examples in a general way. That's the one thing that users
> will
> > > > > probably need to set up manually because the source files come from
> > an
> > > > > IDE-compatible SDK.
> > > > >
> > > > > --
> > > > > Josh Tynjala
> > > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > > >
> > > > >
> > > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> > carlosrovira@apache.org>
> > > > > wrote:
> > > > >
> > > > > > 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 (<
> > > > carlosrovira@apache.org
> > > > > >)
> > > > > > escribió:
> > > > > >
> > > > > > > Hi Josh, Thanks! That worked and I finally have debugging
> again!
> > :D
> > > > > > >
> > > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
> > > > > joshtynjala@bowlerhat.dev
> > > > > > >)
> > > > > > > escribió:
> > > > > > >
> > > > > > >> Hey Carlos,
> > > > > > >>
> > > > > > >> Try using source-map-source-root with Jewel only, and omit it
> > from
> > > > > TDJ.
> > > > > > >>
> > > > > > >> Jewel:
> > > > > > >>
> > > > > > >> <additionalCompilerOptions>
> > > > > > >>
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > >> -source-map=true;
> > > > > > >> -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > >> </additionalCompilerOptions>
> > > > > > >>
> > > > > > >> TDJ:
> > > > > > >>
> > > > > > >> <additionalCompilerOptions>
> > > > > > >>
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > >> -source-map=true;
> > > > > > >> </additionalCompilerOptions>
> > > > > > >>
> > > > > > >> 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 <https://bowlerhat.dev>
> > > > > > >>
> > > > > > >>
> > > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
> > > > carlosrovira@apache.org
> > > > > >
> > > > > > >> 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:
> > > > > > >> >
> > > > > > >> > <additionalCompilerOptions>
> > > > > > >> >
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > >> > -source-map=true;
> > > > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > > >> > </additionalCompilerOptions>
> > > > > > >> >
> > > > > > >> > and in TDJ:
> > > > > > >> >
> > > > > > >> >
> > > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > > >> > -source-map=true;
> > > > > > >> > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > > > >> > </additionalCompilerOptions>
> > > > > > >> >
> > > > > > >> > 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.dutz@c-ware.de>)
> > > > > > >> > escribió:
> > > > > > >> >
> > > > > > >> >> Hi all,
> > > > > > >> >>
> > > > > > >> >> Sure, happy to help, but what exactly do you need?
> > > > > > >> >>
> > > > > > >> >> Chris
> > > > > > >> >> ------------------------------
> > > > > > >> >> *Von:* Carlos Rovira <ca...@apache.org>
> > > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> > > > > > >> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>; Christofer
> > > Dutz
> > > > <
> > > > > > >> >> christofer.dutz@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 (<
> > > > > > >> joshtynjala@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 <https://bowlerhat.dev>
> > > > > > >> >>
> > > > > > >> >>
> > > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
> > > > > > carlosrovira@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:
> > > > > > >> >>
> > > > > > >> >> <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
> > > > > > >> >>
> > > > > > >> >>
> > > > > > >> >
> > > > > > >> > --
> > > > > > >> > 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
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > 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
Re: Configuring source maps on Royale with new compiler options
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
The path of the .js.map file is relative to the .js file. Since the
.js.map file is supposed to be in the same folder as the .js file, that
looks correct to me.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Thu, Jan 7, 2021 at 10:28 AM Carlos Rovira <ca...@apache.org>
wrote:
> Hi Josh,
>
> I'm trying to debug jewel classes in TDJ and for example AlertController.js
> has at the end:
>
> //# sourceMappingURL=./AlertController.js.map
>
> It's ok? I expect it to reference the concrete subfolder:
> org/apache/royale/jewel/beads/controllers
>
>
>
> El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<jo...@bowlerhat.dev>)
> escribió:
>
> > Yes, you're right that +royalelib should not be required for framework
> > libs. I wasn't paying close enough attention to see that you had added
> > +royalelib to both Jewel and TDJ.
> >
> > So, to summarize, you should use source-map-source-root when building
> > framework libs, and you should use +royalelib when building
> examples/apps.
> > +royalelib is not necessary for framework libs, and
> source-map-source-root
> > is (generally) not necessary for examples/apps.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <ca...@apache.org>
> > wrote:
> >
> > > Hi Josh,
> > >
> > > I discover right now that I was understanding wrong how all this works.
> > > I thought we needed +royalelib in framework libs, but it's not the
> case.
> > > Just need to add +royalelib to a final project, so that can be left to
> > the
> > > user.
> > >
> > > That means that we can add to all libs this:
> > > -source-map-source-root=/frameworks/projects/XXX/target/
> > > (Where XXX is the root libraryfolder) -> For this I'll be adding in a
> > > commit soon
> > >
> > > So, Chris, we don't need anything more to implement, as I commit the
> > > -source-map-source-root line in all framework poms.
> > >
> > > Another thing is if we should upload all source maps (js.map files) of
> > all
> > > framework libs to some r.a.o url (for example /debug), and if people
> can
> > > point with +royalelib (i.e: +royalelib=http://royale.apache.org/debug
> )
> > >
> > > What do you think?
> > >
> > >
> > >
> > > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<
> joshtynjala@bowlerhat.dev
> > >)
> > > escribió:
> > >
> > > > While we can set source-map-source-root in all of the library
> > projects, I
> > > > don't think that there's any way for us to specify +royalelib for TDJ
> > and
> > > > other examples in a general way. That's the one thing that users will
> > > > probably need to set up manually because the source files come from
> an
> > > > IDE-compatible SDK.
> > > >
> > > > --
> > > > Josh Tynjala
> > > > Bowler Hat LLC <https://bowlerhat.dev>
> > > >
> > > >
> > > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <
> carlosrovira@apache.org>
> > > > wrote:
> > > >
> > > > > 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 (<
> > > carlosrovira@apache.org
> > > > >)
> > > > > escribió:
> > > > >
> > > > > > Hi Josh, Thanks! That worked and I finally have debugging again!
> :D
> > > > > >
> > > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
> > > > joshtynjala@bowlerhat.dev
> > > > > >)
> > > > > > escribió:
> > > > > >
> > > > > >> Hey Carlos,
> > > > > >>
> > > > > >> Try using source-map-source-root with Jewel only, and omit it
> from
> > > > TDJ.
> > > > > >>
> > > > > >> Jewel:
> > > > > >>
> > > > > >> <additionalCompilerOptions>
> > > > > >>
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > >> -source-map=true;
> > > > > >> -source-map-source-root=/frameworks/projects/Jewel/
> > > > > >> </additionalCompilerOptions>
> > > > > >>
> > > > > >> TDJ:
> > > > > >>
> > > > > >> <additionalCompilerOptions>
> > > > > >>
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > >> -source-map=true;
> > > > > >> </additionalCompilerOptions>
> > > > > >>
> > > > > >> 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 <https://bowlerhat.dev>
> > > > > >>
> > > > > >>
> > > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
> > > carlosrovira@apache.org
> > > > >
> > > > > >> 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:
> > > > > >> >
> > > > > >> > <additionalCompilerOptions>
> > > > > >> >
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > >> > -source-map=true;
> > > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > > > > >> > </additionalCompilerOptions>
> > > > > >> >
> > > > > >> > and in TDJ:
> > > > > >> >
> > > > > >> >
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > > >> > -source-map=true;
> > > > > >> > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > > >> > </additionalCompilerOptions>
> > > > > >> >
> > > > > >> > 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.dutz@c-ware.de>)
> > > > > >> > escribió:
> > > > > >> >
> > > > > >> >> Hi all,
> > > > > >> >>
> > > > > >> >> Sure, happy to help, but what exactly do you need?
> > > > > >> >>
> > > > > >> >> Chris
> > > > > >> >> ------------------------------
> > > > > >> >> *Von:* Carlos Rovira <ca...@apache.org>
> > > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> > > > > >> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>; Christofer
> > Dutz
> > > <
> > > > > >> >> christofer.dutz@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 (<
> > > > > >> joshtynjala@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 <https://bowlerhat.dev>
> > > > > >> >>
> > > > > >> >>
> > > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
> > > > > carlosrovira@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:
> > > > > >> >>
> > > > > >> >> <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
> > > > > >> >>
> > > > > >> >>
> > > > > >> >
> > > > > >> > --
> > > > > >> > 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
> > > > >
> > > >
> > >
> > >
> > > --
> > > 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
>
Re: Configuring source maps on Royale with new compiler options
Posted by Carlos Rovira <ca...@apache.org>.
Hi Josh,
I'm trying to debug jewel classes in TDJ and for example AlertController.js
has at the end:
//# sourceMappingURL=./AlertController.js.map
It's ok? I expect it to reference the concrete subfolder:
org/apache/royale/jewel/beads/controllers
El jue, 7 ene 2021 a las 18:23, Josh Tynjala (<jo...@bowlerhat.dev>)
escribió:
> Yes, you're right that +royalelib should not be required for framework
> libs. I wasn't paying close enough attention to see that you had added
> +royalelib to both Jewel and TDJ.
>
> So, to summarize, you should use source-map-source-root when building
> framework libs, and you should use +royalelib when building examples/apps.
> +royalelib is not necessary for framework libs, and source-map-source-root
> is (generally) not necessary for examples/apps.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
> > Hi Josh,
> >
> > I discover right now that I was understanding wrong how all this works.
> > I thought we needed +royalelib in framework libs, but it's not the case.
> > Just need to add +royalelib to a final project, so that can be left to
> the
> > user.
> >
> > That means that we can add to all libs this:
> > -source-map-source-root=/frameworks/projects/XXX/target/
> > (Where XXX is the root libraryfolder) -> For this I'll be adding in a
> > commit soon
> >
> > So, Chris, we don't need anything more to implement, as I commit the
> > -source-map-source-root line in all framework poms.
> >
> > Another thing is if we should upload all source maps (js.map files) of
> all
> > framework libs to some r.a.o url (for example /debug), and if people can
> > point with +royalelib (i.e: +royalelib=http://royale.apache.org/debug )
> >
> > What do you think?
> >
> >
> >
> > El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<joshtynjala@bowlerhat.dev
> >)
> > escribió:
> >
> > > While we can set source-map-source-root in all of the library
> projects, I
> > > don't think that there's any way for us to specify +royalelib for TDJ
> and
> > > other examples in a general way. That's the one thing that users will
> > > probably need to set up manually because the source files come from an
> > > IDE-compatible SDK.
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >
> > >
> > > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <ca...@apache.org>
> > > wrote:
> > >
> > > > 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 (<
> > carlosrovira@apache.org
> > > >)
> > > > escribió:
> > > >
> > > > > Hi Josh, Thanks! That worked and I finally have debugging again! :D
> > > > >
> > > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
> > > joshtynjala@bowlerhat.dev
> > > > >)
> > > > > escribió:
> > > > >
> > > > >> Hey Carlos,
> > > > >>
> > > > >> Try using source-map-source-root with Jewel only, and omit it from
> > > TDJ.
> > > > >>
> > > > >> Jewel:
> > > > >>
> > > > >> <additionalCompilerOptions>
> > > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > >> -source-map=true;
> > > > >> -source-map-source-root=/frameworks/projects/Jewel/
> > > > >> </additionalCompilerOptions>
> > > > >>
> > > > >> TDJ:
> > > > >>
> > > > >> <additionalCompilerOptions>
> > > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > >> -source-map=true;
> > > > >> </additionalCompilerOptions>
> > > > >>
> > > > >> 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 <https://bowlerhat.dev>
> > > > >>
> > > > >>
> > > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
> > carlosrovira@apache.org
> > > >
> > > > >> 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:
> > > > >> >
> > > > >> > <additionalCompilerOptions>
> > > > >> >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > >> > -source-map=true;
> > > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > > > >> > </additionalCompilerOptions>
> > > > >> >
> > > > >> > and in TDJ:
> > > > >> >
> > > > >> >
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > > >> > -source-map=true;
> > > > >> > -source-map-source-root=/examples/jewel/TourDeJewel
> > > > >> > </additionalCompilerOptions>
> > > > >> >
> > > > >> > 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.dutz@c-ware.de>)
> > > > >> > escribió:
> > > > >> >
> > > > >> >> Hi all,
> > > > >> >>
> > > > >> >> Sure, happy to help, but what exactly do you need?
> > > > >> >>
> > > > >> >> Chris
> > > > >> >> ------------------------------
> > > > >> >> *Von:* Carlos Rovira <ca...@apache.org>
> > > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> > > > >> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>; Christofer
> Dutz
> > <
> > > > >> >> christofer.dutz@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 (<
> > > > >> joshtynjala@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 <https://bowlerhat.dev>
> > > > >> >>
> > > > >> >>
> > > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
> > > > carlosrovira@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:
> > > > >> >>
> > > > >> >> <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
> > > > >> >>
> > > > >> >>
> > > > >> >
> > > > >> > --
> > > > >> > 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
> > > >
> > >
> >
> >
> > --
> > 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
Re: Configuring source maps on Royale with new compiler options
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
Yes, you're right that +royalelib should not be required for framework
libs. I wasn't paying close enough attention to see that you had added
+royalelib to both Jewel and TDJ.
So, to summarize, you should use source-map-source-root when building
framework libs, and you should use +royalelib when building examples/apps.
+royalelib is not necessary for framework libs, and source-map-source-root
is (generally) not necessary for examples/apps.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Thu, Jan 7, 2021 at 7:43 AM Carlos Rovira <ca...@apache.org>
wrote:
> Hi Josh,
>
> I discover right now that I was understanding wrong how all this works.
> I thought we needed +royalelib in framework libs, but it's not the case.
> Just need to add +royalelib to a final project, so that can be left to the
> user.
>
> That means that we can add to all libs this:
> -source-map-source-root=/frameworks/projects/XXX/target/
> (Where XXX is the root libraryfolder) -> For this I'll be adding in a
> commit soon
>
> So, Chris, we don't need anything more to implement, as I commit the
> -source-map-source-root line in all framework poms.
>
> Another thing is if we should upload all source maps (js.map files) of all
> framework libs to some r.a.o url (for example /debug), and if people can
> point with +royalelib (i.e: +royalelib=http://royale.apache.org/debug )
>
> What do you think?
>
>
>
> El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<jo...@bowlerhat.dev>)
> escribió:
>
> > While we can set source-map-source-root in all of the library projects, I
> > don't think that there's any way for us to specify +royalelib for TDJ and
> > other examples in a general way. That's the one thing that users will
> > probably need to set up manually because the source files come from an
> > IDE-compatible SDK.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <ca...@apache.org>
> > wrote:
> >
> > > 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 (<
> carlosrovira@apache.org
> > >)
> > > escribió:
> > >
> > > > Hi Josh, Thanks! That worked and I finally have debugging again! :D
> > > >
> > > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
> > joshtynjala@bowlerhat.dev
> > > >)
> > > > escribió:
> > > >
> > > >> Hey Carlos,
> > > >>
> > > >> Try using source-map-source-root with Jewel only, and omit it from
> > TDJ.
> > > >>
> > > >> Jewel:
> > > >>
> > > >> <additionalCompilerOptions>
> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > >> -source-map=true;
> > > >> -source-map-source-root=/frameworks/projects/Jewel/
> > > >> </additionalCompilerOptions>
> > > >>
> > > >> TDJ:
> > > >>
> > > >> <additionalCompilerOptions>
> > > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > >> -source-map=true;
> > > >> </additionalCompilerOptions>
> > > >>
> > > >> 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 <https://bowlerhat.dev>
> > > >>
> > > >>
> > > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <
> carlosrovira@apache.org
> > >
> > > >> 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:
> > > >> >
> > > >> > <additionalCompilerOptions>
> > > >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > >> > -source-map=true;
> > > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > > >> > </additionalCompilerOptions>
> > > >> >
> > > >> > and in TDJ:
> > > >> >
> > > >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > > >> > -source-map=true;
> > > >> > -source-map-source-root=/examples/jewel/TourDeJewel
> > > >> > </additionalCompilerOptions>
> > > >> >
> > > >> > 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.dutz@c-ware.de>)
> > > >> > escribió:
> > > >> >
> > > >> >> Hi all,
> > > >> >>
> > > >> >> Sure, happy to help, but what exactly do you need?
> > > >> >>
> > > >> >> Chris
> > > >> >> ------------------------------
> > > >> >> *Von:* Carlos Rovira <ca...@apache.org>
> > > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> > > >> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>; Christofer Dutz
> <
> > > >> >> christofer.dutz@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 (<
> > > >> joshtynjala@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 <https://bowlerhat.dev>
> > > >> >>
> > > >> >>
> > > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
> > > carlosrovira@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:
> > > >> >>
> > > >> >> <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
> > > >> >>
> > > >> >>
> > > >> >
> > > >> > --
> > > >> > 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
> > >
> >
>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>
Re: Configuring source maps on Royale with new compiler options
Posted by Carlos Rovira <ca...@apache.org>.
Hi Josh,
I discover right now that I was understanding wrong how all this works.
I thought we needed +royalelib in framework libs, but it's not the case.
Just need to add +royalelib to a final project, so that can be left to the
user.
That means that we can add to all libs this:
-source-map-source-root=/frameworks/projects/XXX/target/
(Where XXX is the root libraryfolder) -> For this I'll be adding in a
commit soon
So, Chris, we don't need anything more to implement, as I commit the
-source-map-source-root line in all framework poms.
Another thing is if we should upload all source maps (js.map files) of all
framework libs to some r.a.o url (for example /debug), and if people can
point with +royalelib (i.e: +royalelib=http://royale.apache.org/debug )
What do you think?
El mié, 6 ene 2021 a las 18:35, Josh Tynjala (<jo...@bowlerhat.dev>)
escribió:
> While we can set source-map-source-root in all of the library projects, I
> don't think that there's any way for us to specify +royalelib for TDJ and
> other examples in a general way. That's the one thing that users will
> probably need to set up manually because the source files come from an
> IDE-compatible SDK.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
> > 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 (<carlosrovira@apache.org
> >)
> > escribió:
> >
> > > Hi Josh, Thanks! That worked and I finally have debugging again! :D
> > >
> > > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<
> joshtynjala@bowlerhat.dev
> > >)
> > > escribió:
> > >
> > >> Hey Carlos,
> > >>
> > >> Try using source-map-source-root with Jewel only, and omit it from
> TDJ.
> > >>
> > >> Jewel:
> > >>
> > >> <additionalCompilerOptions>
> > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > >> -source-map=true;
> > >> -source-map-source-root=/frameworks/projects/Jewel/
> > >> </additionalCompilerOptions>
> > >>
> > >> TDJ:
> > >>
> > >> <additionalCompilerOptions>
> > >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > >> -source-map=true;
> > >> </additionalCompilerOptions>
> > >>
> > >> 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 <https://bowlerhat.dev>
> > >>
> > >>
> > >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <carlosrovira@apache.org
> >
> > >> 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:
> > >> >
> > >> > <additionalCompilerOptions>
> > >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > >> > -source-map=true;
> > >> > -source-map-source-root=/frameworks/projects/Jewel/
> > >> > </additionalCompilerOptions>
> > >> >
> > >> > and in TDJ:
> > >> >
> > >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > >> > -source-map=true;
> > >> > -source-map-source-root=/examples/jewel/TourDeJewel
> > >> > </additionalCompilerOptions>
> > >> >
> > >> > 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.dutz@c-ware.de>)
> > >> > escribió:
> > >> >
> > >> >> Hi all,
> > >> >>
> > >> >> Sure, happy to help, but what exactly do you need?
> > >> >>
> > >> >> Chris
> > >> >> ------------------------------
> > >> >> *Von:* Carlos Rovira <ca...@apache.org>
> > >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> > >> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>; Christofer Dutz <
> > >> >> christofer.dutz@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 (<
> > >> joshtynjala@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 <https://bowlerhat.dev>
> > >> >>
> > >> >>
> > >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
> > carlosrovira@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:
> > >> >>
> > >> >> <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
> > >> >>
> > >> >>
> > >> >
> > >> > --
> > >> > 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
> >
>
--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira
Re: Configuring source maps on Royale with new compiler options
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
While we can set source-map-source-root in all of the library projects, I
don't think that there's any way for us to specify +royalelib for TDJ and
other examples in a general way. That's the one thing that users will
probably need to set up manually because the source files come from an
IDE-compatible SDK.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Wed, Jan 6, 2021 at 3:21 AM Carlos Rovira <ca...@apache.org>
wrote:
> 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 (<ca...@apache.org>)
> escribió:
>
> > Hi Josh, Thanks! That worked and I finally have debugging again! :D
> >
> > El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<joshtynjala@bowlerhat.dev
> >)
> > escribió:
> >
> >> Hey Carlos,
> >>
> >> Try using source-map-source-root with Jewel only, and omit it from TDJ.
> >>
> >> Jewel:
> >>
> >> <additionalCompilerOptions>
> >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> >> -source-map=true;
> >> -source-map-source-root=/frameworks/projects/Jewel/
> >> </additionalCompilerOptions>
> >>
> >> TDJ:
> >>
> >> <additionalCompilerOptions>
> >> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> >> -source-map=true;
> >> </additionalCompilerOptions>
> >>
> >> 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 <https://bowlerhat.dev>
> >>
> >>
> >> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <ca...@apache.org>
> >> 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:
> >> >
> >> > <additionalCompilerOptions>
> >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> >> > -source-map=true;
> >> > -source-map-source-root=/frameworks/projects/Jewel/
> >> > </additionalCompilerOptions>
> >> >
> >> > and in TDJ:
> >> >
> >> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> >> > -source-map=true;
> >> > -source-map-source-root=/examples/jewel/TourDeJewel
> >> > </additionalCompilerOptions>
> >> >
> >> > 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.dutz@c-ware.de>)
> >> > escribió:
> >> >
> >> >> Hi all,
> >> >>
> >> >> Sure, happy to help, but what exactly do you need?
> >> >>
> >> >> Chris
> >> >> ------------------------------
> >> >> *Von:* Carlos Rovira <ca...@apache.org>
> >> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> >> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>; Christofer Dutz <
> >> >> christofer.dutz@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 (<
> >> joshtynjala@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 <https://bowlerhat.dev>
> >> >>
> >> >>
> >> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <
> carlosrovira@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:
> >> >>
> >> >> <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
> >> >>
> >> >>
> >> >
> >> > --
> >> > 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
Posted by Christofer Dutz <ch...@c-ware.de>.
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 <ca...@apache.org>
Gesendet: Mittwoch, 6. Januar 2021 12:21
An: Apache Royale Development <de...@royale.apache.org>
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 (<ca...@apache.org>)
escribió:
> Hi Josh, Thanks! That worked and I finally have debugging again! :D
>
> El mar, 5 ene 2021 a las 17:34, Josh Tynjala
> (<jo...@bowlerhat.dev>)
> escribió:
>
>> Hey Carlos,
>>
>> Try using source-map-source-root with Jewel only, and omit it from TDJ.
>>
>> Jewel:
>>
>> <additionalCompilerOptions>
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> -source-map=true;
>> -source-map-source-root=/frameworks/projects/Jewel/
>> </additionalCompilerOptions>
>>
>> TDJ:
>>
>> <additionalCompilerOptions>
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> -source-map=true;
>> </additionalCompilerOptions>
>>
>> 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 <https://bowlerhat.dev>
>>
>>
>> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira
>> <ca...@apache.org>
>> 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:
>> >
>> > <additionalCompilerOptions>
>> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > -source-map=true;
>> > -source-map-source-root=/frameworks/projects/Jewel/
>> > </additionalCompilerOptions>
>> >
>> > and in TDJ:
>> >
>> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > -source-map=true;
>> > -source-map-source-root=/examples/jewel/TourDeJewel
>> > </additionalCompilerOptions>
>> >
>> > 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.dutz@c-ware.de>)
>> > escribió:
>> >
>> >> Hi all,
>> >>
>> >> Sure, happy to help, but what exactly do you need?
>> >>
>> >> Chris
>> >> ------------------------------
>> >> *Von:* Carlos Rovira <ca...@apache.org>
>> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
>> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>; Christofer Dutz <
>> >> christofer.dutz@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 (<
>> joshtynjala@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 <https://bowlerhat.dev>
>> >>
>> >>
>> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira
>> >> <carlosrovira@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:
>> >>
>> >> <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
>> >>
>> >>
>> >
>> > --
>> > 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
Re: Configuring source maps on Royale with new compiler options
Posted by Carlos Rovira <ca...@apache.org>.
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 (<ca...@apache.org>)
escribió:
> Hi Josh, Thanks! That worked and I finally have debugging again! :D
>
> El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<jo...@bowlerhat.dev>)
> escribió:
>
>> Hey Carlos,
>>
>> Try using source-map-source-root with Jewel only, and omit it from TDJ.
>>
>> Jewel:
>>
>> <additionalCompilerOptions>
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> -source-map=true;
>> -source-map-source-root=/frameworks/projects/Jewel/
>> </additionalCompilerOptions>
>>
>> TDJ:
>>
>> <additionalCompilerOptions>
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> -source-map=true;
>> </additionalCompilerOptions>
>>
>> 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 <https://bowlerhat.dev>
>>
>>
>> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <ca...@apache.org>
>> 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:
>> >
>> > <additionalCompilerOptions>
>> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > -source-map=true;
>> > -source-map-source-root=/frameworks/projects/Jewel/
>> > </additionalCompilerOptions>
>> >
>> > and in TDJ:
>> >
>> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
>> > -source-map=true;
>> > -source-map-source-root=/examples/jewel/TourDeJewel
>> > </additionalCompilerOptions>
>> >
>> > 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.dutz@c-ware.de>)
>> > escribió:
>> >
>> >> Hi all,
>> >>
>> >> Sure, happy to help, but what exactly do you need?
>> >>
>> >> Chris
>> >> ------------------------------
>> >> *Von:* Carlos Rovira <ca...@apache.org>
>> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
>> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>; Christofer Dutz <
>> >> christofer.dutz@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 (<
>> joshtynjala@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 <https://bowlerhat.dev>
>> >>
>> >>
>> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <carlosrovira@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:
>> >>
>> >> <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
>> >>
>> >>
>> >
>> > --
>> > 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
Re: Configuring source maps on Royale with new compiler options
Posted by Carlos Rovira <ca...@apache.org>.
Hi Josh, Thanks! That worked and I finally have debugging again! :D
El mar, 5 ene 2021 a las 17:34, Josh Tynjala (<jo...@bowlerhat.dev>)
escribió:
> Hey Carlos,
>
> Try using source-map-source-root with Jewel only, and omit it from TDJ.
>
> Jewel:
>
> <additionalCompilerOptions>
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> -source-map=true;
> -source-map-source-root=/frameworks/projects/Jewel/
> </additionalCompilerOptions>
>
> TDJ:
>
> <additionalCompilerOptions>
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> -source-map=true;
> </additionalCompilerOptions>
>
> 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 <https://bowlerhat.dev>
>
>
> On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <ca...@apache.org>
> 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:
> >
> > <additionalCompilerOptions>
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > -source-map=true;
> > -source-map-source-root=/frameworks/projects/Jewel/
> > </additionalCompilerOptions>
> >
> > and in TDJ:
> >
> > +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> > -source-map=true;
> > -source-map-source-root=/examples/jewel/TourDeJewel
> > </additionalCompilerOptions>
> >
> > 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.dutz@c-ware.de>)
> > escribió:
> >
> >> Hi all,
> >>
> >> Sure, happy to help, but what exactly do you need?
> >>
> >> Chris
> >> ------------------------------
> >> *Von:* Carlos Rovira <ca...@apache.org>
> >> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> >> *An:* Josh Tynjala <jo...@bowlerhat.dev>; Christofer Dutz <
> >> christofer.dutz@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 (<
> joshtynjala@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 <https://bowlerhat.dev>
> >>
> >>
> >> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <ca...@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:
> >>
> >> <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
> >>
> >>
> >
> > --
> > 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
Re: Configuring source maps on Royale with new compiler options
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
Hey Carlos,
Try using source-map-source-root with Jewel only, and omit it from TDJ.
Jewel:
<additionalCompilerOptions>
+royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
-source-map=true;
-source-map-source-root=/frameworks/projects/Jewel/
</additionalCompilerOptions>
TDJ:
<additionalCompilerOptions>
+royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
-source-map=true;
</additionalCompilerOptions>
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 <https://bowlerhat.dev>
On Mon, Jan 4, 2021 at 1:16 AM Carlos Rovira <ca...@apache.org>
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:
>
> <additionalCompilerOptions>
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> -source-map=true;
> -source-map-source-root=/frameworks/projects/Jewel/
> </additionalCompilerOptions>
>
> and in TDJ:
>
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> -source-map=true;
> -source-map-source-root=/examples/jewel/TourDeJewel
> </additionalCompilerOptions>
>
> 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 (<ch...@c-ware.de>)
> escribió:
>
>> Hi all,
>>
>> Sure, happy to help, but what exactly do you need?
>>
>> Chris
>> ------------------------------
>> *Von:* Carlos Rovira <ca...@apache.org>
>> *Gesendet:* Sonntag, 3. Januar 2021 23:23
>> *An:* Josh Tynjala <jo...@bowlerhat.dev>; Christofer Dutz <
>> christofer.dutz@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 (<jo...@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 <https://bowlerhat.dev>
>>
>>
>> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <ca...@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:
>>
>> <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
>>
>>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>
>
Re: Configuring source maps on Royale with new compiler options
Posted by Carlos Rovira <ca...@apache.org>.
Ok Chris,
many thanks!
El lun, 4 ene 2021 a las 12:58, Christofer Dutz (<ch...@c-ware.de>)
escribió:
> Ok …
>
> I’ll try to have a look at that asap … but gotta finish some other things
> first.
>
>
> Chris
>
>
> Von: Carlos Rovira <ca...@apache.org>
> Gesendet: Montag, 4. Januar 2021 10:17
> An: Christofer Dutz <ch...@c-ware.de>
> Cc: Josh Tynjala <jo...@bowlerhat.dev>; Apache Royale Development <
> dev@royale.apache.org>
> 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:
>
> <additionalCompilerOptions>
>
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> -source-map=true;
> -source-map-source-root=/frameworks/projects/Jewel/
> </additionalCompilerOptions>
>
> and in TDJ:
>
>
> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
> -source-map=true;
> -source-map-source-root=/examples/jewel/TourDeJewel
> </additionalCompilerOptions>
>
> 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.dutz@c-ware.de
> <ma...@c-ware.de>>) escribió:
> Hi all,
>
> Sure, happy to help, but what exactly do you need?
>
> Chris
> ________________________________
> Von: Carlos Rovira <carlosrovira@apache.org<mailto:carlosrovira@apache.org
> >>
> Gesendet: Sonntag, 3. Januar 2021 23:23
> An: Josh Tynjala <joshtynjala@bowlerhat.dev<mailto:
> joshtynjala@bowlerhat.dev>>; Christofer Dutz <christofer.dutz@c-ware.de
> <ma...@c-ware.de>>; Apache Royale Development <
> dev@royale.apache.org<ma...@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 (<joshtynjala@bowlerhat.dev
> <ma...@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<https://bowlerhat.dev>
>
>
> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <carlosrovira@apache.org
> <ma...@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:
>
> <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
>
>
>
> --
> 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
Posted by Christofer Dutz <ch...@c-ware.de>.
Ok …
I’ll try to have a look at that asap … but gotta finish some other things first.
Chris
Von: Carlos Rovira <ca...@apache.org>
Gesendet: Montag, 4. Januar 2021 10:17
An: Christofer Dutz <ch...@c-ware.de>
Cc: Josh Tynjala <jo...@bowlerhat.dev>; Apache Royale Development <de...@royale.apache.org>
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:
<additionalCompilerOptions>
+royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
-source-map=true;
-source-map-source-root=/frameworks/projects/Jewel/
</additionalCompilerOptions>
and in TDJ:
+royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
-source-map=true;
-source-map-source-root=/examples/jewel/TourDeJewel
</additionalCompilerOptions>
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 (<ch...@c-ware.de>>) escribió:
Hi all,
Sure, happy to help, but what exactly do you need?
Chris
________________________________
Von: Carlos Rovira <ca...@apache.org>>
Gesendet: Sonntag, 3. Januar 2021 23:23
An: Josh Tynjala <jo...@bowlerhat.dev>>; Christofer Dutz <ch...@c-ware.de>>; Apache Royale Development <de...@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 (<jo...@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<https://bowlerhat.dev>
On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <ca...@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:
<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
--
Carlos Rovira
Apache Member & Apache Royale PMC
Apache Software Foundation
http://about.me/carlosrovira
Re: Configuring source maps on Royale with new compiler options
Posted by Carlos Rovira <ca...@apache.org>.
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:
<additionalCompilerOptions>
+royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
-source-map=true;
-source-map-source-root=/frameworks/projects/Jewel/
</additionalCompilerOptions>
and in TDJ:
+royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven
-source-map=true;
-source-map-source-root=/examples/jewel/TourDeJewel
</additionalCompilerOptions>
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 (<ch...@c-ware.de>)
escribió:
> Hi all,
>
> Sure, happy to help, but what exactly do you need?
>
> Chris
> ------------------------------
> *Von:* Carlos Rovira <ca...@apache.org>
> *Gesendet:* Sonntag, 3. Januar 2021 23:23
> *An:* Josh Tynjala <jo...@bowlerhat.dev>; Christofer Dutz <
> christofer.dutz@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 (<jo...@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 <https://bowlerhat.dev>
>
>
> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <ca...@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:
>
> <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
>
>
--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira
AW: Configuring source maps on Royale with new compiler options
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi all,
Sure, happy to help, but what exactly do you need?
Chris
________________________________
Von: Carlos Rovira <ca...@apache.org>
Gesendet: Sonntag, 3. Januar 2021 23:23
An: Josh Tynjala <jo...@bowlerhat.dev>; Christofer Dutz <ch...@c-ware.de>; Apache Royale Development <de...@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 (<jo...@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<https://bowlerhat.dev>
On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <ca...@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:
<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
Re: Configuring source maps on Royale with new compiler options
Posted by Carlos Rovira <ca...@apache.org>.
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 (<jo...@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 <https://bowlerhat.dev>
>
>
> On Sun, Jan 3, 2021 at 11:03 AM Carlos Rovira <ca...@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:
>>
>> <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