title: Google Apps Script DriveApp.getFileById Stuck
body: <p>I'm working on a project that requires finding the parent folder of a file. I've been trying to do this by using <code>DriveApp.getFileById().getParents()</code>. When it runs, however, it appears to get stuck in an infinite loop: the program never finishes and never produces an error. I've isolated the problem to the following lines:</p>
  
  <pre><code>var updtSS = SpreadsheetApp.getActiveSpreadsheet();
  var newGen = DriveApp.getFileById(updtSS.getId());
  </code></pre>
  
  <p>The debugger gets stuck on the second line and just tries to run it over and over again, without ever advancing or actually executing it. Can anyone spot what I'm doing wrong? Is this a bug with Google Script?</p>
  
  <p><em>Edit</em>: It looks like it was a problem with the command itself, which Google has fixed.</p>