You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/08/30 16:54:38 UTC

[GitHub] [cordova-android] Lindsay-Needs-Sleep opened a new issue #824: getASPath.bat fails for project paths with parenthesis

Lindsay-Needs-Sleep opened a new issue #824: getASPath.bat fails for project paths with parenthesis
URL: https://github.com/apache/cordova-android/issues/824
 
 
   # Bug Report
   Suddenly I couldn't build my project because it was coming at me with this error:
   ```
   Could not find an installed version of Gradle either in Android Studio,
   or on your system to install the gradle wrapper. Please include gradle
   in your path, or install Android Studio
   ```
   After a bit of digging my guess was because I had recently renamed my project folder to have parenthesis.  (eg. "myCordova(chromecast)")
   Removing the parenthesis made it work again.
   
   ## Problem
   I believe the problem lies in myCordova(chromecast)\platforms\android\cordova\lib\getASPath.bat` ([getASPath.bat on github](https://github.com/apache/cordova-android/blob/master/bin/templates/cordova/lib/getASPath.bat))
   
   When I uncomment lines 93 and 94 from `myCordova(chromecast)\platforms\android\cordova\lib\check_reqs.js`
   ```
   92        var result = child_process.spawnSync(path.join(__dirname, 'getASPath.bat'));
   93        console.log('result.stdout =' + result.stdout.toString());
   94        console.log('result.stderr =' + result.stderr.toString());
   ```
   I get this output:
   ```
   result.stdout =
   result.stderr ='S:\Projects\myCordova' is not recognized as an internal or external command,
   ```
   
   So it looks like getASPath.bat does not handle the parenthesis well (since it truncated the path in the output).
   
   
   ### Command or Code
   `cordova run android`
   
   
   
   ### Environment, Platform, Device
   Windows, Android
   
   
   
   ### Version information
   https://github.com/apache/cordova-android.git#4cf3dcfaae6dc82ddb1ccf439d209cbcc2f474a0
   (getASPath.bat is the same on this commit as it is on master.)
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org