Plugin Settings are getting saved, but not retrieved

Answered

I followed this tutorial on settings: https://plugins.jetbrains.com/docs/intellij/settings-tutorial.html#the-appsettingsconfigurable-class

I copied the code examples verbatim. When I run the plugin, I see the settings, and I can save the settings. However, if I close the Preferences window, then bring it back up, the settings are not retrieved. I can verify the settings are being saved in the XML file behind the scenes. Is there anything missing from that tutorial, or has the API changed from that making the settings retrieval not work?

0
2 comments

Please compare your plugin to final results from here https://github.com/JetBrains/intellij-sdk-docs/tree/main/code_samples/settings. Running that sample works for me as expected.

1
Avatar
Permanently deleted user

Thanks Yann. I copied those in verbatim as well and it works, so clearly I've made an error somewhere. Will work off these moving forward. Thanks for the link!

0

Please sign in to leave a comment.