-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Building docs from latest source doesn't work #6702
Comments
I've just tested this on a fresh clone of Angular, and can't reproduce. Can you provide some more info? |
I have tried to do a fresh clone and build but "npm install" is choking on I will have to try this at home where I will be able to use "git" protocol. |
Also cannot reproduce the issue. I suggest you re-install everything and make sure your system has full privileges to install all dependencies(git, NodeJS, Java, etc) |
On Mon, Mar 17, 2014 at 9:57 AM, Chung-Min Cheng
Sure. Just as FYI, I already have git, java, and node working on this Linux |
I think the only node package using this is vojta's fork of grunt-jasmine-node. As a workaround, you should be able to clone the repository manually and @vojtajina would it make sense to publish this package on npm so that it can be fetched more traditionally? |
I can't repro this either. Though @btford asked me about something that looked similar. Brian? @draghuram your issue is different. you need git protocol support in order to fetch the dependencies. git is used by npm to fetch changes that haven't been officially pushed to the npm repo, so without the git protocol you won't be able to install many dependencies. |
Hi @IgorMinar, the proxy at my work place doesn't allow outgoing "git" protocol connections. Hence my question about using http or https URLs. In any case, I have tried at home where git protocol works. How ever, I still run into the same issue. @caitp, the output of my build process can be found here: How ever, considering that no one else is seeing this issue, this must have something to do with my local environment. I will try to figure it out but I did get the local docs working by using the work around I mentioned in original description. Thanks for all the help. |
@draghuram I think that issue with docs generation is flaky, I've seen that a few times tonight, but running |
I think this may be caused by not having any git tags in your clone. There is a utility that tries to compute the various versions of AngularJS to populate the version chooser drop-down in the docs app, but if you have no tags in your cloned repository this may be breaking. I will see if I can reproduce locally. |
I can't reproduce this by deleting tags. I did the following and it works:
|
Ahah! I think I know what the problem is. We changed the versions utility to look up the tags on the remote git repository to cope with situations where the clone did not pull down all the tags. The line is here: https://github.com/angular/angular.js/blob/master/lib/versions/version-info.js#L107 If your environment is blocking this remote call then this method will return |
You can easily reproduce this by turning off your internet connection and running |
thanks Pete! |
This is what I was seeing as well. Thanks for the fix, @petebacondarwin! |
Thanks. It works for me now. |
After following the steps outlines on Angular site related to building locally, "grunt package" fails with the following trace:
Error: Invalid configuration. Please provide a valid
source.previousVersions
propertyat module.exports.process (.../angular.js/docs/config/processors/versions-data.js:18:13)
at invoke (.../angular.js/node_modules/dgeni/node_modules/di/lib/injector.js:75:15)
at processingPromise.then.catch.error.message (.../angular.js/node_modules/dgeni/lib/doc-processor.js:117:31)
at _fulfilled (.../angular.js/node_modules/dgeni/node_modules/q/q.js:798:54)
at self.promiseDispatch.done (.../angular.js/node_modules/dgeni/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch (.../angular.js/node_modules/dgeni/node_modules/q/q.js:760:13)
at .../angular.js/node_modules/dgeni/node_modules/q/q.js:574:44
at flush (.../angular.js/node_modules/dgeni/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:415:13)
Warning: doc generation failed Use --force to continue.
I am only a beginner when it comes to Javascript and Angular but it appears to me that "gitInfo" is not being passed to the function "process()" in "versions-data".
I proceeded by initializing "versions" to some random value (["1.42.1"]) as all I wanted was to get the latest docs.
Thanks,
Raghu
The text was updated successfully, but these errors were encountered: