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
Ivan Matkov
01/25/2024, 6:45 PM
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
Alexander Maryanovsky
01/25/2024, 6:46 PM
find . | grep .DS_Store
π 1
m
Michael Paus
01/25/2024, 6:50 PM
Found it and fixed it. Thanks. Now the build works again. Hopefully that gets fixed soon.
k
Konstantin Tskhovrebov
01/25/2024, 8:46 PM
it is fixed already. will be available in a next release