Why yogi serve works with yui core but not with my modules? #33

Closed
Satyam opened this Issue Dec 7, 2012 · 13 comments

Comments

Projects
None yet
2 participants

Satyam commented Dec 7, 2012

If I cd into the Core repository and launch yogi serve, it works, but if I do the same on my group of gallery modules, all in the same repository, it asks for the module. It doesn't do that with the core. What should I have in my gallery repository to make that work?

I can see the API docs for the whole core (and I would like to see that for a couple of my modules, since one of them inherits from another one) and full examples and landing pages.

I guess I need some sort of index. There are a couple of files there that seem to provide that, but I'm not sure what they really are.

Thanks

Owner

davglass commented Dec 7, 2012

That's a bug that I'm working on. It works on the module level in the gallery, but not all of them.. I'll take a look at this soon.

@ghost ghost assigned davglass Dec 7, 2012

@davglass davglass closed this in fd08204 Dec 11, 2012

Owner

davglass commented Dec 11, 2012

You can install this from master to test this before the next release:

npm -g install https://github.com/yui/yogi/archive/master.tar.gz

Satyam commented Dec 11, 2012

API docs, tests and coverage work fine, User Guides makes it crash. API
docs now look great because references from a subclass to its superclass
work nicely so now you can see the whole set of members, its own and
those inherited.

Satyam

On 12/11/2012 09:08 PM, Dav Glass wrote:

You can install this from master to test this before the next release:

|npm -g install https://github.com/yui/yogi/archive/master.tar.gz|


Reply to this email directly or view it on GitHub
#33 (comment).

Owner

davglass commented Dec 11, 2012

How does it crash? Can you paste the error output? Mine serves properly.

Satyam commented Dec 11, 2012

satyam@ubuntu:~/git/myGallery/src$ yogi serve
yogi [info] using yogi@0.0.51 on node@0.8.15
yogi [info] using gallery-flyweight-tree, gallery-timeline,
gallery-button-plugin, gallery-md-ibutton, gallery-md-accordion,
gallery-md-button, gallery-fwt-treeview, gallery-stdmod,
gallery-md-timespinner, gallery-md-spinner, gallery-md-button-group,
gallery-md-fieldgroup, gallery-md-model, gallery-makenode,
gallery-md-inputfield
yogi [info] adding tests route
yogi [info] launching yuidoc --server 5003 --config
/usr/lib/node_modules/yogi/configs/yuidoc/yuidoc.json
yogi [info] launching selleck --server 5004 --project
/usr/lib/node_modules/yogi/configs/selleck
yogi [info] listening on: http://127.0.0.1:5000

stream.js:81
throw er; // Unhandled stream error in pipe.
^
Error: connect ECONNREFUSED
at errnoException (net.js:769:11)
at Object.afterConnect as oncomplete
satyam@ubuntu:~/git/myGallery/src$

On 12/11/2012 09:36 PM, Dav Glass wrote:

How does it crash? Can you paste the error output? Mine serves properly.


Reply to this email directly or view it on GitHub
#33 (comment).

Owner

davglass commented Dec 11, 2012

Make sure you don't have any other "stray" node servers sitting around (from a previous crash) ps ax | grep node. It looks like you might have some, since the ports should be 5000, 5001 & 5002 not 5000, 5003 & 5004.

Owner

davglass commented Dec 11, 2012

Also, is this on your repo? Can you point me to it so I can clone it to test with..

Satyam commented Dec 11, 2012

https://github.com/Satyam/yui3-new-gallery

On 12/11/2012 09:57 PM, Dav Glass wrote:

Also, is this on your repo? Can you point me to it so I can clone it
to test with..


Reply to this email directly or view it on GitHub
#33 (comment).

Satyam commented Dec 11, 2012

I killed all the left over processes and run it again, with the same
result. Anyway, the very first time I run it, the user guide link was
the first I tried, and that was the first time I had run yogi today, so
it was fresh. The left-overs were after that crash, they weren't from
earlier versions.

On 12/11/2012 09:56 PM, Dav Glass wrote:

Make sure you don't have any other "stray" node servers sitting around
(from a previous crash) |ps ax | grep node|. It looks like you might
have some, since the ports should be |5000|, |5001| & |5002| not
|5000|, |5003| & |5004|.


Reply to this email directly or view it on GitHub
#33 (comment).

Owner

davglass commented Dec 12, 2012

Parse error in: src/gallery-md-button-group/docs/component.json

Using yogi serve --debug would show this.

I'm adding an error output handler to the Selleck server under the hood to display errors like this in the future.

Owner

davglass commented Dec 12, 2012

This is in yogi@0.0.52.

Satyam commented Dec 12, 2012

Actually, now that I see the error, I guess that you don't need to
bother. This error was due to the yogi update process that didn't strip
out the newlines from the description field received from the current
gallery. With that taken care of, this error shouldn't happen at all.

On 12/12/2012 05:39 PM, Dav Glass wrote:

Parse error in: |src/gallery-md-button-group/docs/component.json|

Using |yogi serve --debug| would show this.

I'm adding an error output handler to the Selleck server under the
hood to display errors like this in the future.


Reply to this email directly or view it on GitHub
#33 (comment).

Owner

davglass commented Dec 12, 2012

It "could" still happen if people hand write their own component.json files, so I left it in to throw the error to stdout so they can see their issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment