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

fix(nrf52): make node-lzma an optional dep, handle dynamic import #140

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

HipsterBrown
Copy link
Owner

For development environments that don't have xz utils available for the node-lzma native bindings, that dependency is now optional until attempting to setup the nrf52 tooling on Linux or MacOS. If node-lzma is not available, a helpful error message will be displayed.

I've also added a new "Troubleshooting" page that can be indexed to help folks find solutions to known issues.

Screenshot 2023-08-18 at 4 43 33 PM

In the future, it could be helpful to prompt xs-dev users to automatically install the XZ utils and attempt to install node-lzma after; rather than just display an error. I'm not sure how to do this without more experimentation, so this patch will suffice for the time being.

For development environments that don't have xz utils available for the node-lzma native bindings, that dependency is now optional until attempting to setup the nrf52 tooling on Linux or MacOS. If node-lzma is not available, a helpful error message will be displayed.
@HipsterBrown HipsterBrown merged commit f227830 into main Aug 18, 2023
3 checks passed
@HipsterBrown HipsterBrown deleted the nhehr/lzma-optional-install branch August 18, 2023 20:51
@phoddie
Copy link
Contributor

phoddie commented Aug 18, 2023

This is awesome and a great model for future troubleshooting posts. Thank you!

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

Successfully merging this pull request may close these issues.

2 participants