alanhe421 / bookmarkex4idea

Intellij IDEA plugin , Bookmark enhancer
0 stars 1 forks source link

when i restart ide,persist data get missing #3

Closed alanhe421 closed 5 years ago

alanhe421 commented 5 years ago

当IDE重启,之前记录的bookmark就会丢失。按照官网的介绍,实际上是不会丢失的。

debug插件发现原来保存设定时,其实出现了报错

com.intellij.util.xmlb.XmlSerializationException: Can't serialize instance of class

image

解决

对于对象类增加无参构造函数。假如是复杂对象,都要加上。

官网相关问题

https://intellij-support.jetbrains.com/hc/en-us/community/posts/360001787320-Create-VirtualFile-or-PsiFile-from-content?page=1#community_comment_360000524459