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

Add raw plugin verifier configuration #1050

Closed
bohdan-harniuk opened this issue Mar 27, 2022 · 2 comments
Closed

Add raw plugin verifier configuration #1050

bohdan-harniuk opened this issue Mar 27, 2022 · 2 comments

Comments

@bohdan-harniuk
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

It would be great to have a raw configuration for the plugin verifier tool: https://plugins.jetbrains.com/docs/intellij/api-changes-list.html

Describe the solution you'd like (*)

To check a plugin compatibility with Intellij Idea, we can use built in Gradle taks: runPluginVerifier.
For an example, to check plugin compatibility with the IntelliJ IDEA Ultimate 221.5080.56, we should add next Gradle configuration:

Screenshot 2022-03-27 at 17 42 36

We will get output in the running terminal:

2022-03-27T17:41:29 [main] INFO  verification - Finished 1 of 1 verifications (in 6.1 s): IU-221.5080.56 against com.magento.idea.magento2plugin:4.3.0: Compatible. 13 usages of deprecated API. 7 usages of experimental API. 11 usages of internal API
Plugin com.magento.idea.magento2plugin:4.3.0 against IU-221.5080.56: Compatible. 13 usages of deprecated API. 7 usages of experimental API. 11 usages of internal API
Deprecated API usages (13): 
    #Deprecated interface com.intellij.platform.WebProjectGenerator.SettingsStateListener reference
        Deprecated interface com.intellij.platform.WebProjectGenerator.SettingsStateListener is referenced in com.magento.idea.magento2plugin.generation.php.MagentoProjectPeer.addSettingsStateListener(WebProjectGenerator.SettingsStateListener) : void
    #Deprecated method com.intellij.psi.search.FilenameIndex.getFilesByName(Project, String, GlobalSearchScope) invocation
        Deprecated method com.intellij.psi.search.FilenameIndex.getFilesByName(com.intellij.openapi.project.Project project, java.lang.String name, com.intellij.psi.search.GlobalSearchScope scope) : com.intellij.psi.PsiFile[] is invoked in com.magento.idea.magento2plugin.indexes.FixtureIndex.getDataFixtures(String) : List
    #Deprecated method com.intellij.psi.PsiElement.checkAdd(PsiElement) is overridden
...

Or we can view results in the generated html file (./build/reports/pluginVerifier//report.html):

Screenshot 2022-03-27 at 17 48 57

It would be great to add ready to go configuration for running plugin verifier:

runPluginVerifier {
    ideVersions = []
    localPaths = []
}

To use it, will be enough to add target version, as on the screenshot above.

Describe alternatives you've considered

N/A.

Additional context

Mainline branch: 4.3.1-develop

@m2-assistant
Copy link

m2-assistant bot commented Mar 27, 2022

Hi @bohdan-harniuk. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.

Add a comment to assign the issue: @magento I am working on this


@doninAtwix
Copy link
Contributor

@magento I am working on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants