Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B7BEE10402 for ; Tue, 29 Apr 2014 16:38:35 +0000 (UTC) Received: (qmail 1842 invoked by uid 500); 29 Apr 2014 16:38:34 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 1818 invoked by uid 500); 29 Apr 2014 16:38:33 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 1809 invoked by uid 99); 29 Apr 2014 16:38:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2014 16:38:33 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of webdoublefx@hotmail.com designates 157.55.2.89 as permitted sender) Received: from [157.55.2.89] (HELO dub0-omc4-s14.dub0.hotmail.com) (157.55.2.89) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2014 16:38:29 +0000 Received: from DUB118-W23 ([157.55.2.71]) by dub0-omc4-s14.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 29 Apr 2014 09:38:08 -0700 X-TMN: [ZySFSz3g4GzgJGNdh6EI/u5VNz5NhvUt] X-Originating-Email: [webdoublefx@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="_55602e85-f659-4008-9cb0-3e59240ea7d1_" From: =?iso-8859-1?B?RnLpZOlyaWMgVEhPTUFT?= To: "dev@flex.apache.org" Subject: RE: [FDB] Integration Date: Tue, 29 Apr 2014 17:38:07 +0100 Importance: Normal In-Reply-To: References: <1398522395616-37266.post@n4.nabble.com>,,,,<535F8C23.8000307@jetbrains.com>,,<535FBF4B.7040500@jetbrains.com>,, MIME-Version: 1.0 X-OriginalArrivalTime: 29 Apr 2014 16:38:08.0214 (UTC) FILETIME=[66D97F60:01CF63C9] X-Virus-Checked: Checked by ClamAV on apache.org --_55602e85-f659-4008-9cb0-3e59240ea7d1_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I meant:=20 I wouldn't like to commit that in this state. Fr=E9d=E9ric THOMAS > From: webdoublefx@hotmail.com > To: dev@flex.apache.org > Subject: RE: [FDB] Integration > Date: Tue=2C 29 Apr 2014 17:35:50 +0100 >=20 > The integration of the worker code itself which requires=2C in order to b= e total=2C to modify the Ant script that build FDB in order to link the Fal= con sources (AST classes used to evaluate the expression)=2C at the moment = I didn't do this part and then still use the old code which required some i= ntegration code to work=2C I would like to commit that but once the build s= cript modified and everything is working=2C I will commit. Is it fine for y= ou like that ? >=20 > Bugs: I finally been able to reproduce the ones mentioned by Alexander bu= t I'm not sure the back and forth discussion have some big interess=2C anyw= ay=2C that's something that will go soon in JIRA >=20 > Fr=E9d=E9ric THOMAS >=20 > > From: aharui@adobe.com > > To: dev@flex.apache.org > > Subject: Re: [FDB] Integration > > Date: Tue=2C 29 Apr 2014 16:23:38 +0000 > >=20 > > IMO=2C unless the discussion is going to cover proprietary aspects of > > IntelliJ=2C it might be more like the "Apache Way" to share the code in= a > > git branch and continue to discuss on the list. > >=20 > > On 4/29/14 8:03 AM=2C "Alexander Doroshko" > > wrote: > >=20 > > >Yes=2C I'd gladly try it. We can switch to personal emails in order no= t to > > >spam the list. > > > > > >On 29.04.2014 18:34=2C Fr=E9d=E9ric THOMAS wrote: > > >> Hi Alexander=2C > > >> > > >> I downloaded the files you indicated me + some missing files (UI=2C > > >>ShineMP3=2C metallica.wav)=2C created an IntelliJ project=2C build an= d 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=2C it w= orked > > >>as expected=2C so=2C that's a good news. > > >> > > >> Also=2C not on this test app but on another one [1]=2C I've been abl= e 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=2C IJ shows up the SystemManager class instead. > > >> > > >> If you are interested to test my version=2C just tell me and I will = send > > >>it to you. > > >> > > >> Unfortunately=2C I haven't been able to work on it yesterday but wil= l > > >>continue tonight. > > >> > > >> Fr=E9d=E9ric THOMAS > > >> > > >> [1] https://github.com/doublefx/downloadFileWorker > > >> > > >> > > >>> Date: Tue=2C 29 Apr 2014 15:25:23 +0400 > > >>> From: alexander.doroshko@jetbrains.com > > >>> To: dev@flex.apache.org > > >>> Subject: Re: [FDB] Integration > > >>> > > >>> Hi Fr=E9d=E9ric=2C > > >>> that's great that you are ready to put the effort into fdb with wor= kers > > >>> support! > > >>> > > >>> I have to say that IntelliJ IDEA still doesn't support debugging ap= ps > > >>> with workers. I spent some time on it but faced some bugs in fdb th= at > > >>> 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 i= s > > >>>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=3D169. 'Download files' link co= ntains > > >>> already compiled MP3Worker.swf which is the main app. > > >>> > > >>> 1. When the worker is loaded it is impossible to switch to main thr= ead > > >>> using 'worker 0' command. Fdb says that active worker has changed b= ut > > >>> asking 'info workers' again says that actually it hasn't. See listi= ng > > >>>[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 f= ile > > >>> with given name but current active worker doesn't have file with th= is > > >>> 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 w= here > > >>> I asked to set breakpoint. See listing [2]. > > >>> > > >>> Alexander > > >>> > > >>> [1] > > >>> > > >>> C:\flex\air_sdk_13.0_asc_2.0\bin>fdb > > >>> C:\flex\air_sdk_13.0_asc_2.0\bin>java -Dsun.io.useCanonCaches=3Dfal= se > > >>>-Xms32m -Xmx512m > > >>>-Dapplication.home=3D"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=2C Inc. All rights reserved. > > >>> (fdb) run > > >>> Waiting for Player to connect > > >>> Player connected=3B 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=2C type 'info files'. > > >>> Active worker has changed to worker 1 > > >>> Set additional breakpoints as desired=2C 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=2C and then type 'continue'. > > >>> (fdb) worker 0 > > >>> *Active worker has changed to worker Main Thread* > > >>> Set additional breakpoints as desired=2C and then type 'continue'. > > >>> (fdb) info workers > > >>> *Main Thread 0 - Running* > > >>> *Worker 1 - Suspended (Active)** > > >>> *Set additional breakpoints as desired=2C 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=2C MP3Worker.as (Main Thread) > > >>> 2 /Users/leebrimelow/Documents/Adobe Flash Builder > > >>>4.6/MP3Worker/src/Workers.as=2C Workers.as (Main Thread) > > >>> 1 /Users/leebrimelow/Documents/Adobe Flash Builder > > >>>4.6/MP3Worker/src/BackWorker.as=2C BackWorker.as (Worker 1) > > >>> 2=20 > > >>>/Users/kikko/work/tests/shineMP3_alchemy/src/fr/kikko/lab/ShineMP3En= code > > >>>r.as=2C ShineMP3Encoder.as (Worker 1) > > >>> *(fdb) break BackWorker.as:26** > > >>> **Breakpoint 2: file MP3Worker.as=2C line 26** > > >>> *(fdb) > > >>> > > >>> > > >>> On 27.04.2014 4:01=2C Fr=E9d=E9ric THOMAS wrote: > > >>>> Hi=2C > > >>>> > > >>>> To resume a bit what I did and discover today: > > >>>> > > >>>> 1- I merged the donated code to the the current FDB=2C keeping the > > >>>>existing fixes and the current ExpressionEvaluator (I guess It is > > >>>>possible to use the new Falcon based implementation modifying the A= NT > > >>>>script which builds it=2C in order to link the Falcon sources). > > >>>> > > >>>> 2- The new commands are "worker " used to select a > > >>>>parlicular worker by its ID and "info workers"=2C this is an exampl= e of > > >>>>what gives a break inside a worker and what displays the 2 commands= : > > >>>> > > >>>> (fdb) info workers > > >>>> !mainThread! 0 - !workerRunning! > > >>>> !inWorker! {worker=3D1} - !workerSuspended! !workerSelected! > > >>>> > > >>>> (fdb) worker 0 > > >>>> !workerChanged! !mainThread! > > >>>> > > >>>> (fdb) info workers > > >>>> !mainThread! 0 - !workerRunning! !workerSelected! > > >>>> !inWorker! {worker=3D1} - !workerSuspended! > > >>>> > > >>>> (fdb) worker 1 > > >>>> !workerChanged! 1 > > >>>> > > >>>> (fdb) info workers > > >>>> !mainThread! 0 - !workerRunning! > > >>>> !inWorker! {worker=3D1} - !workerSuspended! !workerSelected! > > >>>> > > >>>> Note for IDE integration: > > >>>> > > >>>> 1- At the moment=2C watch=2C displays and breakpoints are set for = 1 > > >>>>particular worker=2C it means=2C they need to be defined again when= a > > >>>>worker starts. > > >>>> 2- "info breakpoints" does well display the breakpoints for the sa= me > > >>>>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=E9d=E9ric THOMAS =09 > > >> =09 > > > > >=20 > =20 = --_55602e85-f659-4008-9cb0-3e59240ea7d1_--