mytakedotorg / mtdo

The code and tooling which runs mytake.org
https://mytake.org
GNU Affero General Public License v3.0
16 stars 3 forks source link

Factset tooling is flaky about creating an icon #447

Closed nedtwigg closed 4 months ago

nedtwigg commented 4 months ago

The factset tooling fails with

> Could not create task ':gui'.
   > java.nio.file.NoSuchFileException: /Users/ntwigg/.gradle/daemon/6.7/.gradle/icon.png

The problem is that the necessary parent directories do not exist

https://github.com/mytakedotorg/mtdo/blob/e626ce8cbf644dbfe4a126b310d21a8698ceb82f/factset-tooling/src/main/java/org/mytake/factset/gradle/GuiTask.java#L79-L82

The workaround is to create them manually, but it would be better to add icon.getParentFile().mkdirs() or something like that.