Write permissions is not checked before generation, it should throw the error but the success message is displayed now.
Under Linux I have to fix the ownership of generated files to my local user in order to work with them. And also all files are created with 644 mode. If they were created with 664, I could add myself to the webserver group and edit them without manually fixing permissions.