In compilerOptions.
Here’s my tasks.json file:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "asconfigc",
"isShellCommand": true,
"args": [
Are you setting debug in an argument passed to asconfigc, like this?
asconfigc --debug=false
Or is it specified in asconfig.json in the compilerOptions section?
Both will work, but the asconfigc command line option will always override
whatever is in asconfig.json. In VSCode, the generated tasks
For me, the Ant build calls the "compile" target in
examples/build_example.xml and sets the config_arg to use
frameworks/js-config.xml which has targets set to just JS.
A better example might be examples/flexjs/MDLExample. For Ant, it has a
src/main/config/compile-app-config.xml which specifies:
That is using -js-output-type=FLEXJS
My understanding is that we are supposed to use -targets=JSFlex now.
Is that not right?
> On Jun 4, 2017, at 5:43 PM, Alex Harui wrote:
>
> The examples/native/ButtonExample does not produce a SWF for me, so maybe
> compare that setup against yours.
>
> HT
The examples/native/ButtonExample does not produce a SWF for me, so maybe
compare that setup against yours.
HTH,
-Alex
On 6/4/17, 12:56 AM, "Harbs" wrote:
>Good news: Prior to the switch to dual, I was not getting a minified
>release build working. That’s now working.
>Bad news: It takes much l
I’m seeing similar times using both ant and asconfig for debug. (Both are good.)
asconfig is not compiling a release build at all — even if I specify
debug=false.
I have not tried with Maven.
> On Jun 4, 2017, at 12:06 PM, Justin Mclean wrote:
>
> Hi,
>
>> Justin you are compiling by Maven ?
Hi,
> Justin you are compiling by Maven ?
Yep and Debug builds are noticeably slower for me.
Justin
To be clear:
Debug builds are as fast if not faster than they used to be.
Release build are much slower.
I’m getting a debug build (with remove circulars) of my (complex) app taking
about 10 seconds.
The release build takes about 3 minutes.
> On Jun 4, 2017, at 11:57 AM, Justin Mclean wrote:
>
As I remember Harbs is compiling it by ANT ? Am I right ? Justin you are
compiling by Maven ?
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/dual-issues-tp61955p62070.html
Sent from the Apache Flex Dev
Hi,
> Bad news: It takes much longer than it used to, and I’m getting a swf file
> even though I’m only using -targets=JSFlex
Compiles are also taking a lot longer for me and I’m also only using the JSFlex
target.
Thanks,
Justin
Ahh..That's not good. Another thing for resolve in release definitly.
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/dual-issues-tp61955p62066.html
Sent from the Apache Flex Development mailing list ar
Good news: Prior to the switch to dual, I was not getting a minified release
build working. That’s now working.
Bad news: It takes much longer than it used to, and I’m getting a swf file even
though I’m only using -targets=JSFlex
Harbs
Objects like Promise, Map, Set etc. are available by default in pretty much all
modern browsers.
Things like await, arrow functions, let, etc. are being added by browsers all
the time. I’m not sure exactly which ones have what right now, but they are
pretty far along already, so that article is
I thought es6 wasn't always on by default?
https://thenextweb.com/dd/2016/03/09/6-reasons-need-learn-javascript-es6-no
w-not-later/#.tnw_5KKUOOPX
I haven't been paying attention so maybe all browsers are fully compliant
now?
-Alex
On 6/4/17, 12:01 AM, "Harbs" wrote:
>Not sure what you mean he
Not sure what you mean here.
> On Jun 4, 2017, at 8:52 AM, Alex Harui wrote:
>
> Does FlexJS emit the right code to enable es6 APIs?
On 6/3/17, 2:02 PM, "Harbs" wrote:
>I just ran into another issue.
>
>I’m not sure why dual would have changed this, but I’m now getting an
>(erroneous) error when trying to use Promises:
>
>Incorrect number of arguments. Expected no more than 0
>
> return new Promise(fun
I just ran into another issue.
I’m not sure why dual would have changed this, but I’m now getting an
(erroneous) error when trying to use Promises:
Incorrect number of arguments. Expected no more than 0
return new Promise(function(resolve:*,reject:*):void{
When they're defined in the *-config.xml files, they'll be picked up
automatically without any special code in VSCode. However, now that you
mention it, I need to allow app developers to customize these in
asconfig.json too.
- Josh
On Jun 1, 2017 12:04 AM, "Alex Harui" wrote:
Josh, there are ne
Hi Harbs,
Great news! This approach us to release!
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/dual-issues-tp61955p61988.html
Sent from the Apache Flex Development mailing list archive at Nabble.co
My bad. I accidentally overwrote my copy of BasicJS.swc.
After fixing some issues, I got my app to run using the latest dual changes.
All in all, switching to dual went a lot better than I expected.
Great work, Alex!
I think the switch to the dual approach was the right one. There’s still
prob
Josh, there are new compiler options like js-external-library-path,
js-library-path, swf-library-path, swf-external-library-path. Does your
VSCode integration handle these?
-Alex
On 5/31/17, 8:42 PM, "Josh Tynjala" wrote:
>As I understand it, the compiler should just take care of differences
>
If targets only has JSFlex, there shouldn't be any SWF compile at all.
The console should spit out what it thinks it needs to do.
Keep in mind that there are now SWCs for SWFs and SWCs for JS. Prior to
dual, there was a main SWC with SWF APIs that the compiler saw, and JS
that it substituted in t
As I understand it, the compiler should just take care of differences
between JS and SWF, as long as your targets option is correct. VSCode
shouldn't need to do anything special except to pass in the correct
options.
There's nothing related to dual changes on my to-do list at this time, but
maybe
Another weird issue:
> /Users/harbs/Documents/git/PrintUI/printui-flexjs/PortedPrintUI/src/com/printui/dummy/view/Image.as(12):
> col: 15 interface method imageElement in interface IImage not implemented by
> class Image
>
> public class Image extends BinaryImage
>^
>
Josh,
VS Code is now reporting lots of errors in the Problems window. I’m guessing it
does not know how to differentiate between JS and SWF builds using dual?
Is that something on your to-do list?
Thanks,
Harbs
> On Jun 1, 2017, at 5:10 AM, Harbs wrote:
>
> Bingo. Thanks!
>
> SWF output sti
Bingo. Thanks!
SWF output still gets all kinds of errors, but the JS output is pretty error
free. I still have some fixing up to do before I can see how well it actually
works, but at least the compiler is not complaining now.
> On Jun 1, 2017, at 4:45 AM, Josh Tynjala wrote:
>
> Try replacin
The examples I see seem to use COMPILE blocks.
I’m not sure how this translates to the app level. Is there a way to define a
single method which overrides a SWF one and implements a new JS one (without
using COMPILE blocks)? That seems to me like a pretty common use case for
migrated apps.
> O
Hi,
> I’m using asconfig in VSCode to compile with these settings:
> "config": "flex",
> "compilerOptions": {
> "debug": false,
> "js-output-type": "flexjs",
> "source-map": false,
> "library-path": [
> "lib"
> ],
I’ve not used VSCode but perhaps try “
Try replacing the js-output-type compiler option with:
"targets": ["JSFlex"]
- Josh
On May 31, 2017 6:26 PM, "Harbs" wrote:
> I’m using asconfig in VSCode to compile with these settings:
> "config": "flex",
> "compilerOptions": {
> "debug": false,
> "js-output-type": "f
In case I wasn’t clear, I’m not outputting SWF — only JS output.
> On Jun 1, 2017, at 4:26 AM, Harbs wrote:
>
> I’m using asconfig in VSCode to compile with these settings:
> "config": "flex",
> "compilerOptions": {
> "debug": false,
> "js-output-type": "flexjs",
>
I’m using asconfig in VSCode to compile with these settings:
"config": "flex",
"compilerOptions": {
"debug": false,
"js-output-type": "flexjs",
"source-map": false,
"library-path": [
"lib"
],
> On Jun 1, 2017, at 1:04 AM, Justin Mclean w
On 5/31/17, 2:38 PM, "Harbs" wrote:
>I just switched to dual and I’m getting lots of errors. These errors seem
>to be exactly what I was afraid of, and I’m not sure how to resolve
>without being restricted by naming of properties and methods.
>
>1. I’m using a mask setter and getter for images
HI,
> Am I missing something?
Perhaps try JSFlex in your pom.xml? I believe the name
changed from pre to post dual branch.
Justin
33 matches
Mail list logo