I am getting an error that my script does not have permission to access Google Drive, and I'm not offered a way to grant access as I have seen before.
You do not have permission to call DriveApp.getFilesByName. Required permissions: https://www.googleapis.com/auth/drive (line 203, file "Code")
The problem started after authorizing clasp so I could develop locally. The same code worked before and does work in a backup copy of the Sheet.
Viewing my permissions here, it says that the project does have Drive permission even though I'm getting the error. https://myaccount.google.com/permissions
I tried withdrawing permission for the project and adding it back. When I did that, it only offered the option to grant Google Docs permission, not Google Drive permission.
On the assumption that changes to code trigger the permission granting dialog, I also tried removing the code that accesses Drive and putting it back but that didn't help either.