logankoester / grunt-phonegap

A Grunt plugin to provide local build tasks for Phonegap applications
MIT License
173 stars 61 forks source link

Build hangs while "Cloning root directory" #137

Closed julkue closed 8 years ago

julkue commented 8 years ago

After running $ grunt phonegap:build everything seems to be ok, but unfortunately the build hangs at a certain step:

done

My grunt task:

phonegap: {
    config: {
        root: 'dist/web-v0.4.1/',
        config: 'phonegap/config.xml',
        cordova: 'phonegap/.cordova',
        path: 'phonegap-build/',
        platforms: ['android']
    }
}

What can be the reason? How to debug this issue?

AdrianoMoura commented 8 years ago

@julmot I had the same issue too. Did you figured out how to solve this?

julkue commented 8 years ago

@AdrianoMoura Unfortunately no. As you can see in the overview I have opened a few more issues. I didn't get the build to work. So I switched to the native phonegap cli. But I noticed that it has something todo with my test project. I tested it with another (empty) project with just an index.html inside and the build worked (until another error, see above). But what exactly it is, is unknown to me.

kamiljano commented 8 years ago

same problem here. I was really hoping to switch to grunt build so that I could get rid of third party libraries from my repo, take sass into use and write a few jasmine tests that could easily be executed from the command line, but the build never finishes preventing me from doing the switch over... what is that repository cloning anyway? I don't want the plugin to clone any repos...

julkue commented 8 years ago

@kamiljano I think you've misunderstand "Cloning root directory". It will clone your application into the phonegap build folder, not clone any remote repository.

kamiljano commented 8 years ago

@julmot either way, it doesn't finish the build process.

grdonda commented 8 years ago

try to change the clone_root.js file by adding the line ncp.limit = 512; below the call of NCP module.

ncp = require ('ncp').ncp; ncp.limit = 512;

work like a charm.

grdonda commented 8 years ago

http://pastebin.com/u6pbmgZA

AdrianoMoura commented 8 years ago

Thanks @grdonda works to me!!!

julkue commented 8 years ago

@grdonda If this solves the issue, would you please be so kind and do a PR?

grdonda commented 8 years ago

the solution already exists in the NCP module, the grunt-phonegap module has not been updated. the grunt-phonegap module (https://www.npmjs.com/package/grunt-phonegap) is with the outdated dependencies. look at the above address. that way, when installing I updated the internal modules within the grunt-phonegap module. (https://travis-ci.org/AvianFlu/ncp/pull_requests)

julkue commented 8 years ago

well, then could you do a PR with updating the related dependencies?

grdonda commented 8 years ago

I will send the PR to grunt-phonegap perform update of internal dependencies related to this issue. tks

julkue commented 8 years ago

thx, please refer the PR in this issue after that.

grdonda commented 8 years ago

I will not get this moment. Would you help me ? or notify them?

julkue commented 8 years ago

I didn't understand you. Help you with what?

grdonda commented 8 years ago

I am currently unable to send the PR now.

2016-01-18 13:38 GMT-03:00 Julian notifications@github.com:

I didn't understand you. Help you with what?

— Reply to this email directly or view it on GitHub https://github.com/logankoester/grunt-phonegap/issues/137#issuecomment-172580703 .

julkue commented 8 years ago

@grdonda No problem, it has time... The PR from September 2015 are still not merged...

grdonda commented 8 years ago

ok. tks.

2016-01-18 17:07 GMT-03:00 Julian notifications@github.com:

@grdonda https://github.com/grdonda No problem, it has time... The PR from September 2015 are still not merged...

— Reply to this email directly or view it on GitHub https://github.com/logankoester/grunt-phonegap/issues/137#issuecomment-172640115 .

mourice commented 7 years ago

Build still hang when I use "npm install grunt-phonegap --save-dev Checked the npm module for grunt phonegap and found that ncp.limit = 512 is not present inside root file