testmycode / tmc-intellij

*BETA* TestMyCode plugin for IntelliJ IDEA
MIT License
24 stars 13 forks source link

IDE Fatal Erros: Exception in plugin TMC PLugin for Intellij #120

Open arnawldo opened 7 years ago

arnawldo commented 7 years ago

Error message: null Details: null java.lang.NullPointerException at fi.helsinki.cs.tmc.intellij.spyware.TextInputListener.isPasteEvent(TextInputListener.java:84) at fi.helsinki.cs.tmc.intellij.spyware.TextInputListener.createPatches(TextInputListener.java:70) at fi.helsinki.cs.tmc.intellij.spyware.TextInputListener.documentChanged(TextInputListener.java:48) at com.intellij.openapi.editor.impl.DocumentImpl.changedUpdate(DocumentImpl.java:791) at com.intellij.openapi.editor.impl.DocumentImpl.updateText(DocumentImpl.java:727) at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:595) at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:542) at com.intellij.codeInsight.editorActions.EnterHandler$DoEnterAction.adjustLineIndent(EnterHandler.java:486) at com.intellij.codeInsight.editorActions.EnterHandler$DoEnterAction.run(EnterHandler.java:431) at com.intellij.codeInsight.editorActions.EnterHandler.executeWriteActionInner(EnterHandler.java:168) at com.intellij.codeInsight.editorActions.EnterHandler.lambda$executeWriteAction$0(EnterHandler.java:79) at com.intellij.psi.impl.source.PostprocessReformattingAspect.lambda$disablePostprocessFormattingInside$0(PostprocessReformattingAspect.java:113) at com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFormattingInside(PostprocessReformattingAspect.java:121) at com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFormattingInside(PostprocessReformattingAspect.java:112) at com.intellij.codeInsight.editorActions.EnterHandler.executeWriteAction(EnterHandler.java:78) at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:49) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:934) at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.doExecute(EditorWriteActionHandler.java:62) at com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:222) at com.intellij.codeInsight.template.impl.editorActions.EnterHandler.executeWriteAction(EnterHandler.java:49) at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:49) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:934) at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.doExecute(EditorWriteActionHandler.java:62) at com.intellij.openapi.editor.actionSystem.EditorActionHandler$3$1.perform(EditorActionHandler.java:206) at com.intellij.openapi.editor.actionSystem.EditorActionHandler.doIfEnabled(EditorActionHandler.java:109) at com.intellij.openapi.editor.actionSystem.EditorActionHandler.access$000(EditorActionHandler.java:38) at com.intellij.openapi.editor.actionSystem.EditorActionHandler$3.perform(EditorActionHandler.java:203) at com.intellij.openapi.editor.impl.CaretModelImpl.lambda$runForEachCaret$2(CaretModelImpl.java:355) at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:444) at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:347) at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:338) at com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:200) at com.intellij.openapi.editor.actionSystem.EditorAction.lambda$actionPerformed$0(EditorAction.java:95) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:149) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:109) at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:104) at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:83) at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:199) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:215) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:587) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$processAction$2(IdeKeyEventDispatcher.java:634) at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:204) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:633) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:477) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:211) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:657) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Latrop1a commented 7 years ago

Getting the same thing. Additionally I cannot test locally. That brings up another error.

mark-walle commented 7 years ago

similar error:

null
java.lang.NullPointerException
    at fi.helsinki.cs.tmc.intellij.services.exercises.CourseAndExerciseManager.refreshCoursesOffline(CourseAndExerciseManager.java:150)
    at fi.helsinki.cs.tmc.intellij.services.exercises.CourseAndExerciseManager.initiateDatabase(CourseAndExerciseManager.java:120)
    at fi.helsinki.cs.tmc.intellij.services.exercises.ExerciseDownloadingService.lambda$refreshExerciseList$4(ExerciseDownloadingService.java:208)
    at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:330)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)