Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

nvl setup throws SyntaxError: Invalid regular expression #51

Open
ikb42 opened this issue Sep 29, 2015 · 5 comments
Open

nvl setup throws SyntaxError: Invalid regular expression #51

ikb42 opened this issue Sep 29, 2015 · 5 comments

Comments

@ikb42
Copy link

ikb42 commented Sep 29, 2015

Windows:

C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\node_modules\rx-lite\rx.lite.js:75
throw e;
^
SyntaxError: Invalid regular expression: /.{1,0}/: numbers out of order in {} quantifier.
at new RegExp (native)
at breakLines (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\lib\utils\screen-manager.js:108:15)
at ScreenManager.render (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\lib\utils\screen-manager.js:55:22)
at Prompt.inquirer.prompt.prompts.input.render (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\lib\plugins\prompt.js:440:17)
at Prompt._run (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\lib\prompts\input.js:49:8)
at Prompt.run (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\lib\prompts\base.js:57:8)
at Object. (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\lib\ui\prompt.js:84:12)
at module.exports (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\node_modules\run-async\index.js:15:21)
at AnonymousObservable.__subscribe (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\lib\utils\utils.js:16:7)
at AnonymousObservable.tryCatcher (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\node_modules\rx-lite\rx.lite.js:63:31)
at setDisposable (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\node_modules\rx-lite\rx.lite.js:5741:44)
at AnonymousObservable.innerSubscribe as _subscribe
at AnonymousObservable.Rx.Observable.observableProto.subscribe.observableProto.forEach (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\node_modules\rx-lite\rx.lite.js:1604:19)
at AnonymousObservable.__subscribe (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\node_modules\rx-lite\rx.lite.js:2112:21)
at AnonymousObservable.tryCatcher (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\node_modules\rx-lite\rx.lite.js:63:31)
at setDisposable (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\node_modules\rx-lite\rx.lite.js:5741:44)
at AnonymousObservable.innerSubscribe as _subscribe
at AnonymousObservable.Rx.Observable.observableProto.subscribe.observableProto.forEach (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\node_modules\rx-lite\rx.lite.js:1604:19)
at MergeObserver.handleSubscribe (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\node_modules\rx-lite\rx.lite.js:2910:28)
at MergeObserver.onNext (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\node_modules\rx-lite\rx.lite.js:2916:16)
at MergeObserver.tryCatcher (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\node_modules\rx-lite\rx.lite.js:63:31)
at AutoDetachObserverPrototype.next (C:\Users\Ivan\AppData\Roaming\npm\node_modules\anvil-connect-cli\node_modules\inquirer\node_modules\rx-lite\rx.lite.js:5782:51)

@christiansmith
Copy link
Member

Appears to be an issue with a dependency of a dependency.

Just a note, @ikb42, you can expect to run into other issues like this on Windows, since we don't yet officially support it. PRs are very welcome if you're able to sort it out yourself.

@adalinesimonian
Copy link
Member

@ikb42 Can you provide the input you entered into nvl setup, minus any confidential and/or personal details?

Also, when did this error occur? After a certain question? At the start of the command?

@ikb42
Copy link
Author

ikb42 commented Sep 29, 2015

No input, just nvl setup, enter, and then bang.

@adalinesimonian
Copy link
Member

@ikb42 It looks like the problem is that Inquirer is unable to obtain the CLI width, and tries to construct an invalid regular expression as a result. I've gone ahead and reported it on the Inquirer repository.

@christiansmith
Copy link
Member

Thanks @vsimonian!

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

No branches or pull requests

3 participants