AW: AW: FlexUnit 4.3 prepared to be able to do Maven Releases
That's a little tricky, I seem to be unable to open Jenkins ... all I get are some strange proxy errors ... This was the content of the mail I got ... I think the last line is the interesting one ... but I couln't have a look at it, as I seem to be unable to visit Jenkins: See https://builds.apache.org/job/flex-flexunit/657/changes Changes: [christofer.dutz] - Adjusted the build to be able to publish artifacts to the central Apache Maven repository. -- Started by an SCM change Started by an SCM change Started by an SCM change Started by timer Started by an SCM change Started by an SCM change Started by an SCM change Building remotely on windows1 (Windows) in workspace https://builds.apache.org/job/flex-flexunit/ws/ Cloning the remote Git repository Cloning repository https://git-wip-us.apache.org/repos/asf/flex-flexunit.git Fetching upstream changes from https://git-wip-us.apache.org/repos/asf/flex-flexunit.git Fetching upstream changes from https://git-wip-us.apache.org/repos/asf/flex-flexunit.git Checking out Revision 472c9a845b7b6422bc63cd885a869388f11a203f (origin/develop) Deleting old artifacts from #655 [flex-flexunit] $ cmd.exe /C 'f:\hudson\hudson-slave\tools\hudson.tasks.Ant_AntInstallation\ant-1.8.2\bin\ant.bat -file jenkins.xml clean main exit %%ERRORLEVEL%%' Buildfile: https://builds.apache.org/job/flex-flexunit/ws/jenkins.xml clean: init: [mkdir] Created dir: https://builds.apache.org/job/flex-flexunit/ws/jenkins [mkdir] Created dir: https://builds.apache.org/job/flex-flexunit/ws/jenkins\temp playerglobal-check: playerglobal-settarget: playerglobal10.1-download: playerglobal11.1-download: [mkdir] Created dir: https://builds.apache.org/job/flex-flexunit/ws/jenkins\player\11.1 [get] Getting: http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_1.swc [get] To: https://builds.apache.org/job/flex-flexunit/ws/jenkins\player\11.1\playerglobal.swc playerglobal-download: thirdparty-downloads: main: BUILD SUCCESSFUL Total time: 2 seconds [flex-flexunit] $ cmd /c call C:\Users\hudson\AppData\Local\Temp\hudson6959652655923538839.bat https://builds.apache.org/job/flex-flexunit/ws/mkdir jenkins\temp\flex-sdk https://builds.apache.org/job/flex-flexunit/ws/cd https://builds.apache.org/job/flex-flexunit/ws/..\flex-sdk_release\ide\flashbuilder\ The system cannot find the path specified. Von: Alex Harui aha...@adobe.com Gesendet: Montag, 28. April 2014 18:29 An: dev@flex.apache.org Betreff: Re: AW: FlexUnit 4.3 prepared to be able to do Maven Releases On 4/28/14 12:41 AM, Christofer Dutz christofer.d...@c-ware.de wrote: Ok ... I agree. But sill ... I wouldn't recommend doing that too fast ... we need to settle some things first. Currently the flexunit build on jenkins doesn't seem to run even if the build went through SUCCESSFULLY. Hi Chris, What kind of error did you get? I'm pretty sure the flex-asjs build is using the flexunit build to run a couple of tests. -Alex
AW: AW: FlexUnit 4.3 prepared to be able to do Maven Releases
I just got the confirmation from Infra that the Apache Maven repo is setup for Flex ... What do you guys think about me giving FlexUnit 4.3 a snapshot release? 4.3-SNAPSHOT? I guess SNAPSHOTS don't need the voting thing, do they? Chris Von: Alex Harui aha...@adobe.com Gesendet: Montag, 28. April 2014 18:29 An: dev@flex.apache.org Betreff: Re: AW: FlexUnit 4.3 prepared to be able to do Maven Releases On 4/28/14 12:41 AM, Christofer Dutz christofer.d...@c-ware.de wrote: Ok ... I agree. But sill ... I wouldn't recommend doing that too fast ... we need to settle some things first. Currently the flexunit build on jenkins doesn't seem to run even if the build went through SUCCESSFULLY. Hi Chris, What kind of error did you get? I'm pretty sure the flex-asjs build is using the flexunit build to run a couple of tests. -Alex
Re: [FDB] Integration
Hi Frédéric, that's great that you are ready to put the effort into fdb with workers support! I have to say that IntelliJ IDEA still doesn't support debugging apps with workers. I spent some time on it but faced some bugs in fdb that were not that easy to workaround. That's not an excuse for me and I hope to finally support workers debug in the next version. Luckily fdb is not a black box for me any more. Below are some of the bugs that I faced. I played with this project: http://gotoandlearn.com/play.php?id=169. 'Download files' link contains already compiled MP3Worker.swf which is the main app. 1. When the worker is loaded it is impossible to switch to main thread using 'worker 0' command. Fdb says that active worker has changed but asking 'info workers' again says that actually it hasn't. See listing [1]. 2. More important bug for the IDE integration is inability to set breakpoint without knowing file id. Files that belong to different workers may have the same id. When I ask to set a breakpoint in a file with given name but current active worker doesn't have file with this name then fdb sets the breakpoint inside completely different file that does belong to the current worker and has the same id as the file where I asked to set breakpoint. See listing [2]. Alexander [1] C:\flex\air_sdk_13.0_asc_2.0\binfdb C:\flex\air_sdk_13.0_asc_2.0\binjava -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Dapplication.home=C:\flex\air_sdk_13.0_asc_2.0\bin\.. -jar C:\flex\air_sdk_13.0_asc_2.0\bin\../lib/legacy/fdb.jar Adobe fdb (Flash Player Debugger) [build development] Copyright (c) 2004-2007 Adobe, Inc. All rights reserved. (fdb) run Waiting for Player to connect Player connected; session starting. Set breakpoints and then type 'continue' to resume the session. [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 175?169 bytes after decompression (fdb) c [WorkerCreate] 1 Additional ActionScript code has been loaded from a SWF or a frame. To see all currently loaded files, type 'info files'. Active worker has changed to worker 1 Set additional breakpoints as desired, and then type 'continue'. (fdb) info workers Main Thread 0 - Running Worker 1 - Suspended (Active) [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 493?264 bytes after decompression Set additional breakpoints as desired, and then type 'continue'. (fdb) worker 0 *Active worker has changed to worker Main Thread* Set additional breakpoints as desired, and then type 'continue'. (fdb) info workers *Main Thread 0 - Running* *Worker 1 - Suspended (Active)** *Set additional breakpoints as desired, and then type 'continue'. (fdb) [2] ... (fdb) info workers Main Thread 0 - Suspended (Active) Worker 1 - Suspended (fdb) show files 1 /Users/leebrimelow/Documents/Adobe Flash Builder 4.6/MP3Worker/src/MP3Worker.as, MP3Worker.as (Main Thread) 2 /Users/leebrimelow/Documents/Adobe Flash Builder 4.6/MP3Worker/src/Workers.as, Workers.as (Main Thread) 1 /Users/leebrimelow/Documents/Adobe Flash Builder 4.6/MP3Worker/src/BackWorker.as, BackWorker.as (Worker 1) 2 /Users/kikko/work/tests/shineMP3_alchemy/src/fr/kikko/lab/ShineMP3Encoder.as, ShineMP3Encoder.as (Worker 1) *(fdb) break BackWorker.as:26** **Breakpoint 2: file MP3Worker.as, line 26** *(fdb) On 27.04.2014 4:01, Frédéric THOMAS wrote: Hi, To resume a bit what I did and discover today: 1- I merged the donated code to the the current FDB, keeping the existing fixes and the current ExpressionEvaluator (I guess It is possible to use the new Falcon based implementation modifying the ANT script which builds it, in order to link the Falcon sources). 2- The new commands are worker workerID used to select a parlicular worker by its ID and info workers, this is an example of what gives a break inside a worker and what displays the 2 commands : (fdb) info workers !mainThread! 0 - !workerRunning! !inWorker! {worker=1} - !workerSuspended! !workerSelected! (fdb) worker 0 !workerChanged! !mainThread! (fdb) info workers !mainThread! 0 - !workerRunning! !workerSelected! !inWorker! {worker=1} - !workerSuspended! (fdb) worker 1 !workerChanged! 1 (fdb) info workers !mainThread! 0 - !workerRunning! !inWorker! {worker=1} - !workerSuspended! !workerSelected! Note for IDE integration: 1- At the moment, watch, displays and breakpoints are set for 1 particular worker, it means, they need to be defined again when a worker starts. 2- info breakpoints does well display the breakpoints for the same line and on different worker of the same class but without the relative worker ID (I guess it could be easily fixed) I'll be back on it on Monday. Frédéric THOMAS
RE: [FDB] Integration
Hi Alexander, I downloaded the files you indicated me + some missing files (UI, ShineMP3, metallica.wav), created an IntelliJ project, build and run successfully the application with Apache Flex SDK 4.12 / AIR 4.0 + my version of FDB and was unable to reproduce both of the issues, it worked as expected, so, that's a good news. Also, not on this test app but on another one [1], I've been able to set a BP on the worker using IntelliJ once the worker has been loaded but the variables was not readable and futur stops to the BP didn't work, IJ shows up the SystemManager class instead. If you are interested to test my version, just tell me and I will send it to you. Unfortunately, I haven't been able to work on it yesterday but will continue tonight. Frédéric THOMAS [1] https://github.com/doublefx/downloadFileWorker Date: Tue, 29 Apr 2014 15:25:23 +0400 From: alexander.doros...@jetbrains.com To: dev@flex.apache.org Subject: Re: [FDB] Integration Hi Frédéric, that's great that you are ready to put the effort into fdb with workers support! I have to say that IntelliJ IDEA still doesn't support debugging apps with workers. I spent some time on it but faced some bugs in fdb that were not that easy to workaround. That's not an excuse for me and I hope to finally support workers debug in the next version. Luckily fdb is not a black box for me any more. Below are some of the bugs that I faced. I played with this project: http://gotoandlearn.com/play.php?id=169. 'Download files' link contains already compiled MP3Worker.swf which is the main app. 1. When the worker is loaded it is impossible to switch to main thread using 'worker 0' command. Fdb says that active worker has changed but asking 'info workers' again says that actually it hasn't. See listing [1]. 2. More important bug for the IDE integration is inability to set breakpoint without knowing file id. Files that belong to different workers may have the same id. When I ask to set a breakpoint in a file with given name but current active worker doesn't have file with this name then fdb sets the breakpoint inside completely different file that does belong to the current worker and has the same id as the file where I asked to set breakpoint. See listing [2]. Alexander [1] C:\flex\air_sdk_13.0_asc_2.0\binfdb C:\flex\air_sdk_13.0_asc_2.0\binjava -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Dapplication.home=C:\flex\air_sdk_13.0_asc_2.0\bin\.. -jar C:\flex\air_sdk_13.0_asc_2.0\bin\../lib/legacy/fdb.jar Adobe fdb (Flash Player Debugger) [build development] Copyright (c) 2004-2007 Adobe, Inc. All rights reserved. (fdb) run Waiting for Player to connect Player connected; session starting. Set breakpoints and then type 'continue' to resume the session. [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 175?169 bytes after decompression (fdb) c [WorkerCreate] 1 Additional ActionScript code has been loaded from a SWF or a frame. To see all currently loaded files, type 'info files'. Active worker has changed to worker 1 Set additional breakpoints as desired, and then type 'continue'. (fdb) info workers Main Thread 0 - Running Worker 1 - Suspended (Active) [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 493?264 bytes after decompression Set additional breakpoints as desired, and then type 'continue'. (fdb) worker 0 *Active worker has changed to worker Main Thread* Set additional breakpoints as desired, and then type 'continue'. (fdb) info workers *Main Thread 0 - Running* *Worker 1 - Suspended (Active)** *Set additional breakpoints as desired, and then type 'continue'. (fdb) [2] ... (fdb) info workers Main Thread 0 - Suspended (Active) Worker 1 - Suspended (fdb) show files 1 /Users/leebrimelow/Documents/Adobe Flash Builder 4.6/MP3Worker/src/MP3Worker.as, MP3Worker.as (Main Thread) 2 /Users/leebrimelow/Documents/Adobe Flash Builder 4.6/MP3Worker/src/Workers.as, Workers.as (Main Thread) 1 /Users/leebrimelow/Documents/Adobe Flash Builder 4.6/MP3Worker/src/BackWorker.as, BackWorker.as (Worker 1) 2 /Users/kikko/work/tests/shineMP3_alchemy/src/fr/kikko/lab/ShineMP3Encoder.as, ShineMP3Encoder.as (Worker 1) *(fdb) break BackWorker.as:26** **Breakpoint 2: file MP3Worker.as, line 26** *(fdb) On 27.04.2014 4:01, Frédéric THOMAS wrote: Hi, To resume a bit what I did and discover today: 1- I merged the donated code to the the current FDB, keeping the existing fixes and the current ExpressionEvaluator (I guess It is possible to use the new Falcon based implementation modifying the ANT script which builds it, in order to link the Falcon sources). 2- The new commands are worker workerID used to select a parlicular worker by its ID and info workers, this is an example of what gives a break inside a worker and what displays the 2 commands : (fdb) info workers !mainThread! 0 -
Re: [FDB] Integration
Yes, I'd gladly try it. We can switch to personal emails in order not to spam the list. On 29.04.2014 18:34, Frédéric THOMAS wrote: Hi Alexander, I downloaded the files you indicated me + some missing files (UI, ShineMP3, metallica.wav), created an IntelliJ project, build and run successfully the application with Apache Flex SDK 4.12 / AIR 4.0 + my version of FDB and was unable to reproduce both of the issues, it worked as expected, so, that's a good news. Also, not on this test app but on another one [1], I've been able to set a BP on the worker using IntelliJ once the worker has been loaded but the variables was not readable and futur stops to the BP didn't work, IJ shows up the SystemManager class instead. If you are interested to test my version, just tell me and I will send it to you. Unfortunately, I haven't been able to work on it yesterday but will continue tonight. Frédéric THOMAS [1] https://github.com/doublefx/downloadFileWorker Date: Tue, 29 Apr 2014 15:25:23 +0400 From: alexander.doros...@jetbrains.com To: dev@flex.apache.org Subject: Re: [FDB] Integration Hi Frédéric, that's great that you are ready to put the effort into fdb with workers support! I have to say that IntelliJ IDEA still doesn't support debugging apps with workers. I spent some time on it but faced some bugs in fdb that were not that easy to workaround. That's not an excuse for me and I hope to finally support workers debug in the next version. Luckily fdb is not a black box for me any more. Below are some of the bugs that I faced. I played with this project: http://gotoandlearn.com/play.php?id=169. 'Download files' link contains already compiled MP3Worker.swf which is the main app. 1. When the worker is loaded it is impossible to switch to main thread using 'worker 0' command. Fdb says that active worker has changed but asking 'info workers' again says that actually it hasn't. See listing [1]. 2. More important bug for the IDE integration is inability to set breakpoint without knowing file id. Files that belong to different workers may have the same id. When I ask to set a breakpoint in a file with given name but current active worker doesn't have file with this name then fdb sets the breakpoint inside completely different file that does belong to the current worker and has the same id as the file where I asked to set breakpoint. See listing [2]. Alexander [1] C:\flex\air_sdk_13.0_asc_2.0\binfdb C:\flex\air_sdk_13.0_asc_2.0\binjava -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Dapplication.home=C:\flex\air_sdk_13.0_asc_2.0\bin\.. -jar C:\flex\air_sdk_13.0_asc_2.0\bin\../lib/legacy/fdb.jar Adobe fdb (Flash Player Debugger) [build development] Copyright (c) 2004-2007 Adobe, Inc. All rights reserved. (fdb) run Waiting for Player to connect Player connected; session starting. Set breakpoints and then type 'continue' to resume the session. [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 175?169 bytes after decompression (fdb) c [WorkerCreate] 1 Additional ActionScript code has been loaded from a SWF or a frame. To see all currently loaded files, type 'info files'. Active worker has changed to worker 1 Set additional breakpoints as desired, and then type 'continue'. (fdb) info workers Main Thread 0 - Running Worker 1 - Suspended (Active) [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 493?264 bytes after decompression Set additional breakpoints as desired, and then type 'continue'. (fdb) worker 0 *Active worker has changed to worker Main Thread* Set additional breakpoints as desired, and then type 'continue'. (fdb) info workers *Main Thread 0 - Running* *Worker 1 - Suspended (Active)** *Set additional breakpoints as desired, and then type 'continue'. (fdb) [2] ... (fdb) info workers Main Thread 0 - Suspended (Active) Worker 1 - Suspended (fdb) show files 1 /Users/leebrimelow/Documents/Adobe Flash Builder 4.6/MP3Worker/src/MP3Worker.as, MP3Worker.as (Main Thread) 2 /Users/leebrimelow/Documents/Adobe Flash Builder 4.6/MP3Worker/src/Workers.as, Workers.as (Main Thread) 1 /Users/leebrimelow/Documents/Adobe Flash Builder 4.6/MP3Worker/src/BackWorker.as, BackWorker.as (Worker 1) 2 /Users/kikko/work/tests/shineMP3_alchemy/src/fr/kikko/lab/ShineMP3Encoder.as, ShineMP3Encoder.as (Worker 1) *(fdb) break BackWorker.as:26** **Breakpoint 2: file MP3Worker.as, line 26** *(fdb) On 27.04.2014 4:01, Frédéric THOMAS wrote: Hi, To resume a bit what I did and discover today: 1- I merged the donated code to the the current FDB, keeping the existing fixes and the current ExpressionEvaluator (I guess It is possible to use the new Falcon based implementation modifying the ANT script which builds it, in order to link the Falcon sources). 2- The new commands are worker workerID used to select a parlicular worker by its ID and info workers, this is an example of what gives a break inside a worker and what displays the 2 commands : (fdb) info workers !mainThread! 0 -
RE: [FDB] Integration
Done !! :-) Thanks, Frédéric THOMAS Date: Tue, 29 Apr 2014 19:03:39 +0400 From: alexander.doros...@jetbrains.com To: dev@flex.apache.org Subject: Re: [FDB] Integration Yes, I'd gladly try it. We can switch to personal emails in order not to spam the list. On 29.04.2014 18:34, Frédéric THOMAS wrote: Hi Alexander, I downloaded the files you indicated me + some missing files (UI, ShineMP3, metallica.wav), created an IntelliJ project, build and run successfully the application with Apache Flex SDK 4.12 / AIR 4.0 + my version of FDB and was unable to reproduce both of the issues, it worked as expected, so, that's a good news. Also, not on this test app but on another one [1], I've been able to set a BP on the worker using IntelliJ once the worker has been loaded but the variables was not readable and futur stops to the BP didn't work, IJ shows up the SystemManager class instead. If you are interested to test my version, just tell me and I will send it to you. Unfortunately, I haven't been able to work on it yesterday but will continue tonight. Frédéric THOMAS [1] https://github.com/doublefx/downloadFileWorker Date: Tue, 29 Apr 2014 15:25:23 +0400 From: alexander.doros...@jetbrains.com To: dev@flex.apache.org Subject: Re: [FDB] Integration Hi Frédéric, that's great that you are ready to put the effort into fdb with workers support! I have to say that IntelliJ IDEA still doesn't support debugging apps with workers. I spent some time on it but faced some bugs in fdb that were not that easy to workaround. That's not an excuse for me and I hope to finally support workers debug in the next version. Luckily fdb is not a black box for me any more. Below are some of the bugs that I faced. I played with this project: http://gotoandlearn.com/play.php?id=169. 'Download files' link contains already compiled MP3Worker.swf which is the main app. 1. When the worker is loaded it is impossible to switch to main thread using 'worker 0' command. Fdb says that active worker has changed but asking 'info workers' again says that actually it hasn't. See listing [1]. 2. More important bug for the IDE integration is inability to set breakpoint without knowing file id. Files that belong to different workers may have the same id. When I ask to set a breakpoint in a file with given name but current active worker doesn't have file with this name then fdb sets the breakpoint inside completely different file that does belong to the current worker and has the same id as the file where I asked to set breakpoint. See listing [2]. Alexander [1] C:\flex\air_sdk_13.0_asc_2.0\binfdb C:\flex\air_sdk_13.0_asc_2.0\binjava -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Dapplication.home=C:\flex\air_sdk_13.0_asc_2.0\bin\.. -jar C:\flex\air_sdk_13.0_asc_2.0\bin\../lib/legacy/fdb.jar Adobe fdb (Flash Player Debugger) [build development] Copyright (c) 2004-2007 Adobe, Inc. All rights reserved. (fdb) run Waiting for Player to connect Player connected; session starting. Set breakpoints and then type 'continue' to resume the session. [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 175?169 bytes after decompression (fdb) c [WorkerCreate] 1 Additional ActionScript code has been loaded from a SWF or a frame. To see all currently loaded files, type 'info files'. Active worker has changed to worker 1 Set additional breakpoints as desired, and then type 'continue'. (fdb) info workers Main Thread 0 - Running Worker 1 - Suspended (Active) [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 493?264 bytes after decompression Set additional breakpoints as desired, and then type 'continue'. (fdb) worker 0 *Active worker has changed to worker Main Thread* Set additional breakpoints as desired, and then type 'continue'. (fdb) info workers *Main Thread 0 - Running* *Worker 1 - Suspended (Active)** *Set additional breakpoints as desired, and then type 'continue'. (fdb) [2] ... (fdb) info workers Main Thread 0 - Suspended (Active) Worker 1 - Suspended (fdb) show files 1 /Users/leebrimelow/Documents/Adobe Flash Builder 4.6/MP3Worker/src/MP3Worker.as, MP3Worker.as (Main Thread) 2 /Users/leebrimelow/Documents/Adobe Flash Builder 4.6/MP3Worker/src/Workers.as, Workers.as (Main Thread) 1 /Users/leebrimelow/Documents/Adobe Flash Builder 4.6/MP3Worker/src/BackWorker.as, BackWorker.as (Worker 1) 2 /Users/kikko/work/tests/shineMP3_alchemy/src/fr/kikko/lab/ShineMP3Encoder.as, ShineMP3Encoder.as (Worker 1) *(fdb) break BackWorker.as:26** **Breakpoint 2: file MP3Worker.as, line 26** *(fdb) On 27.04.2014 4:01, Frédéric THOMAS wrote: Hi, To resume a bit what I did and discover today: 1- I merged the donated code to the the current FDB, keeping the existing fixes and the current
Re: [FDB] Integration
IMO, unless the discussion is going to cover proprietary aspects of IntelliJ, it might be more like the Apache Way to share the code in a git branch and continue to discuss on the list. On 4/29/14 8:03 AM, Alexander Doroshko alexander.doros...@jetbrains.com wrote: Yes, I'd gladly try it. We can switch to personal emails in order not to spam the list. On 29.04.2014 18:34, Frédéric THOMAS wrote: Hi Alexander, I downloaded the files you indicated me + some missing files (UI, ShineMP3, metallica.wav), created an IntelliJ project, build and run successfully the application with Apache Flex SDK 4.12 / AIR 4.0 + my version of FDB and was unable to reproduce both of the issues, it worked as expected, so, that's a good news. Also, not on this test app but on another one [1], I've been able to set a BP on the worker using IntelliJ once the worker has been loaded but the variables was not readable and futur stops to the BP didn't work, IJ shows up the SystemManager class instead. If you are interested to test my version, just tell me and I will send it to you. Unfortunately, I haven't been able to work on it yesterday but will continue tonight. Frédéric THOMAS [1] https://github.com/doublefx/downloadFileWorker Date: Tue, 29 Apr 2014 15:25:23 +0400 From: alexander.doros...@jetbrains.com To: dev@flex.apache.org Subject: Re: [FDB] Integration Hi Frédéric, that's great that you are ready to put the effort into fdb with workers support! I have to say that IntelliJ IDEA still doesn't support debugging apps with workers. I spent some time on it but faced some bugs in fdb that were not that easy to workaround. That's not an excuse for me and I hope to finally support workers debug in the next version. Luckily fdb is not a black box for me any more. Below are some of the bugs that I faced. I played with this project: http://gotoandlearn.com/play.php?id=169. 'Download files' link contains already compiled MP3Worker.swf which is the main app. 1. When the worker is loaded it is impossible to switch to main thread using 'worker 0' command. Fdb says that active worker has changed but asking 'info workers' again says that actually it hasn't. See listing [1]. 2. More important bug for the IDE integration is inability to set breakpoint without knowing file id. Files that belong to different workers may have the same id. When I ask to set a breakpoint in a file with given name but current active worker doesn't have file with this name then fdb sets the breakpoint inside completely different file that does belong to the current worker and has the same id as the file where I asked to set breakpoint. See listing [2]. Alexander [1] C:\flex\air_sdk_13.0_asc_2.0\binfdb C:\flex\air_sdk_13.0_asc_2.0\binjava -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Dapplication.home=C:\flex\air_sdk_13.0_asc_2.0\bin\.. -jar C:\flex\air_sdk_13.0_asc_2.0\bin\../lib/legacy/fdb.jar Adobe fdb (Flash Player Debugger) [build development] Copyright (c) 2004-2007 Adobe, Inc. All rights reserved. (fdb) run Waiting for Player to connect Player connected; session starting. Set breakpoints and then type 'continue' to resume the session. [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 175?169 bytes after decompression (fdb) c [WorkerCreate] 1 Additional ActionScript code has been loaded from a SWF or a frame. To see all currently loaded files, type 'info files'. Active worker has changed to worker 1 Set additional breakpoints as desired, and then type 'continue'. (fdb) info workers Main Thread 0 - Running Worker 1 - Suspended (Active) [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 493?264 bytes after decompression Set additional breakpoints as desired, and then type 'continue'. (fdb) worker 0 *Active worker has changed to worker Main Thread* Set additional breakpoints as desired, and then type 'continue'. (fdb) info workers *Main Thread 0 - Running* *Worker 1 - Suspended (Active)** *Set additional breakpoints as desired, and then type 'continue'. (fdb) [2] ... (fdb) info workers Main Thread 0 - Suspended (Active) Worker 1 - Suspended (fdb) show files 1 /Users/leebrimelow/Documents/Adobe Flash Builder 4.6/MP3Worker/src/MP3Worker.as, MP3Worker.as (Main Thread) 2 /Users/leebrimelow/Documents/Adobe Flash Builder 4.6/MP3Worker/src/Workers.as, Workers.as (Main Thread) 1 /Users/leebrimelow/Documents/Adobe Flash Builder 4.6/MP3Worker/src/BackWorker.as, BackWorker.as (Worker 1) 2 /Users/kikko/work/tests/shineMP3_alchemy/src/fr/kikko/lab/ShineMP3Encode r.as, ShineMP3Encoder.as (Worker 1) *(fdb) break BackWorker.as:26** **Breakpoint 2: file MP3Worker.as, line 26** *(fdb) On 27.04.2014 4:01, Frédéric THOMAS wrote: Hi, To resume a bit what I did and discover today: 1- I merged the donated code to the the current FDB, keeping the existing fixes and the current ExpressionEvaluator (I guess It is possible to use the new Falcon based implementation
Re: AW: AW: FlexUnit 4.3 prepared to be able to do Maven Releases
We've given up on builds.a.o. All flex builds are now here: http://apacheflexbuild.cloudapp.net:8080 On 4/29/14 12:50 AM, Christofer Dutz christofer.d...@c-ware.de wrote: That's a little tricky, I seem to be unable to open Jenkins ... all I get are some strange proxy errors ... This was the content of the mail I got ... I think the last line is the interesting one ... but I couln't have a look at it, as I seem to be unable to visit Jenkins: See https://builds.apache.org/job/flex-flexunit/657/changes Changes: [christofer.dutz] - Adjusted the build to be able to publish artifacts to the central Apache Maven repository. -- Started by an SCM change Started by an SCM change Started by an SCM change Started by timer Started by an SCM change Started by an SCM change Started by an SCM change Building remotely on windows1 (Windows) in workspace https://builds.apache.org/job/flex-flexunit/ws/ Cloning the remote Git repository Cloning repository https://git-wip-us.apache.org/repos/asf/flex-flexunit.git Fetching upstream changes from https://git-wip-us.apache.org/repos/asf/flex-flexunit.git Fetching upstream changes from https://git-wip-us.apache.org/repos/asf/flex-flexunit.git Checking out Revision 472c9a845b7b6422bc63cd885a869388f11a203f (origin/develop) Deleting old artifacts from #655 [flex-flexunit] $ cmd.exe /C 'f:\hudson\hudson-slave\tools\hudson.tasks.Ant_AntInstallation\ant-1.8.2\ bin\ant.bat -file jenkins.xml clean main exit %%ERRORLEVEL%%' Buildfile: https://builds.apache.org/job/flex-flexunit/ws/jenkins.xml clean: init: [mkdir] Created dir: https://builds.apache.org/job/flex-flexunit/ws/jenkins [mkdir] Created dir: https://builds.apache.org/job/flex-flexunit/ws/jenkins\temp playerglobal-check: playerglobal-settarget: playerglobal10.1-download: playerglobal11.1-download: [mkdir] Created dir: https://builds.apache.org/job/flex-flexunit/ws/jenkins\player\11.1 [get] Getting: http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_ 1.swc [get] To: https://builds.apache.org/job/flex-flexunit/ws/jenkins\player\11.1\player global.swc playerglobal-download: thirdparty-downloads: main: BUILD SUCCESSFUL Total time: 2 seconds [flex-flexunit] $ cmd /c call C:\Users\hudson\AppData\Local\Temp\hudson6959652655923538839.bat https://builds.apache.org/job/flex-flexunit/ws/mkdir jenkins\temp\flex-sdk https://builds.apache.org/job/flex-flexunit/ws/cd https://builds.apache.org/job/flex-flexunit/ws/..\flex-sdk_release\ide\fl ashbuilder\ The system cannot find the path specified. Von: Alex Harui aha...@adobe.com Gesendet: Montag, 28. April 2014 18:29 An: dev@flex.apache.org Betreff: Re: AW: FlexUnit 4.3 prepared to be able to do Maven Releases On 4/28/14 12:41 AM, Christofer Dutz christofer.d...@c-ware.de wrote: Ok ... I agree. But sill ... I wouldn't recommend doing that too fast ... we need to settle some things first. Currently the flexunit build on jenkins doesn't seem to run even if the build went through SUCCESSFULLY. Hi Chris, What kind of error did you get? I'm pretty sure the flex-asjs build is using the flexunit build to run a couple of tests. -Alex
Re: AW: AW: FlexUnit 4.3 prepared to be able to do Maven Releases
As long as the snapshot is not promoted as a public release, I think you can go and create it without a vote process. On 4/29/14 12:52 AM, Christofer Dutz christofer.d...@c-ware.de wrote: I just got the confirmation from Infra that the Apache Maven repo is setup for Flex ... What do you guys think about me giving FlexUnit 4.3 a snapshot release? 4.3-SNAPSHOT? I guess SNAPSHOTS don't need the voting thing, do they? Chris Von: Alex Harui aha...@adobe.com Gesendet: Montag, 28. April 2014 18:29 An: dev@flex.apache.org Betreff: Re: AW: FlexUnit 4.3 prepared to be able to do Maven Releases On 4/28/14 12:41 AM, Christofer Dutz christofer.d...@c-ware.de wrote: Ok ... I agree. But sill ... I wouldn't recommend doing that too fast ... we need to settle some things first. Currently the flexunit build on jenkins doesn't seem to run even if the build went through SUCCESSFULLY. Hi Chris, What kind of error did you get? I'm pretty sure the flex-asjs build is using the flexunit build to run a couple of tests. -Alex
RE: [FDB] Integration
The integration of the worker code itself which requires, in order to be total, to modify the Ant script that build FDB in order to link the Falcon sources (AST classes used to evaluate the expression), at the moment I didn't do this part and then still use the old code which required some integration code to work, I would like to commit that but once the build script modified and everything is working, I will commit. Is it fine for you like that ? Bugs: I finally been able to reproduce the ones mentioned by Alexander but I'm not sure the back and forth discussion have some big interess, anyway, that's something that will go soon in JIRA Frédéric THOMAS From: aha...@adobe.com To: dev@flex.apache.org Subject: Re: [FDB] Integration Date: Tue, 29 Apr 2014 16:23:38 + IMO, unless the discussion is going to cover proprietary aspects of IntelliJ, it might be more like the Apache Way to share the code in a git branch and continue to discuss on the list. On 4/29/14 8:03 AM, Alexander Doroshko alexander.doros...@jetbrains.com wrote: Yes, I'd gladly try it. We can switch to personal emails in order not to spam the list. On 29.04.2014 18:34, Frédéric THOMAS wrote: Hi Alexander, I downloaded the files you indicated me + some missing files (UI, ShineMP3, metallica.wav), created an IntelliJ project, build and run successfully the application with Apache Flex SDK 4.12 / AIR 4.0 + my version of FDB and was unable to reproduce both of the issues, it worked as expected, so, that's a good news. Also, not on this test app but on another one [1], I've been able to set a BP on the worker using IntelliJ once the worker has been loaded but the variables was not readable and futur stops to the BP didn't work, IJ shows up the SystemManager class instead. If you are interested to test my version, just tell me and I will send it to you. Unfortunately, I haven't been able to work on it yesterday but will continue tonight. Frédéric THOMAS [1] https://github.com/doublefx/downloadFileWorker Date: Tue, 29 Apr 2014 15:25:23 +0400 From: alexander.doros...@jetbrains.com To: dev@flex.apache.org Subject: Re: [FDB] Integration Hi Frédéric, that's great that you are ready to put the effort into fdb with workers support! I have to say that IntelliJ IDEA still doesn't support debugging apps with workers. I spent some time on it but faced some bugs in fdb that were not that easy to workaround. That's not an excuse for me and I hope to finally support workers debug in the next version. Luckily fdb is not a black box for me any more. Below are some of the bugs that I faced. I played with this project: http://gotoandlearn.com/play.php?id=169. 'Download files' link contains already compiled MP3Worker.swf which is the main app. 1. When the worker is loaded it is impossible to switch to main thread using 'worker 0' command. Fdb says that active worker has changed but asking 'info workers' again says that actually it hasn't. See listing [1]. 2. More important bug for the IDE integration is inability to set breakpoint without knowing file id. Files that belong to different workers may have the same id. When I ask to set a breakpoint in a file with given name but current active worker doesn't have file with this name then fdb sets the breakpoint inside completely different file that does belong to the current worker and has the same id as the file where I asked to set breakpoint. See listing [2]. Alexander [1] C:\flex\air_sdk_13.0_asc_2.0\binfdb C:\flex\air_sdk_13.0_asc_2.0\binjava -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Dapplication.home=C:\flex\air_sdk_13.0_asc_2.0\bin\.. -jar C:\flex\air_sdk_13.0_asc_2.0\bin\../lib/legacy/fdb.jar Adobe fdb (Flash Player Debugger) [build development] Copyright (c) 2004-2007 Adobe, Inc. All rights reserved. (fdb) run Waiting for Player to connect Player connected; session starting. Set breakpoints and then type 'continue' to resume the session. [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 175?169 bytes after decompression (fdb) c [WorkerCreate] 1 Additional ActionScript code has been loaded from a SWF or a frame. To see all currently loaded files, type 'info files'. Active worker has changed to worker 1 Set additional breakpoints as desired, and then type 'continue'. (fdb) info workers Main Thread 0 - Running Worker 1 - Suspended (Active) [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 493?264 bytes after decompression Set additional breakpoints as desired, and then type 'continue'. (fdb) worker 0 *Active worker has changed to worker Main Thread* Set additional breakpoints as desired, and then type 'continue'. (fdb) info workers *Main Thread 0 - Running* *Worker 1 - Suspended (Active)** *Set additional breakpoints as desired, and then type 'continue'. (fdb) [2] ...
RE: [FDB] Integration
I meant: I wouldn't like to commit that in this state. Frédéric THOMAS From: webdoubl...@hotmail.com To: dev@flex.apache.org Subject: RE: [FDB] Integration Date: Tue, 29 Apr 2014 17:35:50 +0100 The integration of the worker code itself which requires, in order to be total, to modify the Ant script that build FDB in order to link the Falcon sources (AST classes used to evaluate the expression), at the moment I didn't do this part and then still use the old code which required some integration code to work, I would like to commit that but once the build script modified and everything is working, I will commit. Is it fine for you like that ? Bugs: I finally been able to reproduce the ones mentioned by Alexander but I'm not sure the back and forth discussion have some big interess, anyway, that's something that will go soon in JIRA Frédéric THOMAS From: aha...@adobe.com To: dev@flex.apache.org Subject: Re: [FDB] Integration Date: Tue, 29 Apr 2014 16:23:38 + IMO, unless the discussion is going to cover proprietary aspects of IntelliJ, it might be more like the Apache Way to share the code in a git branch and continue to discuss on the list. On 4/29/14 8:03 AM, Alexander Doroshko alexander.doros...@jetbrains.com wrote: Yes, I'd gladly try it. We can switch to personal emails in order not to spam the list. On 29.04.2014 18:34, Frédéric THOMAS wrote: Hi Alexander, I downloaded the files you indicated me + some missing files (UI, ShineMP3, metallica.wav), created an IntelliJ project, build and run successfully the application with Apache Flex SDK 4.12 / AIR 4.0 + my version of FDB and was unable to reproduce both of the issues, it worked as expected, so, that's a good news. Also, not on this test app but on another one [1], I've been able to set a BP on the worker using IntelliJ once the worker has been loaded but the variables was not readable and futur stops to the BP didn't work, IJ shows up the SystemManager class instead. If you are interested to test my version, just tell me and I will send it to you. Unfortunately, I haven't been able to work on it yesterday but will continue tonight. Frédéric THOMAS [1] https://github.com/doublefx/downloadFileWorker Date: Tue, 29 Apr 2014 15:25:23 +0400 From: alexander.doros...@jetbrains.com To: dev@flex.apache.org Subject: Re: [FDB] Integration Hi Frédéric, that's great that you are ready to put the effort into fdb with workers support! I have to say that IntelliJ IDEA still doesn't support debugging apps with workers. I spent some time on it but faced some bugs in fdb that were not that easy to workaround. That's not an excuse for me and I hope to finally support workers debug in the next version. Luckily fdb is not a black box for me any more. Below are some of the bugs that I faced. I played with this project: http://gotoandlearn.com/play.php?id=169. 'Download files' link contains already compiled MP3Worker.swf which is the main app. 1. When the worker is loaded it is impossible to switch to main thread using 'worker 0' command. Fdb says that active worker has changed but asking 'info workers' again says that actually it hasn't. See listing [1]. 2. More important bug for the IDE integration is inability to set breakpoint without knowing file id. Files that belong to different workers may have the same id. When I ask to set a breakpoint in a file with given name but current active worker doesn't have file with this name then fdb sets the breakpoint inside completely different file that does belong to the current worker and has the same id as the file where I asked to set breakpoint. See listing [2]. Alexander [1] C:\flex\air_sdk_13.0_asc_2.0\binfdb C:\flex\air_sdk_13.0_asc_2.0\binjava -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Dapplication.home=C:\flex\air_sdk_13.0_asc_2.0\bin\.. -jar C:\flex\air_sdk_13.0_asc_2.0\bin\../lib/legacy/fdb.jar Adobe fdb (Flash Player Debugger) [build development] Copyright (c) 2004-2007 Adobe, Inc. All rights reserved. (fdb) run Waiting for Player to connect Player connected; session starting. Set breakpoints and then type 'continue' to resume the session. [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 175?169 bytes after decompression (fdb) c [WorkerCreate] 1 Additional ActionScript code has been loaded from a SWF or a frame. To see all currently loaded files, type 'info files'. Active worker has changed to worker 1 Set additional breakpoints as desired, and then type 'continue'. (fdb) info workers Main Thread 0 - Running Worker 1 - Suspended (Active) [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 493?264 bytes after decompression Set additional breakpoints as desired, and then type
Re: [FDB] Integration
On 4/29/14 9:35 AM, Frédéric THOMAS webdoubl...@hotmail.com wrote: The integration of the worker code itself which requires, in order to be total, to modify the Ant script that build FDB in order to link the Falcon sources (AST classes used to evaluate the expression), at the moment I didn't do this part and then still use the old code which required some integration code to work, I would like to commit that but once the build script modified and everything is working, I will commit. Is it fine for you like that ? You can check anything you want into the FDBWorkers branch, but IMO, FDB should not be using Falcon classes when we check it into the main branch. An alternate plan would be to make FDB with workers only available as part of Falcon and move it to that repo. -ALex
Re: [FDB] Integration
On 29.04.2014 20:23, Alex Harui wrote: IMO, unless the discussion is going to cover proprietary aspects of IntelliJ, it might be more like the Apache Way to share the code in a git branch and continue to discuss on the list. No secrets of course. Ok, continuing here. Frédéric THOMAS wrote: Also line 26 of BackWorker.as, there's no code, when I have the worker 1 selected and break at this line it tells that to me, which is true and if I do a *BackWorker.as:27 *it breaks. Yes, if the file is there for the current active worker which is suspended, then it works. Too many ifs. The real problem is setting breakpoints BEFORE the code is loaded. Fdb says that breakpoint is not yet resolved and it may be resolved later to the incorrect file or not resolved at all. Example for the latter case (the same command failed for the first time and succeeded the second time): Adobe fdb (Flash Player Debugger) [build 20140426] Copyright (c) 2004-2007 Adobe, Inc. All rights reserved. (fdb) run Waiting for Player to connect Player connected; session starting. Set breakpoints and then type 'continue' to resume the session. (fdb) break BackWorker.as:27 [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 175?169 bytes after decompression Breakpoint 1 created, but not yet resolved. The breakpoint will be resolved when the corresponding file or function is loaded. (fdb) c [WorkerCreate] 1 Additional ActionScript code has been loaded from a SWF or a frame. To see all currently loaded files, type 'info files'. Active worker has changed to worker 1 Attempting to resolve breakpoint 1, expression BackWorker.as:27: There is no executable code on the specified line. Fix or remove bad breakpoints, then type 'continue'. (fdb) break BackWorker.as:27 [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 493?264 bytes after decompression Breakpoint 2: file BackWorker.as, line 27 Set additional breakpoints as desired, and then type 'continue'. (fdb) Bug 1: reproduced. (will check what I can do) Bug 2: Can't halt the player execution, it tells me to click a button, what I do but failed to halt it, anyway, I think it is the way it works at the end, I mean each command is sent to a particular worker session, so, inside the same worker session it hasn't access to the others, also the reason why in each instance of the worker we need to set back the BP, watches and displays. What I can try to do instead is to display a message that the file has not been found. To halt worker some event must be triggered there. Pressing a button won't help as UI belongs to the main thread. Trying to open any file triggers event at worker side and it halts. By the way that's a problem as well for the IDE integration: to set breakpoint it needs to suspend VM which is not possible if no events are fired. I'm not sure you can do anything with it at fdb side. But I think you can fix fdb so that it doesn't set breakpoint in the file where it was not asked to. The best would be to check all workers suspended at the moment and set breakpoints for each of them that contains this file. If none found then the same message as for unresolved breakpoint is probably ok. Any thoughts ? Frédéric THOMAS Date: Tue, 29 Apr 2014 19:48:39 +0400 From: alexander.doros...@jetbrains.com To: webdoubl...@hotmail.com Subject: Re: [FDB] Integration All bugs are there unfortunately. Note that you do not need to download anything else except moreworkers.zip and do not need to setup the project in the IDE. Zip already contains compiled MP3Worker.swf that you start after typing 'run' in fdb console. Here's the listing showing both bugs (see comments). Hint: to have user readable text instead of placeholders like !workerChanged! you need to copy flex/tools/debugger/cli/fdb_*.properties files from fdb.jar from the AIR SDK into your fdb.jar. Apache fdb (Flash Player Debugger) [build 20140426] Copyright 2014 The Apache Software Foundation. (fdb) run Waiting for Player to connect Player connected; session starting. Set breakpoints and then type 'continue' to resume the session. (fdb) c [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 175?169 bytes after decompression !linePrefixWhenWorkerCreated! 1 Additional ActionScript code has been loaded from a SWF or a frame. To see all currently loaded files, type 'info files'. !workerChanged! 1 Set additional breakpoints as desired, and then type 'continue'. (fdb) info workers !mainThread! 0 - !workerRunning! *!inWorker! {worker=1} - !workerSuspended! !workerSelected! // worker 1 is active* [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 493?264 bytes after decompression Set additional breakpoints as desired, and then type 'continue'. (fdb) worker 0 *!workerChanged! !mainThread! // fdb says that active worker is now mainThread* Set additional breakpoints as desired, and
Re: AW: AW: FlexUnit 4.3 prepared to be able to do Maven Releases
Isn't he just making an official release available in a different format/through a different channel? EdB On Tue, Apr 29, 2014 at 6:30 PM, Alex Harui aha...@adobe.com wrote: As long as the snapshot is not promoted as a public release, I think you can go and create it without a vote process. On 4/29/14 12:52 AM, Christofer Dutz christofer.d...@c-ware.de wrote: I just got the confirmation from Infra that the Apache Maven repo is setup for Flex ... What do you guys think about me giving FlexUnit 4.3 a snapshot release? 4.3-SNAPSHOT? I guess SNAPSHOTS don't need the voting thing, do they? Chris Von: Alex Harui aha...@adobe.com Gesendet: Montag, 28. April 2014 18:29 An: dev@flex.apache.org Betreff: Re: AW: FlexUnit 4.3 prepared to be able to do Maven Releases On 4/28/14 12:41 AM, Christofer Dutz christofer.d...@c-ware.de wrote: Ok ... I agree. But sill ... I wouldn't recommend doing that too fast ... we need to settle some things first. Currently the flexunit build on jenkins doesn't seem to run even if the build went through SUCCESSFULLY. Hi Chris, What kind of error did you get? I'm pretty sure the flex-asjs build is using the flexunit build to run a couple of tests. -Alex -- Ix Multimedia Software Jan Luykenstraat 27 3521 VB Utrecht T. 06-51952295 I. www.ixsoftware.nl
RE: [FDB] Integration
If that means users won't be able to debug workers using the SDK until Falcon has been released as part of it, I don't think that a good idea. Instead, can we have 2 versions ? one using the current ASC classes and shipped with the current SDK, the other one in Falcon ? Frédéric THOMAS From: aha...@adobe.com To: dev@flex.apache.org Subject: Re: [FDB] Integration Date: Tue, 29 Apr 2014 16:41:33 + On 4/29/14 9:35 AM, Frédéric THOMAS webdoubl...@hotmail.com wrote: The integration of the worker code itself which requires, in order to be total, to modify the Ant script that build FDB in order to link the Falcon sources (AST classes used to evaluate the expression), at the moment I didn't do this part and then still use the old code which required some integration code to work, I would like to commit that but once the build script modified and everything is working, I will commit. Is it fine for you like that ? You can check anything you want into the FDBWorkers branch, but IMO, FDB should not be using Falcon classes when we check it into the main branch. An alternate plan would be to make FDB with workers only available as part of Falcon and move it to that repo. -ALex
RE: [FDB] Integration
Trying to open any file triggers event at worker side and it halts. By the way that's a problem as well for the IDE integration: to set breakpoint it needs to suspend VM which is not possible if no events are fired. I'm not sure you can do anything with it at fdb side. But I think you can fix fdb so that it doesn't set breakpoint in the file where it was not asked to. I've seen in the code where the problem comes from but not sure yet how to fix it without to break something, the best is to raise a JIRA like that I can be back on it after the initial commit. The best would be to check all workers suspended at the moment and set breakpoints for each of them that contains this file. If none found then the same message as for unresolved breakpoint is probably ok. Will check that as well. Thanks for pointing that out ! Frédéric THOMAS Date: Tue, 29 Apr 2014 20:53:28 +0400 From: alexander.doros...@jetbrains.com To: dev@flex.apache.org Subject: Re: [FDB] Integration On 29.04.2014 20:23, Alex Harui wrote: IMO, unless the discussion is going to cover proprietary aspects of IntelliJ, it might be more like the Apache Way to share the code in a git branch and continue to discuss on the list. No secrets of course. Ok, continuing here. Frédéric THOMAS wrote: Also line 26 of BackWorker.as, there's no code, when I have the worker 1 selected and break at this line it tells that to me, which is true and if I do a *BackWorker.as:27 *it breaks. Yes, if the file is there for the current active worker which is suspended, then it works. Too many ifs. The real problem is setting breakpoints BEFORE the code is loaded. Fdb says that breakpoint is not yet resolved and it may be resolved later to the incorrect file or not resolved at all. Example for the latter case (the same command failed for the first time and succeeded the second time): Adobe fdb (Flash Player Debugger) [build 20140426] Copyright (c) 2004-2007 Adobe, Inc. All rights reserved. (fdb) run Waiting for Player to connect Player connected; session starting. Set breakpoints and then type 'continue' to resume the session. (fdb) break BackWorker.as:27 [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 175?169 bytes after decompression Breakpoint 1 created, but not yet resolved. The breakpoint will be resolved when the corresponding file or function is loaded. (fdb) c [WorkerCreate] 1 Additional ActionScript code has been loaded from a SWF or a frame. To see all currently loaded files, type 'info files'. Active worker has changed to worker 1 Attempting to resolve breakpoint 1, expression BackWorker.as:27: There is no executable code on the specified line. Fix or remove bad breakpoints, then type 'continue'. (fdb) break BackWorker.as:27 [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 493?264 bytes after decompression Breakpoint 2: file BackWorker.as, line 27 Set additional breakpoints as desired, and then type 'continue'. (fdb) Bug 1: reproduced. (will check what I can do) Bug 2: Can't halt the player execution, it tells me to click a button, what I do but failed to halt it, anyway, I think it is the way it works at the end, I mean each command is sent to a particular worker session, so, inside the same worker session it hasn't access to the others, also the reason why in each instance of the worker we need to set back the BP, watches and displays. What I can try to do instead is to display a message that the file has not been found. To halt worker some event must be triggered there. Pressing a button won't help as UI belongs to the main thread. Trying to open any file triggers event at worker side and it halts. By the way that's a problem as well for the IDE integration: to set breakpoint it needs to suspend VM which is not possible if no events are fired. I'm not sure you can do anything with it at fdb side. But I think you can fix fdb so that it doesn't set breakpoint in the file where it was not asked to. The best would be to check all workers suspended at the moment and set breakpoints for each of them that contains this file. If none found then the same message as for unresolved breakpoint is probably ok. Any thoughts ? Frédéric THOMAS Date: Tue, 29 Apr 2014 19:48:39 +0400 From: alexander.doros...@jetbrains.com To: webdoubl...@hotmail.com Subject: Re: [FDB] Integration All bugs are there unfortunately. Note that you do not need to download anything else except moreworkers.zip and do not need to setup the project in the IDE. Zip already contains compiled MP3Worker.swf that you start after typing 'run' in fdb console. Here's the listing showing both bugs (see comments). Hint: to have user readable text instead of placeholders like !workerChanged! you need to copy
AW: AW: AW: FlexUnit 4.3 prepared to be able to do Maven Releases
Snapshots have a SNAPSHOT after the version number and they are published to a different repo. So no worries ... will hae a look at the other jenkins :-) -Ursprüngliche Nachricht- Von: Alex Harui [mailto:aha...@adobe.com] Gesendet: Dienstag, 29. April 2014 18:30 An: dev@flex.apache.org Betreff: Re: AW: AW: FlexUnit 4.3 prepared to be able to do Maven Releases As long as the snapshot is not promoted as a public release, I think you can go and create it without a vote process. On 4/29/14 12:52 AM, Christofer Dutz christofer.d...@c-ware.de wrote: I just got the confirmation from Infra that the Apache Maven repo is setup for Flex ... What do you guys think about me giving FlexUnit 4.3 a snapshot release? 4.3-SNAPSHOT? I guess SNAPSHOTS don't need the voting thing, do they? Chris Von: Alex Harui aha...@adobe.com Gesendet: Montag, 28. April 2014 18:29 An: dev@flex.apache.org Betreff: Re: AW: FlexUnit 4.3 prepared to be able to do Maven Releases On 4/28/14 12:41 AM, Christofer Dutz christofer.d...@c-ware.de wrote: Ok ... I agree. But sill ... I wouldn't recommend doing that too fast ... we need to settle some things first. Currently the flexunit build on jenkins doesn't seem to run even if the build went through SUCCESSFULLY. Hi Chris, What kind of error did you get? I'm pretty sure the flex-asjs build is using the flexunit build to run a couple of tests. -Alex
RE: [VOTE] Apache Flex SDK 4.12.1 RC2
+1 (Binding) Win7 64 - FR - Java 1.6 Checked MD5 = OK Manual build of SDK from source = OK ( rsls are ok) Tested SDK in FB 4.7 on large desktop Flex app = OK Tested SDK in IDEA 13.1 on small mobile AIR app = OK __ One minor issue in the release notes: FLEX-33948 Add touch behaviour to spark DropDownList classes = the ticket is still open. implementation attempts were not satisfactory, and have not been committed. Also, I find that the release notes do not describe accurately enough what's in the release (eg. extended queries), and going to JIRA to understand what was done isn't better. I suggest that we add a page (either in the web site or in the wiki) to describe in detail the various features. What do you think? Maurice On Mon, Apr 28, 2014 at 3:41 AM, Alex Harui aha...@adobe.com wrote: Hi, This is a Apache Flex 4.12.1 release candidate 2. Please see the RELEASE_NOTES and the README. There is a known bug in Adobe Flash Builder 4.6 and 4.7 that causes a issue when creating new applications. Adobe has provided a work around for FB 4.7 but not for 4.6. The release candidate can be found here; https://dist.apache.org/repos/dist/dev/flex/sdk/4.12.1/rc1/ Before voting please review the section,What are the ASF requirements on approving a release?, at: http://www.apache.org/dev/release.html#approving-a-release At a minimum you would be expected to check that: - MD5 and signed packages are correct - README, RELEASE_NOTES, NOTICE and LICENSE files are all fine - That you can compile from source package - That the SDK can be used in your IDE of choice - That the SDK can be used to make a mobile, desktop and browser application When testing please check the md5 and asc files and make sure that the source can be compiled. Please vote to approve this release: +1 Approve the release -1 Veto the release (please provide specific comments to why) This vote will be open for 72 hours or until a result can be called. The vote passes if there is: - At least 3 +1 votes from the PMC - More positive votes than negative votes If you find an issue with the release that's a show stopper please don't hold off voting -1. If someone votes -1 please continue testing we want to try and catch as many issues as we can and cut down on the number of release candidates. Remember existing voters can change their vote during the voting process. People who are not in PMC are also encouraged to test out the release and vote, although their votes will not be binding, they can influence how the PMC votes. When voting please indicate what OS, IDE, Flash Player version and AIR version you tested the SDK with. Please put all discussion about this release in the DISCUSSION thread not this VOTE thread. Thanks, Alex
Re: AW: AW: FlexUnit 4.3 prepared to be able to do Maven Releases
From discussion I've seen on other Apache-wide mailing lists, snapshots are somewhat like release candidates or nightly builds. They are not official release and as long as they are not prominently promoted on the users@ list or web site, they are ok. On 4/29/14 9:55 AM, Erik de Bruin e...@ixsoftware.nl wrote: Isn't he just making an official release available in a different format/through a different channel? EdB On Tue, Apr 29, 2014 at 6:30 PM, Alex Harui aha...@adobe.com wrote: As long as the snapshot is not promoted as a public release, I think you can go and create it without a vote process. On 4/29/14 12:52 AM, Christofer Dutz christofer.d...@c-ware.de wrote: I just got the confirmation from Infra that the Apache Maven repo is setup for Flex ... What do you guys think about me giving FlexUnit 4.3 a snapshot release? 4.3-SNAPSHOT? I guess SNAPSHOTS don't need the voting thing, do they? Chris Von: Alex Harui aha...@adobe.com Gesendet: Montag, 28. April 2014 18:29 An: dev@flex.apache.org Betreff: Re: AW: FlexUnit 4.3 prepared to be able to do Maven Releases On 4/28/14 12:41 AM, Christofer Dutz christofer.d...@c-ware.de wrote: Ok ... I agree. But sill ... I wouldn't recommend doing that too fast ... we need to settle some things first. Currently the flexunit build on jenkins doesn't seem to run even if the build went through SUCCESSFULLY. Hi Chris, What kind of error did you get? I'm pretty sure the flex-asjs build is using the flexunit build to run a couple of tests. -Alex -- Ix Multimedia Software Jan Luykenstraat 27 3521 VB Utrecht T. 06-51952295 I. www.ixsoftware.nl
Re: [FDB] Integration
Yes, definitely. If you can get FDB with workers to not need Falcon classes that would be great. On 4/29/14 10:11 AM, Frédéric THOMAS webdoubl...@hotmail.com wrote: If that means users won't be able to debug workers using the SDK until Falcon has been released as part of it, I don't think that a good idea. Instead, can we have 2 versions ? one using the current ASC classes and shipped with the current SDK, the other one in Falcon ? Frédéric THOMAS From: aha...@adobe.com To: dev@flex.apache.org Subject: Re: [FDB] Integration Date: Tue, 29 Apr 2014 16:41:33 + On 4/29/14 9:35 AM, Frédéric THOMAS webdoubl...@hotmail.com wrote: The integration of the worker code itself which requires, in order to be total, to modify the Ant script that build FDB in order to link the Falcon sources (AST classes used to evaluate the expression), at the moment I didn't do this part and then still use the old code which required some integration code to work, I would like to commit that but once the build script modified and everything is working, I will commit. Is it fine for you like that ? You can check anything you want into the FDBWorkers branch, but IMO, FDB should not be using Falcon classes when we check it into the main branch. An alternate plan would be to make FDB with workers only available as part of Falcon and move it to that repo. -ALex
RE: [FDB] Integration
Alexander, I found a way to fix them all except the bad message when a file is not found but it is an easy fix I can think about later. You can now select a worker, then you need to halt it if is not, set your breakpoints, watches, displays, continue it if you halted it, this bring you back to the previous selected worker, then continue it [1]. Is this behavior fine for you ? I send you in 5mn the fixed FDB for test but will commit the fix as part of a JIRA issue, you can create it if you like and link it here. I understand it would be also convenient to set again automaticaly the breakpoints, watches and displays when a new worker of the same instance starts but I wouldn't like to remove the actual behavior, therefore, if it is ok for you, I will activate it only when the -ide argument is passed to FDB, I'll do that after the first commits. Frédéric THOMAS [1] (fdb) run Waiting for Player to connect Player connected; session starting. Set breakpoints and then type 'continue' to resume the session. (fdb) run Session already in progress [SWF] MP3Worker.swf - 175 899 bytes after decompression (fdb) continue [WorkerCreate] 1 Additional ActionScript code has been loaded from a SWF or a frame. To see all currently loaded files, type 'info files'. Active worker has changed to worker 1 Set additional breakpoints as desired, and then type 'continue'. (fdb) info workers Main Thread 0 - Running Worker 1 - Suspended (Active) [SWF] MP3Worker.swf - 493 264 bytes after decompression Set additional breakpoints as desired, and then type 'continue'. (fdb) break BackWorker.as:27 Breakpoint 1: file BackWorker.as, line 27 Set additional breakpoints as desired, and then type 'continue'. (fdb) worker 0 Active worker has changed to worker Main Thread (fdb) info workers Main Thread 0 - Running (Active) Worker 1 - Suspended (fdb) halt Attempting to suspend Player execution... Player stopped (fdb) break MP3Worker.as:70 Breakpoint 2: file MP3Worker.as, line 70 (fdb) continue Additional ActionScript code has been loaded from a SWF or a frame. To see all currently loaded files, type 'info files'. Active worker has changed to worker 1 Set additional breakpoints as desired, and then type 'continue'. (fdb) info workers Main Thread 0 - Running Worker 1 - Suspended (Active) Set additional breakpoints as desired, and then type 'continue'. (fdb) info breakpoints Num Type Disp Enb AddressWhat 1 breakpoint keep y 0xfa71 in onMainToBack() at BackWorker.as:27 2 breakpoint keep y 0x in onSelected() at MP3Worker.as:70 Set additional breakpoints as desired, and then type 'continue'. (fdb) continue From: webdoubl...@hotmail.com To: dev@flex.apache.org Subject: RE: [FDB] Integration Date: Tue, 29 Apr 2014 20:32:08 +0100 Trying to open any file triggers event at worker side and it halts. By the way that's a problem as well for the IDE integration: to set breakpoint it needs to suspend VM which is not possible if no events are fired. I'm not sure you can do anything with it at fdb side. But I think you can fix fdb so that it doesn't set breakpoint in the file where it was not asked to. I've seen in the code where the problem comes from but not sure yet how to fix it without to break something, the best is to raise a JIRA like that I can be back on it after the initial commit. The best would be to check all workers suspended at the moment and set breakpoints for each of them that contains this file. If none found then the same message as for unresolved breakpoint is probably ok. Will check that as well. Thanks for pointing that out ! Frédéric THOMAS Date: Tue, 29 Apr 2014 20:53:28 +0400 From: alexander.doros...@jetbrains.com To: dev@flex.apache.org Subject: Re: [FDB] Integration On 29.04.2014 20:23, Alex Harui wrote: IMO, unless the discussion is going to cover proprietary aspects of IntelliJ, it might be more like the Apache Way to share the code in a git branch and continue to discuss on the list. No secrets of course. Ok, continuing here. Frédéric THOMAS wrote: Also line 26 of BackWorker.as, there's no code, when I have the worker 1 selected and break at this line it tells that to me, which is true and if I do a *BackWorker.as:27 *it breaks. Yes, if the file is there for the current active worker which is suspended, then it works. Too many ifs. The real problem is setting breakpoints BEFORE the code is loaded. Fdb says that breakpoint is not yet resolved and it may be resolved later to the incorrect file or not resolved at all. Example for the latter case (the same command failed for the first time and succeeded the second time): Adobe fdb (Flash Player Debugger) [build 20140426] Copyright (c) 2004-2007 Adobe, Inc. All rights reserved. (fdb) run Waiting for Player to connect Player connected; session starting. Set breakpoints and then type 'continue' to resume
RE: [FDB] Integration
It is possible yes as I did it already but still needs more tests indeed, I still think we can have another version which uses Falcon as the code seems adding more features, I didn't dig that much in it for be able to figure them yet but will try to do it in a near futur. So, is there any objection to have one version in the SDK and one in Falcon ? Frédéric THOMAS From: aha...@adobe.com To: dev@flex.apache.org Subject: Re: [FDB] Integration Date: Tue, 29 Apr 2014 21:35:03 + Yes, definitely. If you can get FDB with workers to not need Falcon classes that would be great. On 4/29/14 10:11 AM, Frédéric THOMAS webdoubl...@hotmail.com wrote: If that means users won't be able to debug workers using the SDK until Falcon has been released as part of it, I don't think that a good idea. Instead, can we have 2 versions ? one using the current ASC classes and shipped with the current SDK, the other one in Falcon ? Frédéric THOMAS From: aha...@adobe.com To: dev@flex.apache.org Subject: Re: [FDB] Integration Date: Tue, 29 Apr 2014 16:41:33 + On 4/29/14 9:35 AM, Frédéric THOMAS webdoubl...@hotmail.com wrote: The integration of the worker code itself which requires, in order to be total, to modify the Ant script that build FDB in order to link the Falcon sources (AST classes used to evaluate the expression), at the moment I didn't do this part and then still use the old code which required some integration code to work, I would like to commit that but once the build script modified and everything is working, I will commit. Is it fine for you like that ? You can check anything you want into the FDBWorkers branch, but IMO, FDB should not be using Falcon classes when we check it into the main branch. An alternate plan would be to make FDB with workers only available as part of Falcon and move it to that repo. -ALex
Re: [FDB] Integration
On 4/29/14 3:30 PM, Frédéric THOMAS webdoubl...@hotmail.com wrote: So, is there any objection to have one version in the SDK and one in Falcon ? I'm ok with that. -Alex