[Mifos-developer] Timeout in loading modules error in communit app on Windows

59 views
Skip to first unread message

Rishabh Shukla

unread,
Aug 1, 2014, 3:20:57 PM8/1/14
to mifos-d...@lists.sourceforge.net
Hi,

I am trying to run community app on Windows. I have already setup  everything with bower and npm, so all the modules are already in the cloned directory. But when I try to start the server using "grunt serve" most of the time I get a "load modules timeout" error and just randomly it works fine, some times. 

I have not made any code changes in the cloned repo and the same code is working on my Linux system. Even the "develop" branch throws the same error.

Also, if I just open "index.html" in Firefox Browser then it works fine but creates above problem with "grunt serve".

I am not able to understand the exact root of this problem. How can I get rid of it?


Thanks,
Rishabh
GSOC'14, Mifos 

Michael Vorburger

unread,
Aug 1, 2014, 5:20:57 PM8/1/14
to Mifos software development
Hm... strange - my first reaction, based on what you described, particularly because you say file:/ based in FF is OK but grunt serve http://localhost is NOK, would be that this sounds like some sort of localhost network problem on your Windows machine? Are you running some ... virus scanner? Some smarty local software firewall that's interfering somehow? Just guesses. 


_______________________
Michael Vorburger
http://www.vorburger.ch


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
Mifos-developer mailing list
mifos-d...@lists.sourceforge.net
Unsubscribe or change settings at:
https://lists.sourceforge.net/lists/listinfo/mifos-developer

jagori samajdar

unread,
Aug 2, 2014, 5:57:48 AM8/2/14
to Mifos software development
Hi Rishabh,

Although am not the right person to comment on this as I have a very limited knowledge of how Grunt works,but just try running 'grunt clean' before 'grunt serve'.It might help cleaning the directories,am not sure though how/why.

Regards,
Jagori


Diunuge Buddhika Wijesinghe

unread,
Aug 2, 2014, 11:37:20 AM8/2/14
to mifosde...@googlegroups.com, mifos-d...@lists.sourceforge.net
Hi Rishabh,

It's happening because of low timeout time for RequireJS.  You can fix it by adding a line to loader.js(app/script/loader.js)

Change

1 (function () {
2    require.config({
3        paths: {
4               ...

to 

1. (function () {
2.    require.config({
3. waitSeconds: 200,
4.        paths: {
5.               ..........

Thanks & Regards,
Diunuge
Reply all
Reply to author
Forward
0 new messages