Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nettuts tutorial — error from geddy resource todo #276

Closed
case opened this issue Nov 29, 2012 · 2 comments
Closed

nettuts tutorial — error from geddy resource todo #276

case opened this issue Nov 29, 2012 · 2 comments

Comments

@case
Copy link

case commented Nov 29, 2012

Hi there,

I'm going through your nettuts tutorial and am seeing the following:

$ geddy resource todo
[Added] app/models/todo.js

/{path-to-my-geddy-app}/app/models/todo.js:4
    : {type: '', required: true},
    ^
jake aborted.
SyntaxError: Unexpected token :
    at Module._compile (module.js:437:25)
(See full trace by running task with --trace)

When I run the same command with --trace I get another error:

geddy resource todo --trace

/usr/local/share/npm/lib/node_modules/geddy/lib/parseopts.js:107
        } else throw new Error('Unknown option "' + arg + '"');
                     ^
Error: Unknown option "--trace"
    at parse (/usr/local/share/npm/lib/node_modules/geddy/lib/parseopts.js:107:22)
    at Object.<anonymous> (/usr/local/share/npm/lib/node_modules/geddy/bin/cli.js:102:8)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)

Just wondering if I'm doing something wrong, or if the tutorial is out of date, etc. I've got geddy version 0.6.14.

Thanks,
-Eric

@larzconwell
Copy link
Contributor

Hey there Eric!

We had a similar issue a while back that was fixed in commit 7609a49 but it seems I completely forgot to update the resources templates.

Also I believe the Nettuts tutorial is out of date, a more up do date tutorial can be found at http://geddyjs.org/tutorial

larzconwell added a commit that referenced this issue Nov 29, 2012
@larzconwell
Copy link
Contributor

An update, yesterday we cherry-picked the fixing commit to the 0.6 release branch and updated NPM so if you update Geddy through NPM you'll get the fix.

If you have any other question don't hesitate to ask! You can make issues here, we also have a Google Group http://groups.google.com/group/geddyjs, and finally we have an IRC channel called #geddy on freenode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants