I'm trying to start developing a new plugin. I started from the Gradle template provided in the docs: https://github.com/JetBrains/intellij-platform-plugin-template
Clone the repo, modify it a bit, start the IDE. Works great, nice. Change something in the plugin's code, then run the buildPlugin Gradle task. The sandbox ide will correctly reload and show the changes.
But the IntelliJ IDEA Community version in it is a year old:
platformVersion = 2020.3.4
So maybe I should change that to a newer one. Let's say 2021.3.1 or any other 2021.x version.
https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties I don't see anything in the linked docs about this new version would be unusable/incompatibile. This should work, right?
I changed the version, synced the project, restarted the sandbox IDE. Now if I run the buildPlugin task, it fails with an error:
Execution failed for task ':prepareSandbox'.
> Could not copy file 'C:\Develop\temporary\intellij-plugin-test\build\libs\intellij-plugin-test-0.0.1.jar' to 'C:\Develop\temporary\intellij-plugin-test\build\idea-sandbox\plugins\intellij-plugin-test\lib\intellij-plugin-test-0.0.1.jar'.
The requested operation cannot be performed on a file with a user-mapped section open.
If I change back the version to 2020.3.4, and start the test again, the buildPlugin finishes without problem, so it's not about wrong cached files or something like that.
I wonder if this is a bug or just I'm trying to use an IDE version which is somehow not supported for plugin development?