Esri / dojo-bootstrap-map-js

Samples for how to use the Esri ArcGIS API for JavaScript w/ Bootstap via Dojo-bootstrap
Apache License 2.0
71 stars 83 forks source link

While running grunt build getting an error, "Fatal error: Spawn Ok" #48

Closed RahulMetangale closed 10 years ago

RahulMetangale commented 10 years ago

image

Any help to resolve this issue is greatly appreciated.

tomwayson commented 10 years ago

Can you please confirm that you've completed all these steps:

https://github.com/Esri/dojo-bootstrap-map-js#downloading-dependencies-and-building

And that src/dojo/dojo.js exists.

If so, try running in verbose mode to get a better error description and paste that here:

grunt build --verbose

This thread may be of help:

https://github.com/phated/grunt-dojo/issues/9

RahulMetangale commented 10 years ago

I confirm that i have completed all the steps mentioned in the url and src/dojo/dojo.js exists. I have also tried thread but it did not help (changing src/dojo/dojo.js to src/dojo/dojo).

Here is the log from grunt build --verbose Building Dojo... Dojo build parameters: src/dojo/dojo.js load=build --basePath ./src --profile profiles/app.profile.js --profile profiles/app.profile.js --releaseDir ../dist processing profile resource D:/rahul/Research/Frameworks/dojo-bootstrap-map- js-master/profiles/app.profile.js processing profile resource D:/rahul/Research/Frameworks/dojo-bootstrap-map- js-master/profiles/app.profile.js warn(209) Missing or empty package.json. filename: D:/rahul/Research/Framewo rks/dojo-bootstrap-map-js-master/src/app/package.json info(107) Package Version: package: dgrid; version: 0.3.14 processing profile resource D:/rahul/Research/Frameworks/dojo-bootstrap-map- js-master/src/dgrid/package.js info(107) Package Version: package: dijit; version: 1.9.1 processing profile resource D:/rahul/Research/Frameworks/dojo-bootstrap-map- js-master/src/dijit/dijit.profile.js info(107) Package Version: package: dojo; version: 1.9.1 processing profile resource D:/rahul/Research/Frameworks/dojo-bootstrap-map- js-master/src/dojo/dojo.profile.js info(107) Package Version: package: dojox; version: 1.9.1 processing profile resource D:/rahul/Research/Frameworks/dojo-bootstrap-map- js-master/src/dojox/dojox.profile.js info(107) Package Version: package: esri; version: 3.11 processing profile resource D:/rahul/Research/Frameworks/dojo-bootstrap-map- js-master/src/esri/esri.profile.js info(107) Package Version: package: put-selector; version: 0.3.5 processing profile resource D:/rahul/Research/Frameworks/dojo-bootstrap-map- js-master/src/put-selector/package.js info(107) Package Version: package: xstyle; version: 0.1.2 processing profile resource D:/rahul/Research/Frameworks/dojo-bootstrap-map- js-master/src/xstyle/package.js info(107) Package Version: package: dojo-bootstrap; version: 3.0.2 processing profile resource D:/rahul/Research/Frameworks/dojo-bootstrap-map- js-master/src/dojo-bootstrap/bootstrap.profile.js warn(209) Missing or empty package.json. filename: D:/rahul/Research/Framewo rks/dojo-bootstrap-map-js-master/src/bootstrap-map-js/src/package.json discovering resources... starting reading resources... starting processing raw resource content... starting tokenizing resource... starting processing resource tokens... starting parsing resource... starting processing resource AST... warn(205) Module not tagged as pure AMD yet it contains AMD API applications. mo dule: app/config warn(205) Module not tagged as pure AMD yet it contains AMD API applications. mo dule: app/main warn(205) Module not tagged as pure AMD yet it contains AMD API applications. mo dule: app/widget/Map warn(205) Module not tagged as pure AMD yet it contains AMD API applications. mo dule: app/widget/NavBar warn(224) A plugin dependency was encountered but there was no build-time plugin resolver. module: dgrid/ColumnSet; plugin: xstyle/css warn(216) dojo/has plugin resource could not be resolved during build-time. plug in resource id: touch?./TouchScroll; reference module id: dgrid/List warn(224) A plugin dependency was encountered but there was no build-time plugin resolver. module: dgrid/List; plugin: xstyle/css warn(216) dojo/has plugin resource could not be resolved during build-time. plug in resource id: touch?./util/touch; reference module id: dgrid/Selection warn(224) A plugin dependency was encountered but there was no build-time plugin resolver. module: dgrid/TouchScroll; plugin: xstyle/css warn(216) dojo/has plugin resource could not be resolved during build-time. plug in resource id: touch?./util/touch; reference module id: dgrid/tree warn(224) A plugin dependency was encountered but there was no build-time plugin resolver. module: dgrid/extensions/ColumnHider; plugin: xstyle/css warn(224) A plugin dependency was encountered but there was no build-time plugin resolver. module: dgrid/extensions/ColumnReorder; plugin: xstyle/css warn(224) A plugin dependency was encountered but there was no build-time plugin resolver. module: dgrid/extensions/ColumnResizer; plugin: xstyle/css warn(224) A plugin dependency was encountered but there was no build-time plugin resolver. module: dgrid/extensions/CompoundColumns; plugin: xstyle/css warn(216) dojo/has plugin resource could not be resolved during build-time. plug in resource id: touch?../util/touch; reference module id: dgrid/extensions/DnD warn(216) dojo/has plugin resource could not be resolved during build-time. plug in resource id: touch?./_DnD-touch-autoscroll; reference module id: dgrid/extens ions/DnD warn(224) A plugin dependency was encountered but there was no build-time plugin resolver. module: dgrid/extensions/DnD; plugin: xstyle/css warn(224) A plugin dependency was encountered but there was no build-time plugin resolver. module: dgrid/extensions/Pagination; plugin: xstyle/css warn(224) A plugin dependency was encountered but there was no build-time plugin resolver. module: dijit/Fieldset; plugin: dojo/query warn(224) A plugin dependency was encountered but there was no build-time plugin resolver. module: dijit/Tree; plugin: dojo/query warn(216) dojo/has plugin resource could not be resolved during build-time. plug in resource id: dojo-bidi?./_BidiMixin; reference module id: dijit/_WidgetBase Fatal error: spawn OK

