I'm trying out the new IR JS kotlin compiler. I lo...
# javascript
n
I'm trying out the new IR JS kotlin compiler. I love it so far, but I'm hitting a big problem. If I try to recompile I get the following error:
Copy code
> Task :compileKotlinJs FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/6.1/userguide/command_line_interface.html#sec:command_line_warnings>
5 actionable tasks: 1 executed, 4 up-to-date
e: java.nio.file.FileSystemException: ...\build\classes\kotlin\main\default\ir\bodies.knb: The process cannot access the file because it is being used by another process.

	at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
	at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
	at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:105)
If I force stop the openjdk platform binary process, it works again.
b
Maybe using
--no-daemon
option when runing gradle could help you. Please let us know if it helps.
n
Yeah, disabling the daemon works around the issue, thanks. It adds about 1s to the build time.
b
Cool, thanks
BTW, could you please share something about your experience with IR BE?