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

inquirer crash #6

Closed
dmiddlecamp opened this issue May 20, 2015 · 4 comments
Closed

inquirer crash #6

dmiddlecamp opened this issue May 20, 2015 · 4 comments
Labels

Comments

@dmiddlecamp
Copy link
Contributor

C:\Users\username>particle setup


_ __ __ _ _ | |() _| | ___ () ___
| '
\ / _` | '
| | |/ __| |/ _ \ | |/ _ \
| |) | (| | | | |_| | (
| | /| | () |
| .
/ ,|| ||||()|__/
|
| https://particle.io/

Setup is easy! Let's get started...
? Hello Stranger! This seems to be your first time here. What would you like to
? Hello Stranger! This seems to be your first time here. What would you like to
? Hello Stranger! This seems to be your first time here. What would you like to
do? Login
Let's get you logged in!
? Please enter your email address: username@gmail.com
? Please enter your password: *********
Successfully completed login!

! PROTIP: Hold the MODE/SETUP button on your device until it blinks blue!
! PROTIP: Please make sure you are connected to the internet.

I have detected a Spark Core connected via USB.
? Would you like to continue with this one? Yes
? Should I scan for nearby Wi-Fi networks? Yes
? Select the Wi-Fi network with which you wish to connect your device: (Use arro
? Select the Wi-Fi network with which you wish to connect your device: lshome
? Should I try to auto-detect the wireless security type? Yes

C:\Users\username\AppData\Roaming\npm\node_modules\particle-cli\node_modules\in
quirer\node_modules\rx\dist\rx.js:579
throw e;
^
TypeError: Cannot call method 'indexOf' of undefined
at Object.inquirer.prompt.when (C:\Users\username\AppData\Roaming\npm\node_
modules\particle-cli\commands\SerialCommand.js:339:60)
at Object.utils.runAsync (C:\Users\username\AppData\Roaming\npm\node_module
s\particle-cli\node_modules\inquirer\lib\utils\utils.js:29:22)
at C:\Users\username\AppData\Roaming\npm\node_modules\particle-cli\node_mod
ules\inquirer\lib\ui\prompt.js:131:13
at tryCatcher (C:\Users\username\AppData\Roaming\npm\node_modules\particle-
cli\node_modules\inquirer\node_modules\rx\dist\rx.js:567:29)
at setDisposable (C:\Users\username\AppData\Roaming\npm\node_modules\partic
le-cli\node_modules\inquirer\node_modules\rx\dist\rx.js:4977:36)
at AnonymousObservable.s [as _subscribe](C:UsersusernameAppDataRoaming
npmnode_modulesparticle-clinode_modulesinquirernode_modulesrxdistrx.js:
4994:11)
at AnonymousObservable.Rx.Observable.observableProto.subscribe.observablePro
to.forEach (C:\Users\username\AppData\Roaming\npm\node_modules\particle-cli\nod
e_modules\inquirer\node_modules\rx\dist\rx.js:2160:19)
at C:\Users\username\AppData\Roaming\npm\node_modules\particle-cli\node_mod
ules\inquirer\node_modules\rx\dist\rx.js:2403:21
at tryCatcher (C:\Users\username\AppData\Roaming\npm\node_modules\particle-
cli\node_modules\inquirer\node_modules\rx\dist\rx.js:567:29)
at setDisposable (C:\Users\username\AppData\Roaming\npm\node_modules\partic
le-cli\node_modules\inquirer\node_modules\rx\dist\rx.js:4977:36)

C:\Users\username>

@brycekahle
Copy link
Contributor

My guess is that this crash wasn't actually in inquirer. Do you have any more details that might help us locate the bug? What version you were running perhaps?

@alexanian
Copy link

I get the same error whenever I try to auto detect the wireless security type. Image shown below:
error

I'm on Windows running git bash as my connection to the particle CLI. I have no trouble if I enter 'n' and select a wireless security type from the dropdown.

@UnidentifiedContributor
Copy link
Contributor

@alexanian, ack!

Do you still get an error if you choose "no" at the prompt for auto-detecting wireless security type?

@alexanian
Copy link

Nope, no issue if I just enter "n" and choose the security from the list.

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

No branches or pull requests

4 participants