Hi Carlos,
RemoteObjectAMFTest DOES compile, although I get a warning:
Feb 22, 2021 9:25:58 PM com.google.javascript.jscomp.LoggerErrorManager println
WARNING:
c:/.../royale-asjs/examples/mxroyale/RemoteObjectAMFTest/bin/js-debug/mx/core/UIComponent.js:3372:
WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
} else if ((this.mx_core_UIComponent__toolTip == null ||
this.mx_core_UIComponent__toolTip == "") &&
this.mx_core_UIComponent__toolTipBead != null) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 22, 2021 9:25:58 PM com.google.javascript.jscomp.LoggerErrorManager
printSummary
WARNING: 0 error(s), 1 warning(s), 98.2% typed
The project 'App' has been successfully compiled and optimized.
Hoping someone might clarify something for me. Both the RemoteObjectAMFTest and
SampleAmfWebApp detect the use/need for Maven and VS asks me to acknowledge the
association. RemoteObjectAMFTest compiles fine within VS using CTRL+Shift+B and
selecting one of the AS compile options. SampleAmfWebApp does not compile
within VS (doesn't recognize "mvn") and seems to require a standalone Maven
installation. Is this because of the need for a WAR file or some other config
issue?
From: Carlos Rovira <[email protected]>
Sent: Monday, February 22, 2021 4:19 AM
To: [email protected]
Subject: Re: MXRoyaleJS.swc could not be found
Hi Jason,
Chris fixed now Maven distribution and I check the RO example and as well it
need a tweak in asconfigc that I just commit.
"targets": ["SWF","JSRoyale"],
need to be
"targets": ["JSRoyale"],
That means that SWF still need some changes that need to be done, but I think
is ok for you since you want JS.
I build and seems ok now. Please take a look
El lun, 22 feb 2021 a las 10:03, Carlos Rovira
(<[email protected]<mailto:[email protected]>>) escribió:
Hi Jason,
Are you saying that running maven from sources is making the same error. In my
test that worked.
You fyi
El lun, 22 feb 2021 a las 4:15, Jason Fillman
(<[email protected]<mailto:[email protected]>>) escribió:
Hi Carlos,
Definitely NOT urgent.
Yes, doing CTRL+Shift+B for the AS compile (Release and Debug produce these
errors, Clean never seems to finish), but reading the README said I needed a
clean Maven build so tried that as well with the Maven Visual Code plug-in,
with the error noted in my prior email.
Of note, I get the same result against the current 0.9.7 stable build. For
both, I downloaded the JS only version.
Jason
From: Carlos Rovira <[email protected]<mailto:[email protected]>>
Sent: Sunday, February 21, 2021 3:20 PM
To: [email protected]<mailto:[email protected]>
Subject: Re: MXRoyaleJS.swc could not be found
Hi Jason,
if I load in VSCode + AS3&MXML the folder
"/examples/mxroyale/RemoteObjectAMFTest" and build with CMD+SHIFT+B, then
select "Debug with ActionScript extension (this is what I guess you are doing)
I can reproduce the problem with a nightly.
Also today I was fixing Maven SDK distribution so I'll wait for the next
nightly build to check what's going on. I tried building with Maven and seems
to work, also building with a fixed Maven distribution SDK seems to pass but I
see some warning that I need to investigate further. For now if you are in a
hurry can only say that your only path right now is to build with Maven instead
with IDE. If you choose that path you can use this gist [1] to build from
scratch all repos with Maven and then with ANT (you can just use one of them, I
build both to ensure all is ok as an SDK developer).
[1]
https://gist.github.com/carlosrovira/200753108de263fa43e80d3228213509<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Fcarlosrovira%2F200753108de263fa43e80d3228213509&data=04%7C01%7C%7C71dd5f260ea043f2070008d8d72c20f3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495931812013575%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=pCkeYJyjNnqE%2FuUDo9eyHirqRZ616eXtJMy3Q0ZcC%2FA%3D&reserved=0>
El lun, 22 feb 2021 a las 0:00, Jason Fillman
(<[email protected]<mailto:[email protected]>>) escribió:
Hi Carlos,
I found the more recent builds. FYI, the link to the nightly Royale build here:
https://royale.apache.org/get-involved/<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Froyale.apache.org%2Fget-involved%2F&data=04%7C01%7C%7C71dd5f260ea043f2070008d8d72c20f3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495931812023530%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=saV02swH%2B9mrmilC4%2BwTVE2%2Fgx6Y%2FaRX6AogCZ%2FwYQ4%3D&reserved=0>
resolves to build #2276 vs the most recent list.
I did search both lists and the only threads I found that seemed to address
this issue indicated to add the below code to the asconfig.json file, however,
this exact code is already in the file, so seems to be something else/something
I am doing wrong...
"library-path": [
"${royalelib}/js/libs/MXRoyaleJS.swc"
],
"js-library-path": [
"${royalelib}/js/libs/MXRoyaleJS.swc"
]
Still unclear to me is if I am compiling using the AS compiler or Maven, within
VS, however, neither seem to work. Using AS, I get these SWC not found errors.
Using a clean Maven build, I get the following:
PS C:\...\royale-asjs\examples\mxroyale\RemoteObjectAMFTest> &
"c:\...\royale-asjs\mvnw.cmd" clean -f
"c:\...\royale-asjs\examples\mxroyale\RemoteObjectAMFTest\pom.xml"
Files was unexpected at this time.
I get the same type of result with the SAMPLEAMFWEBAPP project using Maven
clean build (see included image), so wondering if I need to install Maven
outside of VS instead of the VS plug-in or maybe some other environment setup
issues I am missing.
[cid:[email protected]]
From: Carlos Rovira <[email protected]<mailto:[email protected]>>
Sent: Sunday, February 21, 2021 5:46 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: MXRoyaleJS.swc could not be found
Hi Jason,
since this question was solved more than one time in user and dev lists, please
search for it on how to solve it.
Mainly MXRoyale is not included in royale config by default but is in flex
config, so you need to add it specifically to it.
Also if you're using a nightly please use the newer one and keep up to date if
possible.
El sáb, 20 feb 2021 a las 20:30, Jason Fillman
(<[email protected]<mailto:[email protected]>>) escribió:
Compiling RemoteObjectAMFTest against 097 and the Jan 1 098 nightly, I get a
bunch of errors: ...\MXRoyaleJS.swc could not be found
One example output:
c:\...\royale-asjs\frameworks\js\libs\MXRoyaleJS.swc Warning: The definition
org.apache.royale.events.Event depended on by mx.core.ScrollControlBase in the
SWC c:\...\royale-asjs\frameworks\js\libs\MXRoyaleJS.swc could not be found
The terminal process "C:\Program Files (x86)\Common
Files\Oracle\Java\javapath\java.exe '-jar',
'c:\Users\jmfil\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.6.0\bin\asconfigc.jar',
'--sdk', 'c:\...\royale-asjs', '--debug=false', '--project',
'c:\...\royale-asjs\examples\mxroyale\RemoteObjectAMFTest\asconfig.json'"
terminated with exit code: 3.
I checked the file path referenced and the swc file is there, so not sure...
Visual Studio Code; JDK 8u281
--
Carlos Rovira
Apache Member & Apache Royale PMC
Apache Software Foundation
http://about.me/carlosrovira<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=04%7C01%7C%7C71dd5f260ea043f2070008d8d72c20f3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495931812023530%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=8cchaeRQuIrCS1Yp5ilu7kChh87T%2BxOe1fk3p%2FpYO5A%3D&reserved=0>
--
Carlos Rovira
Apache Member & Apache Royale PMC
Apache Software Foundation
http://about.me/carlosrovira<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=04%7C01%7C%7C71dd5f260ea043f2070008d8d72c20f3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495931812033490%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Pf2RlB2poCgjBIAJNQBkVS9Ijal9e%2FWb7Mdm5KxdKFY%3D&reserved=0>
--
Carlos Rovira
Apache Member & Apache Royale PMC
Apache Software Foundation
http://about.me/carlosrovira<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=04%7C01%7C%7C71dd5f260ea043f2070008d8d72c20f3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495931812033490%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Pf2RlB2poCgjBIAJNQBkVS9Ijal9e%2FWb7Mdm5KxdKFY%3D&reserved=0>
--
Carlos Rovira
Apache Member & Apache Royale PMC
Apache Software Foundation
http://about.me/carlosrovira<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=04%7C01%7C%7C71dd5f260ea043f2070008d8d72c20f3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495931812043447%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=fLss0HawIx3FR602t4zSN5XDrTl7C4u4%2Bv8ZVugfK9w%3D&reserved=0>