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 AC91C195C6 for ; Thu, 21 Apr 2016 12:59:30 +0000 (UTC) Received: (qmail 60795 invoked by uid 500); 21 Apr 2016 12:59:25 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 60763 invoked by uid 500); 21 Apr 2016 12:59:25 -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 60751 invoked by uid 99); 21 Apr 2016 12:59:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Apr 2016 12:59:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6E89F18023C for ; Thu, 21 Apr 2016 12:59:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.797 X-Spam-Level: X-Spam-Status: No, score=0.797 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=cwareitservice.onmicrosoft.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id tNqyI2AJdZG4 for ; Thu, 21 Apr 2016 12:59:21 +0000 (UTC) Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0106.outbound.protection.outlook.com [157.56.112.106]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id BEC515F23D for ; Thu, 21 Apr 2016 12:59:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CWareITService.onmicrosoft.com; s=selector1-cware-de0c; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=OSLX2VPuilZqWKLZW8bPVZsR9VQPt/EwAyJUbP8lm70=; b=DfjTH4LZppMk2M4dB8bTClLunj1tr/FHpKrOYFHzsjEzkKa/V+VVUjzHsm+iDI3/6q4j55oSHSV852XuKLeWeJKpbsEAJJRk3bmadaSJ84MeCOr5THDY4nAorJKish3IWtY/1/DJuMn9qggCgoocpFC0fRDDYfTL+ozkQEqh37A= Received: from DB5PR05MB1285.eurprd05.prod.outlook.com (10.162.157.147) by DB5PR05MB1286.eurprd05.prod.outlook.com (10.162.157.148) with Microsoft SMTP Server (TLS) id 15.1.466.19; Thu, 21 Apr 2016 12:59:13 +0000 Received: from DB5PR05MB1285.eurprd05.prod.outlook.com ([10.162.157.147]) by DB5PR05MB1285.eurprd05.prod.outlook.com ([10.162.157.147]) with mapi id 15.01.0466.023; Thu, 21 Apr 2016 12:59:13 +0000 From: Christofer Dutz To: "dev@flex.apache.org" Subject: AW: FlexJS, JQuery and FDT Thread-Topic: FlexJS, JQuery and FDT Thread-Index: AQHRm1TfoY3Hk5txskCbulJNZeHb4Z+TdFcAgAACBQCAAAEcAIAABnqAgAAR6ACAAGVxgIAAAVkAgAAC+oCAAAVqAIAAAS6AgAABOQCAAAC5gIAAKqqSgAACboCAAAir7IAABeaAgAAAl7aAAAuOgIAABQ5sgAAB7wCAAAHEZ4AABt4AgAAHrICAAANJgQ== Date: Thu, 21 Apr 2016 12:59:13 +0000 Message-ID: References: <08481C36-740D-419D-9E85-EF7A1893C1F2@gmail.com> <3B6419D2-E331-4898-8E99-24A07B6B423A@gmail.com> <4A80C78A-3E1D-41A0-A217-38845A0468C9@gmail.com> <5D33EC56-8E59-4B78-8F18-B5F4D361C1B7@gmail.com> <394885FF-2FAF-4B89-A417-9C89A5D44FA5@gmail.com> <2A8FA2A7-FC67-4738-8424-A8F64ABBB38E@gmail.com>, ,<3BD7E6FC-99C4-457A-9A12-D25D9ED80B96@gmail.com> , ,<85726B33-B510-4BA4-A3D7-66053CD9ABA5@gmail.com> ,<53AC97C2-AE05-4CDE-8E39-8597D324D501@gmail.com> ,<458E6309-9B02-4C01-9AA1-30266D8E773A@gmail.com> In-Reply-To: <458E6309-9B02-4C01-9AA1-30266D8E773A@gmail.com> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: flex.apache.org; dkim=none (message not signed) header.d=none;flex.apache.org; dmarc=none action=none header.from=c-ware.de; x-originating-ip: [109.84.2.198] x-ms-office365-filtering-correlation-id: 44a8dacd-64cf-427d-c25e-08d369e4bcec x-microsoft-exchange-diagnostics: 1;DB5PR05MB1286;5:LYLXaO7vBWnLWvXHOBqwl1iu3osTXpT9ysOrvFKh28L4XQ7QP020PJVb2yaP7ZprJ4SPNRytLPKhHXo+l9+mpEhSqeRzfrRgWwkDE9B0WDGLxANRQpKdRB8mN8NSRcZzaFPJ/gsfBYRylneTTzLH5A1pvQ6Fm9URNEoLW/A6J8DSQ4ePCRXpKJWnos/dqtJf;24:RrxAhmGkqHi+JFFvkfGnev1cZSPBjSK8vdKZ1vhgAQaFTJFpN/ldFPlVTrGYBNYavhjUDFW6TiQv+3I+4FJklzqAgwobHFyBq2V2LeGZiU0=;7:N7zAt5TRIow+vHYu325lszBvfEGiHkiy7VcJNNPXysf5msYLnl2cNnjRGFUrFZktjrrH+EfRPSNHIJikG2fsPK1VOtTAwW5PnJ/AOT4kwt6Kao73Q7PyqFACLKBW306fPUdDFQwklXUS2F73lp6qDcmzW1TpVWNIFphAXkHnoT1+cTZrrMGj08M8EyPHq7WOLdGpaSqu3bU4+2QjWokQMqYf6SJTVQTH7QOMp+EOos8= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB5PR05MB1286; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(9101521026)(6040130)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041072)(6043046);SRVR:DB5PR05MB1286;BCL:0;PCL:0;RULEID:;SRVR:DB5PR05MB1286; x-forefront-prvs: 091949432C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(377454003)(24454002)(450100001)(74316001)(9686002)(3660700001)(92566002)(81166005)(229853001)(2351001)(33656002)(3280700002)(2900100001)(19580405001)(50986999)(19580395003)(2501003)(110136002)(77096005)(15975445007)(1220700001)(122556002)(1096002)(2906002)(2950100001)(6116002)(3846002)(107886002)(102836003)(54356999)(586003)(76176999)(5004730100002)(66066001)(5003600100002)(106116001)(189998001)(10400500002)(86362001)(76576001)(75402003)(87936001)(74482002)(11100500001)(5008740100001)(5002640100001)(93886004);DIR:OUT;SFP:1102;SCL:1;SRVR:DB5PR05MB1286;H:DB5PR05MB1285.eurprd05.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: c-ware.de X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Apr 2016 12:59:13.1370 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9d387546-1437-4b89-846c-691d64a7e74d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR05MB1286 I really hate if I try to figure out things and I do a wipe-all and things = work. It's an implication that somethings fundamentally wrong in the script= s. But hopefully that will go away soon :-) The bad thing is that I work with an LTE connection and bandwidth is limite= d. This way I have to download stuff over and over again :-( If the replacement should produce this: /** * @const * @type {jQuery} */ var $ =3D jQuery; I had to change the "/1" and "/2" in the replace string with "$1" and "$2". Chris ________________________________________ Von: Harbs Gesendet: Donnerstag, 21. April 2016 14:47:27 An: dev@flex.apache.org Betreff: Re: FlexJS, JQuery and FDT You are right. It did not seem to work. I was not able to get flacon to build at all until I did wipe-all. Not sure= why. It was failing on the node swc. Maybe that=92s a clue for you. The replacement was not run on the jquery file, but a manual GREP replaceme= nt using the same parameters worked fine: Find: (\* @const\s+)([\*\s/]+var \$) Replace: \1* @type {jQuery}\n\2 Maybe I need to add a multiline flag? On Apr 21, 2016, at 3:20 PM, Harbs wrote: > It didn=92t add in @type? > > I edited the wiki with the intention. > > On Apr 21, 2016, at 2:57 PM, Christofer Dutz = wrote: > >> I was hoping not to have to ... already wasted 3/4 of a day for this :-( >> >> But I just ran the Ant build with your replacement ... the output is ide= ntical ... the "var $ =3D jQuery;" line seems to pass unchanged. Perhaps ex= tending the description on the Wiki with the intention of the replacement c= ould help (I usually add a comment to the replacement to tell others what t= he regexp does as I don't tend to be able to fluently read regexps). >> >> Chris >> >> ________________________________________ >> Von: Harbs >> Gesendet: Donnerstag, 21. April 2016 13:49 >> An: dev@flex.apache.org >> Betreff: Re: FlexJS, JQuery and FDT >> >> I wish I knew. It=92s probably going to have to be Alex or Josh that ans= wers this. >> >> Good luck! >> >> On Apr 21, 2016, at 2:44 PM, Christofer Dutz = wrote: >> >>> Taking this thread to develop ... :-) >>> >>> Thanks for that ... I would have missed that one ;-) >>> >>> Can you or someone else here explain why EXTERNC is commenting out tons= of methods in the maven version? It's generating identical code, but it's = commenting out a lot of methods (not all) and therefore I can't build the J= S externs anymore :-( >>> >>> This is sort of urgent, as I only have this and next week for working o= n this sort of stuff. >>> >>> Chris >>> >>> ________________________________________ >>> Von: Harbs >>> Gesendet: Donnerstag, 21. April 2016 13:24 >>> An: users@flex.apache.org >>> Betreff: Re: FlexJS, JQuery and FDT >>> >>> Here you go: >>> https://cwiki.apache.org/confluence/display/FLEX/@internal+changes+to+b= uild+scripts >>> >>> On Apr 21, 2016, at 1:43 PM, Christofer Dutz wrote: >>> >>>> That would be a better solution, but I am hoping to eliminate the need= to replicate those types of changes soon. >>>> But today I'm completely stuck with the JS externs no longer generatin= g :-( >>>> >>>> Chris >>>> >>>> ________________________________________ >>>> Von: Harbs >>>> Gesendet: Donnerstag, 21. April 2016 12:40 >>>> An: users@flex.apache.org >>>> Betreff: Re: FlexJS, JQuery and FDT >>>> >>>> OK. Would it be easier to have a wiki page that we document build-rela= ted changes in, so they are all in one place? We could send an email with a= link to the page when it=92s edited. >>>> >>>> On Apr 21, 2016, at 1:20 PM, Christofer Dutz wrote: >>>> >>>>> If you change something ... write an email ... I'll replicate the cha= nges. >>>>> I just replicated the nodejs changes ... was quite an effort, but now= I'm back on track ... at least with that one ... >>>>> >>>>> Chris >>>>> >>>>> ________________________________________ >>>>> Von: Harbs >>>>> Gesendet: Donnerstag, 21. April 2016 11:48 >>>>> An: users@flex.apache.org >>>>> Betreff: Re: FlexJS, JQuery and FDT >>>>> >>>>> OK. Can you recommend a workflow so these changes are properly captur= ed? >>>>> >>>>> On Apr 21, 2016, at 12:40 PM, Christofer Dutz wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> just a request from my side, If you adjust any of the pre-/post-proc= essing scripts or change javascript downloads, please inform me about that = cause these are impossible to auto-merge and even harder to detect. >>>>>> >>>>>> Chris >>>>>> >>>>>> ________________________________________ >>>>>> Von: Alex Harui >>>>>> Gesendet: Donnerstag, 21. April 2016 09:07 >>>>>> An: users@flex.apache.org >>>>>> Betreff: Re: FlexJS, JQuery and FDT >>>>>> >>>>>> We do these kinds of changes with Ant replace and replaceregex in th= e >>>>>> build.xml. See the top-level build.xml and the externc.js.swc targe= t. >>>>>> >>>>>> -Alex >>>>>> >>>>>> On 4/21/16, 12:04 AM, "Harbs" wrote: >>>>>> >>>>>>> Bah. .gitignore has this entry: externs/jquery/externs >>>>>>> >>>>>>> Is there any way to make this change and have it =93stick=94 in the= repo? >>>>>>> >>>>>>> On Apr 21, 2016, at 10:00 AM, Harbs wrote: >>>>>>> >>>>>>>> OK. I=92ll make that change. I don=92t have time to test today, so= I=92ll see >>>>>>>> what happens in the next nightly=85 >>>>>>>> >>>>>>>> On Apr 21, 2016, at 9:55 AM, Alex Harui wrote: >>>>>>>> >>>>>>>>> I think it should be: >>>>>>>>> >>>>>>>>> /** >>>>>>>>> * @const >>>>>>>>> * @type {jQuery} >>>>>>>>> */ >>>>>>>>> var $ =3D jQuery; >>>>>>>>> >>>>>>>>> Look at other extern files for similar usage. >>>>>>>>> >>>>>>>>> >>>>>>>>> -Alex >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On 4/20/16, 11:36 PM, "Harbs" wrote: >>>>>>>>> >>>>>>>>>> Yes. I was looking in asjs instead of falcon=85 >>>>>>>>>> >>>>>>>>>> I=92ve never done typdefs before. Does this look right? >>>>>>>>>> >>>>>>>>>> /** >>>>>>>>>> * @const >>>>>>>>>> * @typedef {jQuery} >>>>>>>>>> */ >>>>>>>>>> var $ =3D jQuery; >>>>>>>>>> >>>>>>>>>> It=92s currently: >>>>>>>>>> /** >>>>>>>>>> * @const >>>>>>>>>> */ >>>>>>>>>> var $ =3D jQuery; >>>>>>>>>> >>>>>>>>>> On Apr 21, 2016, at 9:25 AM, OmPrakash Muppirala >>>>>>>>>> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>>> I think this is what you are looking for? >>>>>>>>>>> : flex-falcon\externs\jquery\externs\jquery-1.9.js >>>>>>>>>>> >>>>>>>>>>> Thanks, >>>>>>>>>>> Om >>>>>>>>>>> >>>>>>>>>>> On Wed, Apr 20, 2016 at 11:21 PM, Harbs >>>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>>> I=92m looking for where the jQuery definitions are and I can= =92t seem to >>>>>>>>>>>> find >>>>>>>>>>>> it. >>>>>>>>>>>> >>>>>>>>>>>> On Apr 21, 2016, at 3:17 AM, Alex Harui wro= te: >>>>>>>>>>>> >>>>>>>>>>>>> Looks like the externs file doesn't have an @type for the $ >>>>>>>>>>>>> constant. >>>>>>>>>>>> You >>>>>>>>>>>>> can try adding it in the build script or see if Google will a= ccept >>>>>>>>>>>>> a >>>>>>>>>>>> patch >>>>>>>>>>>>> for it. >>>>>>>>>>>>> >>>>>>>>>>>>> -Alex >>>>>>>>>>>>> >>>>>>>>>>>>> On 4/20/16, 4:13 PM, "Harbs" wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Replacing =93$=94 with =93jQuery=94 makes the warnings go aw= ay. Why would >>>>>>>>>>>>>> =93$=94 be >>>>>>>>>>>>>> different than =93jQuery=94? It sounds to me like a bug in t= he >>>>>>>>>>>>>> definitions. >>>>>>>>>>>>>> >>>>>>>>>>>>>> jQuery always returns a JQuery object which has many defined >>>>>>>>>>>>>> methods. >>>>>>>>>>>> One >>>>>>>>>>>>>> of those is attr. >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Apr 21, 2016, at 1:50 AM, Alex Harui w= rote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> IMO, this is why Jquery is painful for strong typing. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> I think you may need to do casting: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> ($("#topcoat") as Whatever).attr(..) >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Where Whatever is a "type" that has an attr function. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> And you may need to use @flexjsignorecoercion or other comp= iler >>>>>>>>>>>>>>> options >>>>>>>>>>>>>>> to >>>>>>>>>>>>>>> not actually do the "as" test in the JS output. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Good luck, >>>>>>>>>>>>>>> -Alex >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> On 4/20/16, 3:46 PM, "Harbs" wrote: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Here=92s an example: >>>>>>>>>>>>>>>> $("#topcoat").attr("href", >>>>>>>>>>>>>>>> "css/topcoat-desktop-lightlight.min.css"); >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> It looks like =93$=94 is defined as an object. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Here=92s the exact warnings I=92m getting: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Could not resolve variable (may be a dynamic member) 'attr= ' at >>>>>>>>>>>>>>>> line 43 >>>>>>>>>>>>>>>> column 19. ThemeManager.as /MyExtension/src/com/unhurdle >>>>>>>>>>>>>>>> Unknown >>>>>>>>>>>> Flash >>>>>>>>>>>>>>>> Problem >>>>>>>>>>>>>>>> Maybe invoking a non function. Found >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> $("#topcoat").attr("href","css/topcoat-desktop-lightlight.= min.css >>>>>>>>>>>>>>>> "); >>>>>>>>>>>> at >>>>>>>>>>>>>>>> line 43 column >>>>>>>>>>>>>>>> 5. ThemeManager.as /MyExtension/src/com/unhurdle Unknown= Flash >>>>>>>>>>>> Problem >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> And yes, js/libs/jquery.swc is included. If I remove it, I= get >>>>>>>>>>>>>>>> an >>>>>>>>>>>> error >>>>>>>>>>>>>>>> that =93$=94 is not defined instead of a warning. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> On Apr 21, 2016, at 1:39 AM, Alex Harui >>>>>>>>>>>>>>>> wrote: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> On 4/20/16, 3:34 PM, "Harbs" wrot= e: >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> Does anyone know if there=92s a way to get FDT to not fl= ag >>>>>>>>>>>>>>>>>> JQuery >>>>>>>>>>>>>>>>>> expressions with =93could not resolve variable=94 and "M= aybe >>>>>>>>>>>>>>>>>> invoke a >>>>>>>>>>>> non >>>>>>>>>>>>>>>>>> function=94 warnings? >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> What kind of expressions result in this output? Are you = sure >>>>>>>>>>>>>>>>> you >>>>>>>>>>>> have >>>>>>>>>>>>>>>>> the >>>>>>>>>>>>>>>>> jquery.swc from the externs on the -external-library-path= ? >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> -Alex >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> >