Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-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 6D8C2105E0 for ; Thu, 15 Aug 2013 17:40:13 +0000 (UTC) Received: (qmail 52335 invoked by uid 500); 15 Aug 2013 17:40:11 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 52227 invoked by uid 500); 15 Aug 2013 17:40:09 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 52016 invoked by uid 99); 15 Aug 2013 17:40:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Aug 2013 17:40:04 +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 (athena.apache.org: domain of gibson.becky@gmail.com designates 209.85.128.42 as permitted sender) Received: from [209.85.128.42] (HELO mail-qe0-f42.google.com) (209.85.128.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Aug 2013 17:40:00 +0000 Received: by mail-qe0-f42.google.com with SMTP id s14so639952qeb.1 for ; Thu, 15 Aug 2013 10:39:40 -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=dyO2d1sLdqHbg2W8Bbg1u3sX7ZcxRW3qQESd5pHRLdE=; b=Fma+I/7mM2d7dWOsMQGcMI1YmQQL3hWOQVb7lwflmuZEnGOY61OmEK0I2fL/rnnebc Dz9+zioDT/UClvNoS50/nOM1qIPFqdXVYJWUOejakEaIHY+WO0jo7VAWcyibavkBDaCc X8HHLq+hphIRRgyTHDhDwlwv1XpXmCsG6uE1wKyKlStPWTGZNIRrgMt5wmvDq1lttm1B 274EnlzkNH5s6ge9n2MkvByqKwNv227Qr4t+0qSPMGGNvLQjmjcnXrJDLcXh0/hsEa91 9BWghdvyVPmsGfKkClq4rS/JaVmWVfwQfrJRwapNv1nPAKAHVKjT5eFdCzkrirbfR2GR +tCg== MIME-Version: 1.0 X-Received: by 10.49.24.178 with SMTP id v18mr5012564qef.12.1376588379958; Thu, 15 Aug 2013 10:39:39 -0700 (PDT) Received: by 10.224.130.6 with HTTP; Thu, 15 Aug 2013 10:39:39 -0700 (PDT) In-Reply-To: References: <4A483017-2139-4198-90BB-88F3267013AD@gmail.com> Date: Thu, 15 Aug 2013 13:39:39 -0400 Message-ID: Subject: Re: A few comments on Working With 3.0 From: Becky Gibson To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=047d7b5d4e5c63b4c804e3fff51f X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d4e5c63b4c804e3fff51f Content-Type: text/plain; charset=ISO-8859-1 FYI I'm guessing that the cordova-mobile-spec\dependencies-plugin\plugin.xml file is what is causing the problems with the xcode project since it still lists org.apache.test.echo as a dependency. I guess my point in the first post was to point out the difficulties in following the WorkingWithThree instructions in hopes of helping other folks who might want to contribute. I DID run npm install moduleName from the directory that had the dependency to get a local copy. My question was really whether or not we intended for the modules to be installed locally rather than globally. Looking at .gitignore I guess the intention is for local install since node_modules is listed. On Thu, Aug 15, 2013 at 11:24 AM, Andrew Grieve wrote: > https://npmjs.org/doc/faq.html is a good resource for understanding node's > local vs global dependencies. > > Agree coho's README needs updating. It's completely out of date! > > > On Thu, Aug 15, 2013 at 11:20 AM, Andrew Grieve >wrote: > > > yeah, sounds like mainly it's that you missed typing "npm install" within > > cordova-js and within cordova-coho (and within cordova-cli if you want to > > use a local version of that). > > > > For iOS (and android), the WorkingWithThree steps exist in a script > > within cordova-mobile-spec (createmobilespec.sh). > > > > For coho - use "coho --help" for documentation. > > > > > > On Thu, Aug 15, 2013 at 9:33 AM, Braden Shepherdson >wrote: > > > >> It sounds like you're installed npm packages with dependencies (coho, > >> cordova-js) and not running "npm install". That command will install all > >> their dependencies locally. > >> > >> In particular that's what's wrong with grunt-cli vs. grunt: the intended > >> flow is that you install grunt-cli globally, and that gives you a grunt > >> command. That command is a thin wrapper the looks up your directory > >> structure until it finds a node_modules/grunt, and then runs that > locally > >> installed grunt version. > >> > >> Braden > >> > >> > >> On Wed, Aug 14, 2013 at 6:50 PM, James Jong > wrote: > >> > >> > Becky, I would update your cordova-ios project. There was a recent > >> change > >> > to remove it (CB-4281). > >> > -James Jong > >> > > >> > On Aug 14, 2013, at 5:33 PM, Becky Gibson > >> wrote: > >> > > >> > > OK, I think the linker problem is because CDVEcho.m is included > >> twice. I > >> > > see it in plugins dir under org.apache.cordova.test.echo/src/ios/ > and > >> in > >> > > platforms/ios/cordovalib/classes/. I'm guessing this has something > >> to do > >> > > with the dependencies for mobilespec? > >> > > > >> > > thanks, > >> > > -becky > >> > > > >> > > > >> > > On Wed, Aug 14, 2013 at 5:05 PM, Becky Gibson < > gibson.becky@gmail.com > >> > >wrote: > >> > > > >> > >> I found a few bugs in iOS media capture and media that I would like > >> to > >> > >> fix. I need to get set up for 3.0 so I followed the instructions > >> here: > >> > >> http://wiki.apache.org/cordova/WorkingWithThree. Since I didn't > >> have > >> > any > >> > >> 3.0 clones I started by cloning. > >> > >> > >> > >> Here are a few issues that I ran into that did not seem to be > >> > documented: > >> > >> > >> > >> - In order for the coho clone command to work I needed to install > >> > >> optimist, shelljs and request. I tried to install optimist > >> globally > >> > but > >> > >> that didn't work so I ended up installing all of these locally > in > >> my > >> > >> cordova-coho directory to get things working. > >> > >> - I had to blindly cut and paste the coho clone from the > >> > >> WorkingWithThree wiki page since I couldn't find any > documentation > >> > for the > >> > >> clone command. > >> > >> - I edited .cordova/config.json as indicated in the instructions > >> but > >> > >> then running the cordova platform add command kept giving me a > >> syntax > >> > >> error: unexpected string. I went back to the default config.json > >> and > >> > the > >> > >> platform add command worked correctly. > >> > >> - Since I was starting from scratch I had to also clone > cordova-js > >> > >> - I followed the instructions for the cordova-js readme and > >> installed > >> > >> grunt via: sudo npm install -g grunt-cli When I tried to run > >> grunt > >> > >> to build cordova-js I got the message that it should be installed > >> > locally: Fatal > >> > >> error: Unable to find local grunt. Based on the original > >> instructions > >> > >> I installed grunt-cli locally - that didn't work so I installed > >> grunt > >> > >> locally. > >> > >> - I could build the platform js files but got the following > error: > >> > >> > >> > >> Running "_test" task > >> > >> > >> > >> starting node-based tests > >> > >> > >> > >> Warning: can't run tests in node: run grunt btest instead, or > install > >> > >> jsdom via: npm install Use --force to continue. > >> > >> > >> > >> > >> > >> Since I didn't care about the tests (at this point I didn't worry > >> about > >> > >> the error - however I'm still not sure what I should be > installing). > >> > >> > >> > >> I opened the created mobilespec project in xcode but the build > failed > >> > when > >> > >> linking. I did make the mistake of opening it in xcode 5 (beta 5) > >> > before > >> > >> trying it in 4.6 so my project settings may have been messed up by > >> > xcode > >> > >> 5. I'll tackle that tomorrow but I wanted to get the installation > >> > >> information documented before I forgot. > >> > >> > >> > >> -becky > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > > >> > > >> > > > > > --047d7b5d4e5c63b4c804e3fff51f--