Settings for inspections are lost when updating the plugin

Answered

We have written a plugin with some settings in Editor - Inspections.
If the user changes these settings (enabling/disabling, modified severity, ...), they are always lost when updating the plugin (or simply deactivating and reactivating the plugin).
How to make sure that the user changes are preserved?

1
4 comments

Hi Robert,

It shouldn't happen. Could you please provide more context or a reproducible example? Does it happen only to your inspections or also other?

0

Hi Karol,

I am using IntelliJ IDEA 2023.1.1 (Ultimate Edition) build #IU-231.8770.65, created on April 27, 2023.

It looks like it happens with all language plugins with inspections, not only with ours.

Please try the following:
1) Install/enable the JetBrains R language plugin.
2) Change one setting of R in the inspections.
3) Disable the R plugin.
4) Re-enable the R plugin
and you can see how the settings in step 3 disappear from the "Project_Default.XML file".

It doesn't depend on the profile used, the same thing happens when I use the default profile.
I guess that when updating a plugin it is disabled first - that's why it also happens in this process.
But in my opinion the settings should not be lost, neither when deactivating and certainly not when updating.

0

Hi Robert,

Regarding disabling a plugin (or uninstalling), it is the expected behavior that keeps the inspection profile clean. Otherwise, there would be a lot of unnecessary entries.

We are verifying the updating plugin case.

0

Hi Robert,

Sorry for taking long to reply.
It turns out that issue was reported previously.
Please feel free to upvote it. We would also appreciate If you could share any details you think could be relevant to the issue if ones missing.

0

Please sign in to leave a comment.