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

[WSL] Fail gracefully upon detection of invalid environment. #196

Closed
kdewald opened this issue Feb 9, 2023 · 2 comments
Closed

[WSL] Fail gracefully upon detection of invalid environment. #196

kdewald opened this issue Feb 9, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@kdewald
Copy link
Member

kdewald commented Feb 9, 2023

Quick summary for people who are just getting to this issue for the first time:

  • WSL does not support Bluetooth. It's currently a limitation on their side, nothing we can do.
  • However, SimpleBLE (and any derived bindings) are not handling the case gracefully, instead crashing with an "Object not Initialized" error.

This issue is designed to group the necessary work in detecting the condition and causing the code to fail gracefully.

@kdewald kdewald added the bug Something isn't working label Feb 9, 2023
@kdewald kdewald added this to the SimpleBLE v0.6 milestone Feb 9, 2023
@kdewald
Copy link
Member Author

kdewald commented Feb 9, 2023

For reference, I plan to implement the following check: microsoft/WSL#423

@kdewald kdewald changed the title [WSL] Fail gracefully upon detection of invalid argument. [WSL] Fail gracefully upon detection of invalid environment. Feb 9, 2023
@kdewald
Copy link
Member Author

kdewald commented Feb 10, 2023

Although not exactly the full explicit solution, this should be enough to detect this problem quickly: #198

@kdewald kdewald closed this as completed Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant