Skip to content

cli parsing fails on newline #6

Open

Description

@jandrieu

typing ['reset'] into the CLI gets the following error:

["fatal","unknown_error","SyntaxError: Unexpected token '\n    at Object.parse (native)\n    at Loop (eval at <anonymous> (/node_modules/couchjs/cli.js:77:21), <anonymous>:1559:16)\n    at eval (eval at <anonymous> (node_modules/couchjs/cli.js:77:21), <anonymous>:1576:1)\n    at node_modules/couchjs/cli.js:80:24"]

I'm not sure if couch's main is expected to clean up the \n or if the CLI should... seems like the main.js api actually requires the \n, but it certainly isn't working.

Activity

  1. abdulbarik commented on Aug 22, 2016

    @abdulbarik

    @jandrieu Did you resolved this issue? I am also getting the same things.
    I am using it with node@0.8.28

  2. jandrieu commented on Aug 22, 2016

    @jandrieu
    Author

    @abdulbarik Unfortunately, I don't recall. We did get couch working, but not sure how we got past this particular item.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions