-
Notifications
You must be signed in to change notification settings - Fork 90
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
Bleat required regardless of BLE flag in CLI #37
Conversation
Can we not just trap this exception and carry on? This will get used a lot more with puck.js, and I'd rather not have to make people explicitly add --ble every time they use the ide or command-line tools |
The If this isn't the desired behavior of the Either way the pull request fixes the behavior that's described in |
Yeah, the So the CLI actually works fine? I'm not sure why the -1 error code, but that could be because it hit some other snag later down (like not finding a port?). Are you sure it's not just the |
Any thoughts on this? Is it likely to just be the console.error? |
I'll take a look soon! Been a little busy! |
Hi there, There still was a stack trace without the console.error. If you check the last commit, I've changed the So doing |
Great, thanks! |
I'll add an issue about the stack trace though - I'll have to look into why that's happening |
Can you ping me when you publish the module? :) |
Ping! |
Problem:
On Windows, when a non-compatible USB Bluetooth 4.0 wasn't found, it caused a massive stage trace to appear regardless if you wanted to use
ble
flag.The problem was that bleat was always being "tried" to be included outside of the
checkInit()
thus always being required and that thedefaultValue
was alwaystrue
.Solution:
Set
defaultValue
to befalse
and includebleat
only when necessary.I also did a version bump to 0.0.21.