tomwayson commented 10 years ago

Hmm.. I'll have to see if I can reproduce. What is your environment (OS, node ver, etc).

In the mean time, are you able to use nobuild.html?

RahulMetangale commented 10 years ago

Thank you for your quick reply. I am able to use nobuild.html but more interested in using/learning build. Here are my environment details: Windows 7 64 bit Node version 0.10.33 Grunt version 0.4.5

I have also tried running build using git bash installed on my system but i get same error.

Any help is greatly appreciated.

tomwayson commented 10 years ago

OK, thx for the details. Can youi also confirm that the version of this repo that you are working on is this download of master (i.e. clicking on the Download ZIP from the home page):

https://github.com/Esri/dojo-bootstrap-map-js/archive/master.zip

I'll see if I can recreate the issue, but might not be able to get to it right away. In the meantime, if you can use nobuild.html, it should be fairly easy to covert your work to use the build version once the issue is resolved.

RahulMetangale commented 10 years ago

Yes I am working with master brach. I downloaded the zip from the home page. Also would it be possible for you to tell me what environment you generally use to generate the build

tomwayson commented 10 years ago

I develop on both a Mac and Windows. I think the builds that I've done for this have been done on my Mac, which I don't have with me at the moment, and I don't know the Node version off hand. Also, when working on my PC, I'm typically running commands inside of Git bash, but I can't say for sure that I've done a build of this project on my PC.

RahulMetangale commented 10 years ago

I ran following command from windows command prompt i think i was successful in generating the build: src\util\buildscripts\build.bat --profile profiles\app.profile.js

Above command generated a release directory. I had to paste index.html file to this directory manually before deploying it on web server. I hope this is expected. image

So grunt build does not work but build.bat works.

RahulMetangale commented 10 years ago

Did some additional research and found that grunt build command works from Windows powershell. It does not work from nodejs command prompt may be because of absence of following in system path variable: %SystemRoot%\system32;

So bottom line is if some grunt/node command work in mac but does not work in windows. Try running it from Windows powershell.

tomwayson commented 10 years ago

Thanks @RahulMetangale for seeing this through.

I was surprised it was not able to run in a Node.js command prompt. Like I said above, I typically use the git bash command window, so I got the latest on my PC and tried running the build that way, and it works. I also tried in my Node.js command prompt and it worked there as well.

So I wonder if there's a security or other issue w/ your node install. Just a guess.

I am sorry you had so much trouble, and appreciate your persistence.