Canvas not releasing shader files after read
Draylar opened this issue ยท 0 comments
Versions:
- Canvas 0.7.354
- Frex 1.0
- Minecraft 1.14.4 with API 0.4.1+245
Issue:
You can't reload shaders in IntelliJ because Canvas doesn't "let go" of the shader files after reading them. The issue seems to be an InputStream that isn't closed.
Error: Internal error: (java.io.FileNotFoundException) C:\Users\Draylar\Fabric Projects\shaders\build\classes\java\main\assets\canvas\shaders\default.frag (Access is denied)
Steps to Reproduce:
- create a simple shader override at
resources/assets/canvas/shaders/default.frag
- load into the game in debugging mode
- change the fragment shader
- click build -> rebuild project near the top right of IntelliJ
[error occurs here, which means you can't f3+t/f3+a to reload]