The new resource handling in 1.6.0-beta01 stumbles...
# compose-desktop
m
The new resource handling in 1.6.0-beta01 stumbles over this on a Mac.
Copy code
> Task :shared:generateComposeResClass
e: GenerateResClassTask was failed:
java.lang.IllegalStateException: .DS_Store is not directory! Raw files should be placed in 'composeResources/files' directory.
        at org.jetbrains.compose.resources.GenerateResClassTask.generate(GenerateResClassTask.kt:41)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
 ...
These dot files, which are automatically generated by Macs, should just be ignored. Even worse, I have no idea where to search for this dot file. I can’t find any in the resource folders.
i
Thanks for the report (cc @Konstantin Tskhovrebov ) Until the fix: The
A
flag of the
ls
command will include invisible files like
.DS_Store
in the listing.
ls -lA
The
rm
command can remove a file.
rm .DS_Store
Any change you make in the Finder window (such as adjusting the column width) will create a new
.DS_Store
file if it doesn't exist.
🙏 1
a
find . | grep .DS_Store
🙏 1
m
Found it and fixed it. Thanks. Now the build works again. Hopefully that gets fixed soon.
k
it is fixed already. will be available in a next release
🙌 2
🙏 1