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

Error when creating new controller #4

Closed
winterlightning opened this issue Jul 4, 2011 · 4 comments
Closed

Error when creating new controller #4

winterlightning opened this issue Jul 4, 2011 · 4 comments

Comments

@winterlightning
Copy link

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: EBADF, Bad file descriptor '/Users/raywang/spineapps/my_app/app/controllers/users.coffee'
at Object.openSync (fs.js:221:18)
at Object.writeFileSync (fs.js:483:15)
at [object Object]. (/usr/local/lib/node_modules/spine.app/bin/spine:59:10)
at Array.forEach (native)
at [object Object].write (/usr/local/lib/node_modules/spine.app/bin/spine:48:14)
at Object.controller (/usr/local/lib/node_modules/spine.app/bin/spine:102:42)
at Object. (/usr/local/lib/node_modules/spine.app/bin/spine:116:21)
at Module._compile (module.js:407:26)
at Object..js (module.js:413:10)
at Module.load (module.js:339:31)

Any ideas? I tried to install it twice, once with npm install spine.app. Another time with git clone of this project and "npm install ."

Thanks!

@maccman
Copy link
Member

maccman commented Jul 4, 2011

That's a weird one - does the file exist and is readable?

On Sun, Jul 3, 2011 at 10:58 PM, winterlightning <
[email protected]>wrote:

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: EBADF, Bad file descriptor
'/Users/raywang/spineapps/my_app/app/controllers/users.coffee'
at Object.openSync (fs.js:221:18)
at Object.writeFileSync (fs.js:483:15)
at [object Object].
(/usr/local/lib/node_modules/spine.app/bin/spine:59:10)
at Array.forEach (native)
at [object Object].write
(/usr/local/lib/node_modules/spine.app/bin/spine:48:14)
at Object.controller
(/usr/local/lib/node_modules/spine.app/bin/spine:102:42)
at Object.
(/usr/local/lib/node_modules/spine.app/bin/spine:116:21)
at Module._compile (module.js:407:26)
at Object..js (module.js:413:10)
at Module.load (module.js:339:31)

Any ideas? I tried to install it twice, once with npm install spine.app.
Another time with git clone of this project and "npm install ."

Thanks!

Reply to this email directly or view it on GitHub:
https://github.com/maccman/spine.app/issues/4

Alex MacCaw

+12147175129
@maccman

http://alexmaccaw.co.uk | http://www.leadthinking.com | http://socialmod.com

@winterlightning
Copy link
Author

The file doesn't exist, since it is created on the command. I am executing the line:

spine controller users

From the README.

@colwilson
Copy link

yes just seen this too even if I create controllers folder:

col@col-samsung ~/Projects/nodeplayground/app $ spine controller users

node.js:180
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: EBADF, Bad file descriptor '/home/col/Projects/nodeplayground/app/app/controllers/users.coffee'
at Object.openSync (fs.js:221:18)
at Object.writeFileSync (fs.js:575:15)
at [object Object]. (/home/col/Projects/nodeplayground/node_modules/spine.app/bin/spine:59:10)
at Array.forEach (native)
at [object Object].write (/home/col/Projects/nodeplayground/node_modules/spine.app/bin/spine:48:14)
at Object.controller (/home/col/Projects/nodeplayground/node_modules/spine.app/bin/spine:106:42)
at Object. (/home/col/Projects/nodeplayground/node_modules/spine.app/bin/spine:120:21)
at Module._compile (module.js:411:26)
at Object..js (module.js:450:10)
at Module.load (module.js:339:31)

col@col-samsung ~/Projects/nodeplayground/app $ mkdir controllers
col@col-samsung ~/Projects/nodeplayground/app $ spine controller users

node.js:180
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: EBADF, Bad file descriptor '/home/col/Projects/nodeplayground/app/app/controllers/users.coffee'
at Object.openSync (fs.js:221:18)
at Object.writeFileSync (fs.js:575:15)
at [object Object]. (/home/col/Projects/nodeplayground/node_modules/spine.app/bin/spine:59:10)
at Array.forEach (native)
at [object Object].write (/home/col/Projects/nodeplayground/node_modules/spine.app/bin/spine:48:14)
at Object.controller (/home/col/Projects/nodeplayground/node_modules/spine.app/bin/spine:106:42)
at Object. (/home/col/Projects/nodeplayground/node_modules/spine.app/bin/spine:120:21)
at Module._compile (module.js:411:26)
at Object..js (module.js:450:10)
at Module.load (module.js:339:31)

@winterlightning
Copy link
Author

No longer there in the latest version, finally got everything working

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

4 participants