Prepare All Plugin Modules For Deployment does no add module classes
I have an existing plugin that I am attempting to upgrade for IDEA 2019.3.
The plug-in works fine in debug mode, however, when I run the ‘Prepare All Plugin Modules For Deployment’, the generated zip file is missing the some class files. The core plugin classes are missing as well as classes from 3 of the 4 imported modules. The dependent jars for the imported modules as well as the resources are included in the zip file.
I have spent the day trying different options in the Modules section of the Project Structure dialog, as well and rebooting, cleaning cache, and even creating a brand new plugin project with the existing source, to no avail.
Any help would be appreciated.
Thanks,
Don
Please sign in to leave a comment.
I reverted to 2019.1.4 and everything worked fine. I did not try any versions between 2019.1.4 and 2019.3
Could you please provide a minimal sample to reproduce your setup? Thanks
The plugin is to complex to create a stripped down version (it's a language plugin with wysiwyg designer).
If your simple_language_plugin that you talk about, in the dev guide, is available for download, I can download it an see if it works and then try to add stubs for all the extensions I use.
We've just converted all sample plugins to use Gradle instead of DevKit setup, and I suppose the problem you're experiencing really depends on your specific project.
What exactly does "The core plugin classes are missing" mean - all classes from main plugin module are not packaged? What classes exactly from imported modules are missing? Any kind of pattern? Are dependencies between modules set to "Compile"/"Runtime" scope? Thanks.
Just tested it again using 2019.3.3 (I think the original post was for 2019.3.1) and now I have the plugin classes but no classes from the modules. The modules are all intellij projects with source code and a scope of compile. Some of those modules have dependent jar files and those jars are properly included.
Previously, I was only getting classes from one specific module all the time.
When I get a chance I will try to create a Gradle project and see if I get the same problem.
Thanks for checking. I'm not aware that anything broke in this area... Recreating the project via Gradle-based setup is a good idea anyway https://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system.html
This Issue is still open with 2021.3 (213.5744.223).
It can be replicated with a simple project with two modules:
If the plugin module has a Compile-Dependency to the Java module, the created jar contains only "ClassReferenced". If it has no dependency (or "Test"), the created jar contains only "ClassPlugin".
See also https://youtrack.jetbrains.com/issue/IDEA-235766
I was able to get things working using the gradle plugin builder. However, it had the same issue initially but I was able to figure out that a specific task was failing and I was able to disable that task. I think it was the ‘buildSearchableOptions’ task that was the underlying cause of the problem.