You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reload checks when reloading due to missing ios/android directory (#1033)
Currently, when the `ios`/`android` directory is missing, the user is
prompted to reload the IDE, but that action doesn't re-check for this
directory, resulting in the same error even if the directory was
created. This PR fixes that.
### How Has This Been Tested:
- open a project
- remove the `ios` directory
- open Radon IDE with an `ios` simulator
- the "`ios` directory is missing" error should appear
- restore the `ios` directory
- click reload
- the error should not appear again
letdescription="Open build logs to find out what went wrong.";
59
-
letactions=<BuildErrorActions/>;
60
66
61
67
if(!ios?.scheme&&xcodeSchemes.length>1){
62
68
description=`Your project uses multiple build schemas. Currently used scheme: '${xcodeSchemes[0]}'. You can change it in the launch configuration.`;
@@ -68,6 +74,10 @@ export function useBuildErrorAlert(shouldDisplayAlert: boolean) {
68
74
){
69
75
description=
70
76
'Your project does not have "android" directory. If this is an Expo project, you may need to run `expo prebuild` to generate missing files, or configure external build source using launch configuration.';
77
+
onReload=()=>{
78
+
runDiagnostics();
79
+
project.restart(false);
80
+
};
71
81
}
72
82
73
83
if(
@@ -76,6 +86,10 @@ export function useBuildErrorAlert(shouldDisplayAlert: boolean) {
76
86
){
77
87
description=
78
88
'Your project does not have "ios" directory. If this is an Expo project, you may need to run `expo prebuild` to generate missing files, or configure external build source using launch configuration.';
89
+
onReload=()=>{
90
+
runDiagnostics();
91
+
project.restart(false);
92
+
};
79
93
}
80
94
81
95
constisEasBuild=
@@ -89,9 +103,13 @@ export function useBuildErrorAlert(shouldDisplayAlert: boolean) {
89
103
}else{
90
104
description="Your project EAS build has failed, see extension logs to see what went wrong.";
0 commit comments