profile
viewpoint

Ask questions[Bug] If there is a space in the ADB path, it will not work properly

set .zshrc PATH="${PATH}":"/Volumes/Macintosh HD/Users/foo/Library/Android/sdk/platform-tools"

Run Debug Android

Debug output

<details> <summary>Debug Console</summary>

デバッグできませんでした。コマンド '/Volumes/Macintosh HD/Users/foo/Library/Android/sdk/platform-tools/adb devices' の実行中にエラーが発生しました : Command failed: /Volumes/Macintosh HD/Users/foo/Library/Android/sdk/platform-tools/adb devices
/bin/sh: /Volumes/Macintosh: No such file or directory```

Environment

  • React Native Tools extension version: 0.16.0
microsoft/vscode-react-native

Answer questions SounD120

@yuki2006 We fixed that situation and now path acquired from sdk.dir will be enclosed in quotation marks when executing any command. This should help to avoid such situations in future. This fix will be available in the next extension release.

useful!

Related questions

Error while executing command 'react-native.cmd run-android --no-packager' (error code 101) hot 4
Error while executing command 'react-native run-ios --simulator --no-packager' hot 2
Cannot read property 'getCurrentUserAsync' of undefined hot 1
Expo app doesn't connect to packager hot 1
Current workspace does not contain React Native projects hot 1
Could not debug - error code 604 hot 1
Current workspace does not contain React Native projects hot 1
[Bug][Expo] XDLError: packagerPort must be an integer - vscode-react-native hot 1
Version 0.13 breaks running packager from VS Code from different folder hot 1
Error while executing command 'react-native.cmd run-android --no-packager': Error while executing command 'react-native.cmd run-android --no-packager' (error code 101) hot 1
Starting React packager from VSCode fails hot 1
Can't attach packager for debugging hot 1
Cannot bind listener: operation not permitted hot 1
Not all success patterns were matched. (error code 712) hot 1
Current workspace does not contain React Native projects hot 1
Github User Rank List