-
-
Notifications
You must be signed in to change notification settings - Fork 344
Bug: Sentry Module Collection Script Fails with Spaces in Node Path #4559
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
Conversation
Also, The |
Hi, thank you for your contribution! ## Unreleased
### Features
- Adds Sentry Android Gradle Plugin as an experimental Expo plugin feature ([#4440](https://github.com/getsentry/sentry-react-native/pull/4440))
To enable the plugin add the `enableAndroidGradlePlugin` in the `@sentry/react-native/expo` of the Expo application configuration.
"plugins": [
[
"@sentry/react-native/expo",
{
"experimental_android": {
"enableAndroidGradlePlugin": true,
}
}
],
To learn more about the available configuration options visit [the documentation](https://docs.sentry.io/platforms/react-native/manual-setup/expo/expo-sagp/).
### Fixes
+- Sentry Module Collection Script Fails with Spaces in Node Path on iOS ([#4559](https://github.com/getsentry/sentry-react-native/pull/4559))
- Various crashes and issues of Session Replay on Android. See the Android SDK version bump for more details. ([#4529](https://github.com/getsentry/sentry-react-native/pull/4529))
|
I see no issues with the PR!, once the changelog is altered we could merge this PR 😊 |
Added, thanks! Do you happen to have any insight why exiting with a zero status code ( This is bound to happen again if the Build command $ eas build -p ios --local |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. 🚀
Thank you for the fix.
📢 Type of change
📜 Description
node
points to a folder with spaces in ite.g.
$ which node /Users/user/Library/Application Support/fnm/node-versions/v22.1.0/installation/bin/node # ^^^ notice the space
Fixed the Sentry module collection script failing when Node binary path contains spaces (common when using node version managers like
fnm
on macOS where paths contain "Application Support").Changed node binary existence check from
type
/-f
tocommand -v
, which properly handles paths with spaces and is more reliable for executable detection.💡 Motivation and Context
The script was failing during iOS builds when using node version managers like
fnm
due to spaces in the Node binary path (e.g.,/Users/username/Library/Application Support/fnm/...
). This affected developers using node version managers on macOS.💚 How did you test it?
Tested on macOS with:
fnm
(path containing spaces)📝 Checklist
sendDefaultPII
is enabled🔮 Next steps
N/A - This is a self-contained fix for the node binary path detection issue.
may fix the following issues:
expo/eas-cli#1751