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

SyntaxError: Invalid regular expression: /.{1,0}/ #28

Closed
ianbrandt opened this issue Sep 7, 2016 · 8 comments
Closed

SyntaxError: Invalid regular expression: /.{1,0}/ #28

ianbrandt opened this issue Sep 7, 2016 · 8 comments

Comments

@ianbrandt
Copy link

I get the error below trying to use gulp-prompt from within IntelliJ IDEA 2016.2.3 on OS X. It works fine if I invoke the same task via gulp from Terminal.app. It appears a newer build of Inquirer may fix this issue per SBoudrias/Inquirer.js#290.

? Are you sure? (y/N) [14:42:56] '<anonymous>' errored after 35 ms
[14:42:56] SyntaxError: Invalid regular expression: /.{1,0}/: numbers out of order in {} quantifier.
    at new RegExp (native)
    at breakLines (/Users/ibrandt/Development/git/myproject/node_modules/gulp-prompt/node_modules/inquirer/lib/utils/screen-manager.js:108:15)
    at [object Object].ScreenManager.render (/Users/ibrandt/Development/git/myproject/node_modules/gulp-prompt/node_modules/inquirer/lib/utils/screen-manager.js:55:22)
    at Prompt.render (/Users/ibrandt/Development/git/myproject/node_modules/gulp-prompt/node_modules/inquirer/lib/prompts/confirm.js:85:15)
    at Prompt._run (/Users/ibrandt/Development/git/myproject/node_modules/gulp-prompt/node_modules/inquirer/lib/prompts/confirm.js:65:8)
    at Prompt.run (/Users/ibrandt/Development/git/myproject/node_modules/gulp-prompt/node_modules/inquirer/lib/prompts/base.js:57:8)
    at Object.<anonymous> (/Users/ibrandt/Development/git/myproject/node_modules/gulp-prompt/node_modules/inquirer/lib/ui/prompt.js:84:12)
    at module.exports (/Users/ibrandt/Development/git/myproject/node_modules/run-async/index.js:15:21)
    at AnonymousObservable.__subscribe (/Users/ibrandt/Development/git/myproject/node_modules/gulp-prompt/node_modules/inquirer/lib/utils/utils.js:16:7)
    at AnonymousObservable.tryCatcher (/Users/ibrandt/Development/git/myproject/node_modules/rx-lite/rx.lite.js:63:31)
    at setDisposable (/Users/ibrandt/Development/git/myproject/node_modules/rx-lite/rx.lite.js:5741:44)
    at AnonymousObservable.innerSubscribe [as _subscribe] (/Users/ibrandt/Development/git/myproject/node_modules/rx-lite/rx.lite.js:5755:9)
    at AnonymousObservable.Rx.Observable.observableProto.subscribe.observableProto.forEach (/Users/ibrandt/Development/git/myproject/node_modules/rx-lite/rx.lite.js:1604:19)
    at AnonymousObservable.__subscribe (/Users/ibrandt/Development/git/myproject/node_modules/rx-lite/rx.lite.js:2112:21)
    at AnonymousObservable.tryCatcher (/Users/ibrandt/Development/git/myproject/node_modules/rx-lite/rx.lite.js:63:31)
    at setDisposable (/Users/ibrandt/Development/git/myproject/node_modules/rx-lite/rx.lite.js:5741:44)
[14:42:56] 'deploy' errored after 162 ms
@jonasof
Copy link

jonasof commented Oct 8, 2016

Same issue with Netbeans 8.2 terminal (gnu/linux).

giovannigiordano added a commit to giovannigiordano/gulp-prompt that referenced this issue Nov 15, 2016
Older version of inquirer throw in an error exception when running on some terminal in windows 10 as reported here
Freyskeyd#28
@ghost
Copy link

ghost commented Nov 16, 2016

I'm also encountering this issue

@giovannigiordano
Copy link
Contributor

giovannigiordano commented Nov 18, 2016

Update to latest version of InquirerJS, this is a bug of an older version.
I have made a pull request with the fix, but the author has'nt merget it yet.

@jwaltonmedia
Copy link

Any progress on this?

@giovannigiordano
Copy link
Contributor

giovannigiordano commented Dec 7, 2016 via email

@jasondsouza18
Copy link

I had the same problem using Git Bash on Windows 10, problem solved when used Command line.

@shannonlal
Copy link
Collaborator

Is this still an issue? The latest version of gulp-prompt upgraded to version 3 of inquirer.js and wanted to know if anyone is still able to reproduce this.

@shannonlal
Copy link
Collaborator

I am going to close this off since this there seems to be a work around with using command line on windows

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

6 participants