Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runPluginVerifier task failed #995

Closed
madneal opened this issue May 3, 2022 · 9 comments
Closed

runPluginVerifier task failed #995

madneal opened this issue May 3, 2022 · 9 comments
Assignees
Labels
Milestone

Comments

@madneal
Copy link

madneal commented May 3, 2022

Execution failed for task ':runPluginVerifier'.
> Error while evaluating property 'ides' of task ':runPluginVerifier'
   > Failed to calculate the value of task ':runPluginVerifier' property 'ides'.
      > IDE 'GO-2021.1.4' cannot be downloaded. Please verify the specified IDE version against the products available for testing: https://jb.gg/intellij-platform-builds-list

My gradle.properties configuration:

# IntelliJ Platform Artifacts Repositories
# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html

pluginGroup = org.jetbrains.plugins.template
pluginName = IntelliJ Platform Plugin Template
# SemVer format -> https://semver.org
pluginVersion = 1.1.2

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild = 211
pluginUntilBuild = 213.*

# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
#platformType = IC
platformType = GO
platformVersion = 2021.1.3

# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
platformPlugins =

# Java language level used to compile sources and to generate the files for - Java 11 is required since 2020.3
javaVersion = 11

# Gradle Releases -> https://github.com/gradle/gradle/releases
gradleVersion = 7.4

# Opt-out flag for bundling Kotlin standard library.
# See https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library for details.
# suppress inspection "UnusedProperty"
kotlin.stdlib.default.dependency = false
@madneal
Copy link
Author

madneal commented May 3, 2022

I have tried to set the platFormVersion to 2021.1 or 2021.1. But it always tried to download GO-2021.1.3. I cannot figure where triger this process.

Execution failed for task ':runPluginVerifier'.
> Error while evaluating property 'ides' of task ':runPluginVerifier'
   > Failed to calculate the value of task ':runPluginVerifier' property 'ides'.
      > IDE 'GO-2021.1.4' cannot be downloaded. Please verify the specified IDE version against the products available for testing: https://jb.gg/intellij-platform-builds-list

I cannot figure out the relationship between pluginSinceBuild, pluginUntilBuild and listProductReleases.

@madneal
Copy link
Author

madneal commented May 3, 2022

By my continuous try, the problem seem to be the pluginSinceBuild = 212. But it's defined pluginSinceBuilg = 211 in the template. Is it a bug?

@YannCebron
Copy link
Member

YannCebron commented May 3, 2022

https://data.services.jetbrains.com/products?code=GO&fields=code%2Cname%2Creleases.downloads%2Creleases.version%2Creleases.build%2Creleases.type

for 2021.1.x, only 2021.1.3 and earlier are available indeed, checking with colleague

@YannCebron
Copy link
Member

YannCebron commented May 3, 2022

we're investigating this on our side

as a workaround you can override IDEs to check manually via ideVersions property https://github.com/JetBrains/gradle-intellij-plugin/#plugin-verifier-dsl

@YannCebron YannCebron self-assigned this May 3, 2022
@madneal
Copy link
Author

madneal commented May 3, 2022

ideVersions seems not to work. Try to set it to:

ideVersions= ["GO-2021.1.3", "GO-2021.3.4", "GO-2022.1"]

But

> Task :listProductsReleases
GO-2022.1.2
GO-2021.3.4
GO-2021.2.5

GO-2022.1.2 is not a valid version.

Execution failed for task ':runPluginVerifier'.
> Error while evaluating property 'ides' of task ':runPluginVerifier'
   > Failed to calculate the value of task ':runPluginVerifier' property 'ides'.
      > IDE 'GO-2022.1.2' cannot be downloaded. Please verify the specified IDE version against the products available for testing: https://jb.gg/intellij-platform-builds-list

And there's also a problem to compatible with the latest version of goland to configure:

pluginUntilBuild = 221.*

It would generate

> Task :listProductsReleases
GO-2022.1.2
GO-2021.3.4
GO-2021.2.5

GO-2022.1.2 is not a valid version.

@YannCebron
Copy link
Member

please link your project's sources, it's unclear what you changed and where

@madneal
Copy link
Author

madneal commented May 4, 2022

https://github.com/madneal/sec-dog
nothing else modified, except pluginSinceBuild and pluginUntilBuild. The root cause is listProductsReleases does not work as exptected which list some version doesn't exist.

@hsz hsz added the bug label May 4, 2022
hsz referenced this issue May 4, 2022
…in incorrect IDE releases versions JetBrains/intellij-platform-plugin-template#263
@hsz
Copy link
Member

hsz commented May 4, 2022

Thanks for reporting, Neal!
Look like there's an issue on our side when parsing 2021.1 Beta 4 entry – it was converted into a list of 2021, 1, null, 4, nulls were removed, and the result was used for building a final version: 2021.1.4.

As for now, it'll break on the first null so, it'll be correctly resolved as 2021.1.
The final result of the listProductsReleases would be:

GO-2021.3.4
GO-2021.2.5
GO-2021.1.3

Fix will be available in the Gradle IntelliJ Plugin 1.6.0.

@hsz hsz closed this as completed May 4, 2022
@madneal
Copy link
Author

madneal commented May 4, 2022

@hsz what about the configuration of the below:

pluginSinceBuild = 212
pluginUntilBuild = 221.*
> Task :listProductsReleases
GO-2022.1.2
GO-2021.3.4
GO-2021.2.5

GO-2022.1.2 is not a valid version either.

@hsz hsz transferred this issue from JetBrains/intellij-platform-plugin-template May 19, 2022
@hsz hsz added this to the next milestone May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants