Tool | Version |
---|---|
Gradle | 8.13 |
IntelliJ Platform Gradle Plugin | 2.5.0 and 2.6.0 |
Unsure if this is the right place for this, but the IntelliJ Platform Plugin Template’s unit tests break when using 2025.1:
platformVersion = 2025.1.2
The error is:
File accessed outside allowed roots: file://C:/my-plugin/src/test/testData/rename/foo_after.xml;
Allowed roots: [C:/my-plugin/build, C:/Users/Developer/AppData/Local/Temp/unitTest_rename_2ydIKE34lnVN4JL2EH8kyEKTRSC, C:/my-plugin/build/idea-sandbox/IC-2025.1.2/config-test, /src, C:/Users/Developer, C:/Users/Developer/.gradle, C:/Users/DEVELO~1/AppData/Local/Temp/, C:/Users/Developer/.gradle/caches/8.13/transforms/38dfb955ba04a17b7e91cc9a1483da89/transformed/ideaIC-2025.1.2-win, C:/Users/Developer/.gradle/caches/8.13/transforms/38dfb955ba04a17b7e91cc9a1483da89/transformed/ideaIC-2025.1.2-win/jbr, C:/Users/Developer/AppData/Local/Temp/unitTest_xMLFile_2ydIJbfqGOguiCkk94YFjylxVvU]
at com.intellij.openapi.vfs.newvfs.impl.VfsRootAccess.assertAccessInTests(VfsRootAccess.java:121)
at com.intellij.openapi.vfs.newvfs.impl.VirtualDirectoryImpl.findInPersistence(VirtualDirectoryImpl.java:202)
at com.intellij.openapi.vfs.newvfs.impl.VirtualDirectoryImpl.doFindChild(VirtualDirectoryImpl.java:138)
at com.intellij.openapi.vfs.newvfs.impl.VirtualDirectoryImpl.findChild(VirtualDirectoryImpl.java:84)
at com.intellij.openapi.vfs.newvfs.impl.VirtualDirectoryImpl.refreshAndFindChild(VirtualDirectoryImpl.java:387)
at com.intellij.openapi.vfs.newvfs.VfsImplUtil.refreshAndFindFileByPath(VfsImplUtil.java:118)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.refreshAndFindFileByPath(LocalFileSystemBase.java:67)
at com.intellij.openapi.vfs.impl.VirtualFileManagerImpl.findByNioPath(VirtualFileManagerImpl.java:394)
...
at x.y.z.MyPluginTest.testRename(MyPluginTest.kt:29)