Posts tagged Cordova

Ionic\Cordova EACCESS Error

ionic-logo-blogWhen your running the command “ionic run ios or ionic emulate ios” on a Mac you may be presented with the following error:

Error: spawn EACCES

The most common cause of this error is that the scripts in your hooks directory don’t have execute permission. You may also try removing and adding your ios provider. If that doesn’t work the other fix is to run the following command:

sudo find /path/to/your/app/hooks -type f -exec chmod +x {} \;

This will iterate over every file in your hooks directory and grant execute permission. Try running the run/emulate command again and the problem should be gone.

If you’re a First Responder or know one check out Resgrid which is a SaaS product utilizing Microsoft Azure, providing logistics, management and communication tools to first responder organizations like volunteer fire departments, career fire departments, EMS, search and rescue, CERT, public safety, disaster relief organizations.

VSCode and Ionic/Cordova Platform File Locking

If your running into file locking, like in the platform/android/assets/www folder, trying to use the Ionic or Cordova CLI tools with VSCode you need to exclude those folders from your VSCode’s explorer. The benefit here is also they will disappear from your search results from VSCode as well.

The error you might be receiving might look like:

rm: could not remove directory (code ENOTEMPTY): pathto\platforms\android\assets\www/js/libs

In Windows select File->Preferences->Workspace Settings.

2016-06-24 21_02_16-settings.json - Responder - Visual Studio Code

A split screen editor will appear, edit the right hand window, it may be almost blank and include the files.exclude object from below.

// Place your settings in this file to overwrite default and user settings.
{
“files.exclude”: {
“**/.git”: true,
“**/.DS_Store”: true,
“**/node_modules”: true,
“node_modules”: true,
“platforms”: true,
“plugins”: true
}

}

Once you save the settings.json file they should disappear from your VSCode explorer, but you may need to restart VSCode to make sure.

Social Accountability

Two services that we use at Resgrid a lot, UserVoice and Rollbar, don’t have Cordova Plugins. Every couple of months I would cruise the Internet to see if there were plugins for those services. Every time I turned up empty handed and left the cycle to repeat.

accountability-businessAfter thinking about it again I decided that this isn’t the type of company I want Resgrid to be. See a hole, fill that hole. So I started working on 2 Cordova plugins, one for UserVoice and the other for Rollbar. But prioritizing working on them was difficult. So I decided to push them out to GitHub and see if some social accountability would help motivate me, within a week we got our first PR.

The result, it did. That first PR where someone took the time to clean up some code and fix some issues forced me to dedicate some time to get the plugin working.

Being Socially Accountable is far more then just publishing code on Github or Bitbucket. Communicating your goals to other people, telling your fiends what you hope to accomplish or every morning during your stand up, your practicing social accountability.

But social accountability can be a curse. A while ago I watched a talk given by Jacob Thomton at the dotJS conf in 2012 about the history of OSS and why he feels bad. If you haven’t watched it it’s a good watch, note there is some NSFW language in the talk.

You can spend a lot of your time working on a side project just because it got some stars, PR’s or open issues. Even for small projects I’ve seen this stress people out. A coworker of my released some controls as open source and got a ton of issues back from people using them. Most of them didn’t try and fix them and submit a PR or patch, instead they just logged an issue.

Because of this or other factors maybe you don’t want to practice social accountability via Open Source or maybe you cant due to IP or the private nature of the code. But there are plenty of other avenues, treat your daily standup as an accountability session, have a channel on your Slack instance dedicated to accountability where after DSU you post your daily goals.

Accountability is a powerful thing, but it can be a drag on you as well. Just like everything it has pros and cons, but I feel that people don’t practice it enough. When social accountability is used well it will help you focus, raise visibility and showcase your accomplishments.

Check our Resgrid’s 2 new OSS projects our Cordova Rollbar plugin (https://github.com/Resgrid/cordova-plugins-rollbar) and our UserVoice Cordova plugin (https://github.com/Resgrid/cordova-plugins-uservoice). and hold us accountable.

Resgrid is a SaaS product utilizing Microsoft Azure, providing logistics, management and communication tools to first responder organizations like volunteer fire departments, career fire departments, EMS, search and rescue, CERT, public safety, disaster relief organizations, etc. It was founded in late 2012 by myself and Jason Jarrett (staxmanade).

Go to Top