Path issue in intelliJ 2024.3 version while extracting the dependencies of a inellij Plugin
Hi Team
i need some help in fixing some issue, we are getting an exception while binding a intellij plugin, and it is only in Windows Os with upgraded version of intelliJ 2024.3. there is some issue while extracting the dependencies into a temp folder and it is saying there is no such file, the same functionality is working fine intelliJ 2024.2 version of windows but not in new version.
Files.copy() is java function which extracts and copies the jars into a temp directory and while extracting jars we are getting the source jar path with back slashes but in older versions we are getting with forward slashes and saying there is no such file. eg; META\LIB\ABC.JAR (NEW VERSION)
META/LIB/ABC.JAR (OLD VERSION)
So, i tried doing string manipulation from backward slashes to forward slashes. but again when we are passing it to Files.copy() it is automatically changes back to backward slashes.
this issue we are facing when we upgraded the intellij verison seems like there is a change from intellij side. it will be helpfull to me if you can help me to fix this and let me know the changes from your side.
FYI : java.lang.IllegalStateException: Unable to extract plugin dependency: META-INF/lib/force-apex-api-52.0.0.jar at
Caused by: java.nio.file.NoSuchFileException: META-INF\lib\force-apex-api-52.0.0.jar at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85) at jva.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.WindowsFileCopy.copy(WindowsFileCopy.java:108)at java.base/sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:282) at com.intellij.platform.core.nio.fs.DelegatingFileSystemProvider.copy(DelegatingFileSystemProvider.java:190)at java.base/java.nio.file.Files.copy(Files.java:1304) at org.sonarsource.sonarlint.core.plugin.commons.loading.PluginInstancesLoader.extractFile(PluginInstancesLoader.java:139)
请先登录再写评论。