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 calling "hoodie start" from Grunt task #106

Closed
ro-ka opened this issue Jul 15, 2013 · 4 comments
Closed

Error when calling "hoodie start" from Grunt task #106

ro-ka opened this issue Jul 15, 2013 · 4 comments

Comments

@ro-ka
Copy link

ro-ka commented Jul 15, 2013

When executing hoodie from Grunt, there is a problem with stdout:

Running "concurrent:server" (concurrent) task

    > gifalicious@1.0.0 start /Users/katzki/Entwicklung/gifalicious
    > node node_modules/hoodie-app/bin/start

        Initializing...
        CouchDB started: http://127.0.0.1:6003
        >> TypeError: Object #<Socket> has no method 'clearLine'
    >>     at draw (/Users/katzki/Entwicklung/gifalicious/node_modules/hoodie-app/lib/hconsole.js:68:24)
    >>     at wrapper [as _onTimeout] (timers.js:252:14)
    >>     at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)

    Stopping CouchDB...
        >> npm
        >>
        >> ERR! weird error
        >> 1
        >> npm
        >> ERR! not ok code 0

I'm using grunt-bg-shell with the following options:

bgShell: {
  hoodieStart: {
    cmd: 'hoodie start',
    bg: true,
    stdout: true
  }
}
@ro-ka
Copy link
Author

ro-ka commented Jul 15, 2013

Commenting out the code in draw() in /lib/hconsole.js:68 lets hoodie start.

@gr2m
Copy link
Member

gr2m commented Jul 15, 2013

robert, could you make a test repository that one could quickly git clone && npm install? I'll ask Jan or Caolan to look into it as this would be really valuable for us as well, for example for pocket

@ro-ka
Copy link
Author

ro-ka commented Jul 16, 2013

I've set up a repository to check it out: ro-ka/hoodie-grunt-test. Follow the readme.

Listed my problems on the bottom in the readme:

  • How to get the WWW port of hoodie? Want to redirect api calls to it. Currently hard coded.
  • no-open-browser in hoodie start has no effect
  • And the problem because of this issue here. :)

Shall I open the other two problems as issues, too?

@svnlto
Copy link
Member

svnlto commented Jul 16, 2013

@ro-ka thanks for the test repo.
fixed it here. Tried and tested with your test code, so should be all good now.
Closing this for now, please re-open if you bump into more issues with this.

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

3 participants