Bug: Sentry Module Collection Script Fails with Spaces in Node Path#4559
Bug: Sentry Module Collection Script Fails with Spaces in Node Path#4559krystofwoldrich merged 6 commits intogetsentry:mainfrom
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 |
krystofwoldrich
left a comment
There was a problem hiding this comment.
Looks good. 🚀
Thank you for the fix.
📢 Type of change
📜 Description
nodepoints 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 spaceFixed the Sentry module collection script failing when Node binary path contains spaces (common when using node version managers like
fnmon macOS where paths contain "Application Support").Changed node binary existence check from
type/-ftocommand -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
fnmdue 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
sendDefaultPIIis 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