wuseal / JsonToKotlinClass

🚀 Plugin for Android Studio And IntelliJ Idea to generate Kotlin data class code from JSON text ( Json to Kotlin )
GNU General Public License v3.0
3.1k stars 176 forks source link

An operation is not implemented: Not yet implemented #360

Open privettoli opened 3 years ago

privettoli commented 3 years ago

I can't share the json but caught this error:

kotlin.NotImplementedError: An operation is not implemented: Not yet implemented
    at wu.seal.jsontokotlin.model.classscodestruct.SealedClass.replaceReferencedClasses(SealedClass.kt:50)
    at wu.seal.jsontokotlin.model.classscodestruct.KotlinClass$DefaultImpls.resolveNameConflicts(KotlinClass.kt:64)
    at wu.seal.jsontokotlin.model.classscodestruct.ModifiableKotlinClass$DefaultImpls.resolveNameConflicts(ModifiableKotlinClass.kt)
    at wu.seal.jsontokotlin.model.classscodestruct.SealedClass.resolveNameConflicts(SealedClass.kt:7)
    at wu.seal.jsontokotlin.model.classscodestruct.KotlinClass$DefaultImpls.resolveNameConflicts(KotlinClass.kt:63)
    at wu.seal.jsontokotlin.model.classscodestruct.ModifiableKotlinClass$DefaultImpls.resolveNameConflicts(ModifiableKotlinClass.kt)
    at wu.seal.jsontokotlin.model.classscodestruct.DataClass.resolveNameConflicts(DataClass.kt:7)
    at wu.seal.jsontokotlin.utils.KotlinClassFileGenerator.generateMultipleKotlinClassFiles(KotlinClassFileGenerator.kt:45)
    at wu.seal.jsontokotlin.GenerateKotlinFileAction.doGenerateKotlinDataClassFileAction(GenerateKotlinFileAction.kt:100)
    at wu.seal.jsontokotlin.GenerateKotlinFileAction.actionPerformed(GenerateKotlinFileAction.kt:60)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performActionDumbAware$5(ActionUtil.java:273)
    at com.intellij.util.SlowOperations.lambda$allowSlowOperations$0(SlowOperations.java:77)
    at com.intellij.util.SlowOperations.allowSlowOperations(SlowOperations.java:64)
    at com.intellij.util.SlowOperations.allowSlowOperations(SlowOperations.java:76)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:273)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:267)
    at com.intellij.ui.popup.ActionPopupStep.performAction(ActionPopupStep.java:241)
    at com.intellij.ui.popup.ActionPopupStep.performAction(ActionPopupStep.java:231)
    at com.intellij.ui.popup.ActionPopupStep.lambda$onChosen$2(ActionPopupStep.java:217)
    at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:95)
    at com.intellij.ui.popup.AbstractPopup.lambda$dispose$18(AbstractPopup.java:1515)
    at com.intellij.util.ui.EdtInvocationManager.invokeLaterIfNeeded(EdtInvocationManager.java:101)
    at com.intellij.ide.IdeEventQueue.ifFocusEventsInTheQueue(IdeEventQueue.java:188)
    at com.intellij.ide.IdeEventQueue.executeWhenAllFocusEventsLeftTheQueue(IdeEventQueue.java:140)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:173)
    at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.doWhenFocusSettlesDown(IdeFocusManagerImpl.java:36)
    at com.intellij.ui.popup.AbstractPopup.dispose(AbstractPopup.java:1511)
    at com.intellij.ui.popup.WizardPopup.dispose(WizardPopup.java:163)
    at com.intellij.ui.popup.list.ListPopupImpl.dispose(ListPopupImpl.java:343)
    at com.intellij.ui.popup.PopupFactoryImpl$ActionGroupPopup.dispose(PopupFactoryImpl.java:290)
    at com.intellij.openapi.util.ObjectTree.runWithTrace(ObjectTree.java:138)
    at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:168)
    at com.intellij.openapi.util.Disposer.dispose(Disposer.java:153)
    at com.intellij.openapi.util.Disposer.dispose(Disposer.java:141)
    at com.intellij.ui.popup.WizardPopup.disposeAllParents(WizardPopup.java:266)
    at com.intellij.ui.popup.list.ListPopupImpl.handleNextStep(ListPopupImpl.java:460)
    at com.intellij.ui.popup.list.ListPopupImpl._handleSelect(ListPopupImpl.java:432)
    at com.intellij.ui.popup.list.ListPopupImpl.handleSelect(ListPopupImpl.java:373)
    at com.intellij.ui.popup.list.ListPopupImpl$1.actionPerformed(ListPopupImpl.java:275)
    at com.intellij.ui.popup.WizardPopup.proceedKeyEvent(WizardPopup.java:378)
    at com.intellij.ui.popup.WizardPopup.dispatch(WizardPopup.java:354)
    at com.intellij.ui.popup.PopupDispatcher.dispatchKeyEvent(PopupDispatcher.java:112)
    at com.intellij.ui.popup.PopupDispatcher.dispatch(PopupDispatcher.java:148)
    at com.intellij.ide.IdePopupManager.dispatch(IdePopupManager.java:102)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:809)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:449)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:808)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:781)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:502)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
wuseal commented 3 years ago

Sure man @TedZen PLS Check it, bro