I noticed that when trying to read in the gradle file, when I was using a regular string vs the string that was coming in from the get_gradle_file_path I wasn't getting errors like Invalid argument @ rb_sysopen so I tried removing the shellescape portion and it got rid of the errors.
problem is (This might only be a windows thing) shellescape creates escaped double quotes:
"\"C:/Users/Guy/Documents/Cool Project/project/android/build.gradle\""
vs
"C:/Users/Guy/Documents/Cool Project/project/android/build.gradle"
and so causes issues when File.open or File.new tries to read it. Also by design the File class doesn't need shell escaped strings.
Made a pull request to fix it, not sure how many other people (if anyone) encountered this but it's a pretty straightforward fix
Hey
I noticed that when trying to read in the gradle file, when I was using a regular string vs the string that was coming in from the
get_gradle_file_path
I wasn't getting errors likeInvalid argument @ rb_sysopen
so I tried removing theshellescape
portion and it got rid of the errors.problem is (This might only be a windows thing)
shellescape
creates escaped double quotes:"\"C:/Users/Guy/Documents/Cool Project/project/android/build.gradle\""
vs"C:/Users/Guy/Documents/Cool Project/project/android/build.gradle"
and so causes issues when File.open or File.new tries to read it. Also by design the
File
class doesn't need shell escaped strings.Made a pull request to fix it, not sure how many other people (if anyone) encountered this but it's a pretty straightforward fix