There is a bug in this logic of getting idea.platform.prefix
and I made a solution.
#772
Milestone
idea.platform.prefix
and I made a solution.
#772
Problem description
Some intellij products installing by ToolBox, use this plugin to execute
runIde
, will got a blocking error that users are required to manually specify theidea.platform.prefix
.Problem analysis
org.jetbrains.intellij.tasks.RunIdeBase
line 127: find theidea.platform.prefix
by iterating the file who name havesh
, this is not robust.I found that some intellij products installing by ToolBox do not have this file. I think this should be obtained through
product-info.json
, not some files named*.sh
.we can get the
productCode
inproduct-info.json
, finally get theidea.platform.prefix
By comparing withorg.jetbrains.idea.devkit.projectRoots.IntelliJPlatformProduct
andcom.intellij.util.PlatformUtils
.As a result, we can delete the misleading code (
!ideBuildNumber(ideDir.get().asFile).startsWith("IU-")
):In the end
I hope I can help solve this problem and I really want to submit a helpful pr, But limited by my code ability of kotlin.
The text was updated successfully, but these errors were encountered: