Skip to content

Instantly share code, notes, and snippets.

@timkim
timkim / gist:0494403c0828aac745d0
Created June 9, 2014 22:46
cordova-lib error
timbo:tests timkim$ sudo npm install -g phonegap
Password:
npm http GET https://registry.npmjs.org/phonegap
npm http 200 https://registry.npmjs.org/phonegap
npm http GET https://registry.npmjs.org/phonegap/-/phonegap-3.5.0-0.20.3.tgz
npm http 200 https://registry.npmjs.org/phonegap/-/phonegap-3.5.0-0.20.3.tgz
npm http GET https://registry.npmjs.org/colors/0.6.0-1
npm http GET https://registry.npmjs.org/cordova/3.5.0-0.2.4
npm http GET https://registry.npmjs.org/connect-phonegap/0.11.0
npm http GET https://registry.npmjs.org/optimist/0.6.0
@timkim
timkim / gist:a93fcf5f80d111223e00
Created May 12, 2014 21:56
Cordova WP8 run failure
timki_000@PHONEGAP-SF ~/repo/phonegap-app (106-filetransfer)
$ cordova run wp8
Running command: "c:\Program Files (x86)\nodejs\node.exe" c:\Users\timki_000\rep
o\phonegap-app\.cordova\hooks\before_prepare\test-runner.js c:/Users/timki_000/r
epo/phonegap-app
Running command: "c:\Program Files (x86)\nodejs\node.exe" c:\Users\timki_000\rep
o\phonegap-app\.cordova\hooks\after_prepare\test-runner.js c:/Users/timki_000/re
po/phonegap-app
@timkim
timkim / gist:676da3fba1d91ad8129c
Created May 12, 2014 21:50
PhoneGap WP8 - build failure
timki_000@PHONEGAP-SF ~/repo/phonegap-app (106-filetransfer)
$ phonegap run wp8 --test
[phonegap] detecting Windows Phone 8 SDK environment...
[phonegap] using the local environment
[phonegap] compiling Windows Phone 8...
WARNING: [ --debug | --release ] not specified, defaulting to debug...
Cleaning cordova project...
Building Cordova-WP8 Project:
Configuration : Debug
@timkim
timkim / gist:79638dee231da0c67c8e
Created May 9, 2014 22:49
WP8 fails on: phonegap test wp8 --test
$ phonegap run wp8 --test
[phonegap] detecting Windows Phone 8 SDK environment...
[phonegap] using the local environment
[phonegap] compiling Windows Phone 8...
fs.js:543
return binding.rename(pathModule._makeLong(oldPath),
^
Error: EPERM, operation not permitted 'c:\Users\timki_000\repo\phonegap-app\www-
backup'
@timkim
timkim / gist:10313756
Created April 9, 2014 20:50
Windows Phone 8 Build Log
1>------ Build started: Project: PhoneGap, Configuration: Debug Any CPU ------
1>C:\Users\timki_000\repo\phonegap-app\platforms\wp8\Plugins\org.apache.cordova.media\AudioPlayer.cs(168,13,168,106): warning CS0612: 'WPCordovaClassLib.Cordova.Commands.BaseCommand.InvokeCustomScript(WPCordovaClassLib.Cordova.ScriptCallback, bool)' is obsolete
1> PhoneGap -> C:\Users\timki_000\repo\phonegap-app\platforms\wp8\Bin\Debug\com.phonegap.app.dll
1> Begin application manifest generation
1> Application manifest generation completed successfully
1> Begin Xap packaging
1>MSBUILD : error : Xap packaging failed. Failed to package file 'C:\Users\timki_000\repo\phonegap-app\platforms\wp8\www\css\index.css'. Unable to find the specified file.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
@timkim
timkim / gist:8855177
Created February 7, 2014 00:14
Kill ME
timki_000@PHONEGAP-SF ~/repo/connect-phonegap (master)
$ npm test
> connect-phonegap@0.8.1 test c:\Users\timki_000\repo\connect-phonegap
> jasmine-node --color spec
..............F...F...................................................
Failures:
Failures:
1) common platform handler deleteJava should delete empty directories after removing source code in a java src path heirarchy
Message:
Error: EPERM, operation not permitted '/var/folders/k5/p44x4yn122s_gk2s0p0c7rm00000gn/T/test_plugman/project/dest'
Stacktrace:
Error: EPERM, operation not permitted '/var/folders/k5/p44x4yn122s_gk2s0p0c7rm00000gn/T/test_plugman/project/dest'
at Object.fs.unlinkSync (fs.js:582:18)
at Object.module.exports.deleteJava (/Users/timkim/repo/plugman/src/platforms/common.js:32:12)
at null.<anonymous> (/Users/timkim/repo/plugman/spec/platforms/common.spec.js:105:20)
it('should receive the correct request', function(){
var mySpy = spyOn(http, 'get');
// need this to get around the 'on' function callback beind undefined in plugins.js
mySpy.on = function(){};
plugins.getPluginInfo('ChildBrowser', function(error, plugin) {
});
expect(mySpy).toHaveBeenCalledWith('https://github.com/imhotep/ChildBrowser');
});
@timkim
timkim / gist:3694742
Created September 10, 2012 23:24
Cordova Android Git Url
https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
@timkim
timkim / Blackberry PhoneGap Sample
Created July 31, 2012 21:21
Blackberry PhoneGap Sample
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" id="viewport" content="width=device-width,height=device-height,initial-scale=1.0,user-scalable=no">
<script src="json2.js" type="text/javascript"></script>
<script src="cordova-1.6.1.js" type="text/javascript"></script>
<script type="text/javascript">
//---------------------------------------------------------------------