From callback-dev-return-7607-apmail-incubator-callback-dev-archive=incubator.apache.org@incubator.apache.org Wed May 30 18:22:20 2012 Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C913CEE3 for ; Wed, 30 May 2012 18:22:20 +0000 (UTC) Received: (qmail 5374 invoked by uid 500); 30 May 2012 18:22:20 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 5344 invoked by uid 500); 30 May 2012 18:22:20 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 5334 invoked by uid 99); 30 May 2012 18:22:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2012 18:22:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of anis.kadri@gmail.com designates 209.85.213.175 as permitted sender) Received: from [209.85.213.175] (HELO mail-yx0-f175.google.com) (209.85.213.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2012 18:22:12 +0000 Received: by yenl13 with SMTP id l13so114065yen.6 for ; Wed, 30 May 2012 11:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=QYY1mQXs3j75ORweTQEjsBPmqxxifZPdZyjVnWgfkpw=; b=A5SYr4r9OyieX8OnJatTPxvYAua7ywMNQu6UFlkDtrSju4NyK9T/z7cOJygQCHopXr 5nmbGcBGNIQ0aE6y4c8ZNSALB97tjQi/MddDxX8DEe4p234DFBcKanwiE6ufxj8JmObW t85mgaQa9ghCYF+Lenxf9+VVXKjGVVZgGFZbbfn/T8aTZ0vdmRWz89K63cPIHnLPUWDP IX7aoCBicfrdHEYvrQxGe/spjweXlPHZp7xA39YmfSz7TL8CclUpFZGf3UmQqrjFPdFL bcxztPjl8c2Mo5Ecj2lMS7dQSU2u8xuYAY5rlRn3g4JsUwWnAKzx7FX1qq9SkGcXK/5B LdLA== MIME-Version: 1.0 Received: by 10.236.184.134 with SMTP id s6mr16088822yhm.122.1338402111469; Wed, 30 May 2012 11:21:51 -0700 (PDT) Received: by 10.236.22.8 with HTTP; Wed, 30 May 2012 11:21:51 -0700 (PDT) In-Reply-To: References: Date: Wed, 30 May 2012 11:21:51 -0700 Message-ID: Subject: Re: [CordovaJS] File API: DirectoryEntry and exec From: Anis KADRI To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=20cf303f65266bb89404c145061c --20cf303f65266bb89404c145061c Content-Type: text/plain; charset=ISO-8859-1 Sure! Anytime! Let's touch base on IM. On Wed, May 30, 2012 at 11:12 AM, Filip Maj wrote: > Let's do it. Tomorrow sometime? > > On 5/30/12 10:59 AM, "Anis KADRI" wrote: > > >Yes still. I stopped looking into this issue. It drove me insane. Do you > >want to do a live hack session sometime this week? > > > >On Wed, May 30, 2012 at 10:57 AM, Filip Maj wrote: > > > >> Anis, how is this going for you? Still having issues? > >> > >> On 5/22/12 1:02 AM, "Anis KADRI" wrote: > >> > >> >Hi all, > >> > > >> >I am trying to implement the File API for bada 2.0 however I have been > >> >running into this problem and I haven't been able to solve it. > >> > > >> >Whenever I run exec for any method of DirectoryEntry I get the > >>following > >> >error: > >> > > >> >TypeError: '[object Object]' is not a function (evaluating 'exec(win, > >> >fail, > >> >"File", "getFile", [this.fullPath, path, options])') > >> > > >> >The reason is that exec is for some reason equal to the empty object > >>{}. > >> > > >> >I believe the build method is not working properly and is leaving > >> >module.exports to {} in this case. > >> > > >> >If I redefine exec like so: > >> > > >> >var exec = require('cordova/exec'); > >> > > >> >Right before I call it in any of the DirectoryEntry methods then it > >>works > >> >fine! > >> > > >> >Does anyone know what might be going on ? > >> > > >> >The weird thing is that this TypeError only happens for DirectoryEntry > >>and > >> >not for any other modules. I use exec everywhere else just fine. > >> > > >> >Any help really appreciated! I wasted way too much time on this... > >> > > >> >Thanks > >> > > >> >Anis > >> > >> > > --20cf303f65266bb89404c145061c--