testmycode / tmc-intellij Goto Github PK
View Code? Open in Web Editor NEW*BETA* TestMyCode plugin for IntelliJ IDEA
License: MIT License
*BETA* TestMyCode plugin for IntelliJ IDEA
License: MIT License
java.lang.NullPointerException
at fi.helsinki.cs.tmc.intellij.actions.buttonactions.RunTestsAction.actionPerformed(RunTestsAction.java:36)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:265)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:282)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:256)
at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:194)
at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:157)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:434)
at java.desktop/java.awt.Component.processEvent(Component.java:6416)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5026)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:873)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:818)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:461)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:704)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:460)
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)
After clicking download new exercises:
org/jetbrains/plugins/gradle/service/project/wizard/GradleProjectOpenProcessor
com.intellij.openapi.extensions.impl.PicoPluginExtensionInitializationException: org/jetbrains/plugins/gradle/service/project/wizard/GradleProjectOpenProcessor
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentInstance(ExtensionComponentAdapter.java:96)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getExtension(ExtensionComponentAdapter.java:119)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:246)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensions(ExtensionPointImpl.java:191)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:102)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:89)
at com.intellij.projectImport.ProjectOpenProcessor.getStrongImportProvider(ProjectOpenProcessor.java:76)
at com.intellij.ide.impl.ProjectUtil.openOrImport(ProjectUtil.java:111)
at fi.helsinki.cs.tmc.intellij.io.ProjectOpener.openProject(ProjectOpener.java:48)
at fi.helsinki.cs.tmc.intellij.io.ProjectOpener.openProject(ProjectOpener.java:36)
at fi.helsinki.cs.tmc.intellij.io.ProjectOpener.openProject(ProjectOpener.java:76)
at fi.helsinki.cs.tmc.intellij.services.exercises.NextExerciseFetcher.openFirst(NextExerciseFetcher.java:90)
at fi.helsinki.cs.tmc.intellij.services.exercises.ExerciseDownloadingService$2.lambda$run$0(ExerciseDownloadingService.java:133)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:314)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:416)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:821)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:649)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
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)
Caused by: java.lang.NoClassDefFoundError: org/jetbrains/plugins/gradle/service/project/wizard/GradleProjectOpenProcessor
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:272)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:268)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:237)
at com.intellij.ide.plugins.cl.PluginClassLoader.b(PluginClassLoader.java:138)
at com.intellij.ide.plugins.cl.PluginClassLoader.a(PluginClassLoader.java:76)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:63)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.loadImplementationClass(ExtensionComponentAdapter.java:158)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentImplementation(ExtensionComponentAdapter.java:66)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentInstance(ExtensionComponentAdapter.java:73)
... 32 more
Caused by: java.lang.ClassNotFoundException: org.jetbrains.plugins.gradle.service.project.wizard.GradleProjectOpenProcessor PluginClassLoader[org.jetbrains.kotlin, 1.1.51-release-IJ2017.2-1] com.intellij.ide.plugins.cl.PluginClassLoader@7c6b7960
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 47 more
Caused by:
java.lang.NoClassDefFoundError: org/jetbrains/plugins/gradle/service/project/wizard/GradleProjectOpenProcessor
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:272)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:268)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:237)
at com.intellij.ide.plugins.cl.PluginClassLoader.b(PluginClassLoader.java:138)
at com.intellij.ide.plugins.cl.PluginClassLoader.a(PluginClassLoader.java:76)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:63)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.loadImplementationClass(ExtensionComponentAdapter.java:158)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentImplementation(ExtensionComponentAdapter.java:66)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentInstance(ExtensionComponentAdapter.java:73)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getExtension(ExtensionComponentAdapter.java:119)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:246)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensions(ExtensionPointImpl.java:191)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:102)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:89)
at com.intellij.projectImport.ProjectOpenProcessor.getStrongImportProvider(ProjectOpenProcessor.java:76)
at com.intellij.ide.impl.ProjectUtil.openOrImport(ProjectUtil.java:111)
at fi.helsinki.cs.tmc.intellij.io.ProjectOpener.openProject(ProjectOpener.java:48)
at fi.helsinki.cs.tmc.intellij.io.ProjectOpener.openProject(ProjectOpener.java:36)
at fi.helsinki.cs.tmc.intellij.io.ProjectOpener.openProject(ProjectOpener.java:76)
at fi.helsinki.cs.tmc.intellij.services.exercises.NextExerciseFetcher.openFirst(NextExerciseFetcher.java:90)
at fi.helsinki.cs.tmc.intellij.services.exercises.ExerciseDownloadingService$2.lambda$run$0(ExerciseDownloadingService.java:133)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:314)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:416)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:821)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:649)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
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)
Caused by: java.lang.ClassNotFoundException: org.jetbrains.plugins.gradle.service.project.wizard.GradleProjectOpenProcessor PluginClassLoader[org.jetbrains.kotlin, 1.1.51-release-IJ2017.2-1] com.intellij.ide.plugins.cl.PluginClassLoader@7c6b7960
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 47 more
I encounter the message only when I am working on NHLStatistics part 1.
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:305) 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)
This is the first time I'm using this plugin but not the first time I'm using intelliJ.
The project seems to have opened, but no other information has popped up on the screen.
When selecting a course in the TMC plugin the window closed and I got the following error in the console. After pressing "Get started with TMC" again the course was successfully selected when the window opened, and I could continue to download the exercises.
fi.helsinki.cs.tmc.core.exceptions.UninitializedHolderException: Attempted to get item from a holder that was not properly initialized at fi.helsinki.cs.tmc.core.holders.TmcSettingsHolder.get(TmcSettingsHolder.java:25) at fi.helsinki.cs.tmc.core.utilities.TmcServerAddressNormalizer.<init>(TmcServerAddressNormalizer.java:22) at fi.helsinki.cs.tmc.intellij.ui.login.LoginDialog.getAddressNormalizer(LoginDialog.java:90) at fi.helsinki.cs.tmc.intellij.ui.login.LoginDialog.lambda$createActionListenerChangeServerAddress$0(LoginDialog.java:151) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) at java.awt.Component.processMouseEvent(Component.java:6548) at javax.swing.JComponent.processMouseEvent(JComponent.java:3325) at java.awt.Component.processEvent(Component.java:6313) at java.awt.Container.processEvent(Container.java:2237) at java.awt.Component.dispatchEventImpl(Component.java:4903) at java.awt.Container.dispatchEventImpl(Container.java:2295) at java.awt.Component.dispatchEvent(Component.java:4725) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467) at java.awt.Container.dispatchEventImpl(Container.java:2281) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4725) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764) at java.awt.EventQueue.access$500(EventQueue.java:98) at java.awt.EventQueue$3.run(EventQueue.java:715) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90) at java.awt.EventQueue$4.run(EventQueue.java:737) at java.awt.EventQueue$4.run(EventQueue.java:735) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:734) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:781) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:718) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109) at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190) at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235) at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233) at java.security.AccessController.doPrivileged(Native Method) at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233) at java.awt.Dialog.show(Dialog.java:1077) at java.awt.Component.show(Component.java:1685) at java.awt.Component.setVisible(Component.java:1637) at java.awt.Window.setVisible(Window.java:1014) at java.awt.Dialog.setVisible(Dialog.java:998) at fi.helsinki.cs.tmc.intellij.ui.login.LoginDialog.display(LoginDialog.java:100) at fi.helsinki.cs.tmc.intellij.actions.buttonactions.TmcSettingsAction.showSettings(TmcSettingsAction.java:37) at fi.helsinki.cs.tmc.intellij.actions.buttonactions.TmcSettingsAction.actionPerformed(TmcSettingsAction.java:25) at com.intellij.openapi.actionSystem.ex.ActionUtil.invokeAction(ActionUtil.java:347) at com.intellij.openapi.actionSystem.ex.ActionUtil.invokeAction(ActionUtil.java:334) at com.intellij.ui.components.labels.ActionLink$1.linkSelected(ActionLink.java:60) at com.intellij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:142) at com.intellij.ui.components.labels.ActionLink.doClick(ActionLink.java:69) at com.intellij.ui.components.labels.LinkLabel$MyMouseHandler.mouseReleased(LinkLabel.java:326) at java.awt.Component.processMouseEvent(Component.java:6548) at javax.swing.JComponent.processMouseEvent(JComponent.java:3325) at java.awt.Component.processEvent(Component.java:6313) at java.awt.Container.processEvent(Container.java:2237) at java.awt.Component.dispatchEventImpl(Component.java:4903) at java.awt.Container.dispatchEventImpl(Container.java:2295) at java.awt.Component.dispatchEvent(Component.java:4725) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467) at java.awt.Container.dispatchEventImpl(Container.java:2281) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4725) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764) at java.awt.EventQueue.access$500(EventQueue.java:98) at java.awt.EventQueue$3.run(EventQueue.java:715) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90) at java.awt.EventQueue$4.run(EventQueue.java:737) at java.awt.EventQueue$4.run(EventQueue.java:735) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:734) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:781) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:718) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382) 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)
System information:
OS: Arch Linux
Architecture: x86_64
Kernel: 4.18.6
Locale: en_DK.UTF-8
IntelliJ version: IntelliJ Ultimate 2018.2.3
Java environment: The one bundled with IntelliJ Ultimate 2018.2.3
TMC plugin version: 2.0.2
Error occured when I was uploading test using TMC Idea. All tests passed when I used TMC NetBeans.
Error massage: org.apache.commons.lang.StringUtils.join(Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String;
org.apache.commons.lang.StringUtils.join(Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String;
java.lang.NoSuchMethodError: org.apache.commons.lang.StringUtils.join(Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String;
at fi.helsinki.cs.tmc.intellij.ui.submissionresult.SuccessfulSubmissionDialog.getPointsMsg(SuccessfulSubmissionDialog.java:214)
at fi.helsinki.cs.tmc.intellij.ui.submissionresult.SuccessfulSubmissionDialog.addPointsLabel(SuccessfulSubmissionDialog.java:200)
at fi.helsinki.cs.tmc.intellij.ui.submissionresult.SuccessfulSubmissionDialog.<init>(SuccessfulSubmissionDialog.java:70)
at fi.helsinki.cs.tmc.intellij.ui.submissionresult.SubmissionResultHandler.showResultMessage(SubmissionResultHandler.java:19)
at fi.helsinki.cs.tmc.intellij.services.exercises.ExerciseUploadingService.getSubmissionResult(ExerciseUploadingService.java:108)
at fi.helsinki.cs.tmc.intellij.services.exercises.ExerciseUploadingService.lambda$getResults$0(ExerciseUploadingService.java:84)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:176)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:556)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:501)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:163)
at fi.helsinki.cs.tmc.intellij.services.ThreadingService.lambda$runWithNotification$0(ThreadingService.java:20)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:334)
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)
windows 10
IntelliJ 2016.2
Paikalliset testit eivät toimineet seuraavissa eng. mooc tehtävissä.
week 10, 34
week 11, 35
Heitän tän nytten tänne ku en oo varma minne muuallekkaan. Tossa on englantia puhuvalta mooc käyttäjältä tietoja siitä kun sillä ei toiminut paikalliset testit intellij plugarissa.
Extra:
week 11, 33 testit menivät läpi serverillä vaikka ei olisi pitänyt. (liian vähän testi keissejä kuulemma)
This is blocking me from completing the sign-in process. I cannot resize the window, and many of the settings are outside of the window boarder.
Been happening since I updated to intellij idea 2017.3 and it occurs as soon as I try typing on a newly opened exercise. The first click of my keyboard leads to this pop-up happening and then subsequent typing is registered normally. Since it only happens in the beginning it does not affect anything else and I can continue/submit the exercise as normal.
From the details tab
com.intellij.internal.statistic.UsagesCollector.doPersistProjectUsages(Lcom/intellij/openapi/project/Project;)V
java.lang.NoSuchMethodError: com.intellij.internal.statistic.UsagesCollector.doPersistProjectUsages(Lcom/intellij/openapi/project/Project;)V
at fi.helsinki.cs.tmc.intellij.actions.ActivateSpywareAction.execute(ActivateSpywareAction.java:47)
at com.intellij.openapi.editor.actionSystem.TypedAction$DefaultRawHandler$1.run(TypedAction.java:171)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1003)
at com.intellij.openapi.editor.actionSystem.TypedAction$DefaultRawHandler.lambda$execute$0(TypedAction.java:165)
at com.intellij.openapi.command.impl.CoreCommandProcessor.a(CoreCommandProcessor.java:149)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:109)
at com.intellij.openapi.editor.actionSystem.TypedAction$DefaultRawHandler.execute(TypedAction.java:159)
at com.intellij.openapi.editor.impl.EditorFactoryImpl$MyTypedHandler.execute(EditorFactoryImpl.java:310)
at com.intellij.openapi.editor.actionSystem.TypedAction.lambda$actionPerformed$0(TypedAction.java:142)
at com.intellij.reporting.FreezeLoggerImpl.runUnderPerformanceMonitor(FreezeLoggerImpl.java:42)
at com.intellij.openapi.editor.actionSystem.TypedAction.actionPerformed(TypedAction.java:142)
at com.intellij.openapi.editor.impl.EditorImpl.processKeyTypedNormally(EditorImpl.java:1127)
at com.intellij.openapi.editor.impl.EditorImpl.a(EditorImpl.java:1115)
at com.intellij.openapi.editor.impl.EditorImpl.processKeyTyped(EditorImpl.java:3123)
at com.intellij.openapi.editor.impl.EditorImpl$6.keyTyped(EditorImpl.java:947)
at java.awt.AWTEventMulticaster.keyTyped(AWTEventMulticaster.java:239)
at java.awt.Component.processKeyEvent(Component.java:6496)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2832)
at java.awt.Component.processEvent(Component.java:6318)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4897)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
at com.intellij.ide.IdeKeyboardFocusManager.dispatchEvent(IdeKeyboardFocusManager.java:27)
at java.awt.Component.dispatchEventImpl(Component.java:4768)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.h(IdeEventQueue.java:822)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:623)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
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)
Just downloaded the TMC Plugin/Course material for the OOProgramingWithJava-PART1. I get this error and I can't submit the code for testing.
tried to access field com.intellij.diff.tools.util.base.DiffViewerBase.LOG from class fi.helsinki.cs.tmc.intellij.importexercise.NewProjectUtilModified
java.lang.IllegalAccessError: tried to access field com.intellij.diff.tools.util.base.DiffViewerBase.LOG from class fi.helsinki.cs.tmc.intellij.importexercise.NewProjectUtilModified
at fi.helsinki.cs.tmc.intellij.importexercise.NewProjectUtilModified.importExercise(NewProjectUtilModified.java:55)
at fi.helsinki.cs.tmc.intellij.importexercise.ExerciseImport.importExercise(ExerciseImport.java:23)
at fi.helsinki.cs.tmc.intellij.io.ProjectOpener.openProject(ProjectOpener.java:42)
at fi.helsinki.cs.tmc.intellij.io.ProjectOpener.openProject(ProjectOpener.java:30)
at fi.helsinki.cs.tmc.intellij.io.ProjectOpener.openProject(ProjectOpener.java:66)
at fi.helsinki.cs.tmc.intellij.ui.projectlist.CourseTabFactory$5.mouseClicked(CourseTabFactory.java:219)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
at java.awt.Component.processMouseEvent(Component.java:6536)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:827)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:651)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
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)
The plugin installs, i put my acc info, click mood, then java 1, click download exercises and a box pops up for like 2 seconds and disappears.
I'm a total newbie and was trying to get started with the MOOC course, using Intellij with TMC. Did the name exercise and on pressing the run test for current project ran into this error.
Not sure what i am doing wrong.
java.lang.NullPointerException
at fi.helsinki.cs.tmc.intellij.actions.buttonactions.RunTestsAction.actionPerformed(RunTestsAction.java:36)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:258)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:275)
at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:184)
at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:148)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:410)
at java.awt.Component.processEvent(Component.java:6313)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4903)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:719)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:664)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363)
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)
java.lang.NullPointerException at fi.helsinki.cs.tmc.intellij.services.exercises.ExerciseUploadingService.startUploadExercise(ExerciseUploadingService.java:55) at fi.helsinki.cs.tmc.intellij.actions.buttonactions.UploadExerciseAction.callExerciseUploadService(UploadExerciseAction.java:63) at fi.helsinki.cs.tmc.intellij.actions.buttonactions.UploadExerciseAction.uploadExercise(UploadExerciseAction.java:56) at fi.helsinki.cs.tmc.intellij.actions.buttonactions.UploadExerciseAction.actionPerformed(UploadExerciseAction.java:39) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:281) at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:209) at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:177) at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:160) at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:477) at java.desktop/java.awt.Component.processEvent(Component.java:6417) at java.desktop/java.awt.Container.processEvent(Container.java:2263) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5027) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4859) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4859) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:976) at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:911) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:840) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:454) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:773) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:453) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:507) 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)
Course - mooc-2016-securing-software
Excercise - Set1-02.HelloWeb
As seen on the second screenshot, the TMC test result is empty without any indication of progress
I tried this submit functionality on the first excercise -> it worked smoothly -> could be a problem specific to this one (or im missing something here)
Got this error on tests 38 -42 from week 2 of the java part 1 course.
When I send the code to the server all tests have passed.
Error body:
java.lang.reflect.InvocationTargetException
org.objenesis.instantiator.sun.SunReflectionFactoryHelper.newConstructorForSerialization(SunReflectionFactoryHelper.java:55)
org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator.<init>(SunReflectionFactoryInstantiator.java:38)
org.objenesis.strategy.StdInstantiatorStrategy.newInstantiatorOf(StdInstantiatorStrategy.java:58)
org.objenesis.ObjenesisBase.getInstantiatorOf(ObjenesisBase.java:91)
org.powermock.reflect.internal.WhiteboxImpl.newInstance(WhiteboxImpl.java:228)
org.powermock.reflect.Whitebox.newInstance(Whitebox.java:139)
org.powermock.modules.junit4.rule.PowerMockClassloaderExecutor.registerProxyframework(PowerMockClassloaderExecutor.java:72)
org.powermock.modules.junit4.rule.PowerMockClassloaderExecutor.forClass(PowerMockClassloaderExecutor.java:50)
org.powermock.modules.junit4.rule.PowerMockRule.apply(PowerMockRule.java:31)
org.junit.runners.BlockJUnit4ClassRunner.withMethodRules(BlockJUnit4ClassRunner.java:349)
org.junit.runners.BlockJUnit4ClassRunner.withRules(BlockJUnit4ClassRunner.java:339)
org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:256)
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
org.junit.runners.ParentRunner.run(ParentRunner.java:309)
fi.helsinki.cs.tmc.testrunner.TestRunner$TestingRunnable.runTestCase(TestRunner.java:134)
fi.helsinki.cs.tmc.testrunner.TestRunner$TestingRunnable.doRun(TestRunner.java:89)
fi.helsinki.cs.tmc.testrunner.TestRunner$TestingRunnable.run(TestRunner.java:70)
java.lang.Thread.run(Unknown Source)
IntelliJ IDEA Ultimate 2017.2 Public preview
Argument for @NotNull parameter 'dataContext' of com/intellij/openapi/actionSystem/DataKey.getData must not be null
Hi,
I got this exception when I tried to use the TCM plugin in IntelliJ.
Please see the exception message :
java.lang.NullPointerException
at fi.helsinki.cs.tmc.intellij.services.exercises.ExerciseUploadingService.startUploadExercise(ExerciseUploadingService.java:55)
at fi.helsinki.cs.tmc.intellij.actions.buttonactions.UploadExerciseAction.callExerciseUploadService(UploadExerciseAction.java:63)
at fi.helsinki.cs.tmc.intellij.actions.buttonactions.UploadExerciseAction.uploadExercise(UploadExerciseAction.java:56)
at fi.helsinki.cs.tmc.intellij.actions.buttonactions.UploadExerciseAction.actionPerformed(UploadExerciseAction.java:39)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:282)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:276)
at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:182)
at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:155)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:439)
at java.desktop/java.awt.Component.processEvent(Component.java:6419)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5029)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:971)
at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:906)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:838)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:452)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:744)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:451)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:802)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:505)
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)
And there is no way I can run the code to see if I passed the test.
Please advise.
Tks.
User reported following error with W8, jdk8 2016-nodl. first exercise:
java: package fi.helsinki.cs.tmc.edutestutils does not exist
I can use my user name and password to log in to the website through Chrome successfully (https://tmc.mooc.fi/login).
Getting the following error when trying to log in to TMC through IntelliJ IDEA using this URL https://tmc.mooc.fi
fi.helsinki.cs.tmc.core.exceptions.AuthenticationFailedException: Authentication failed!.
Username or password is incorrect
System information:
IntelliJ IDEA 2018.2.1 (Ultimate Edition)
Build #IU-182.3911.36, built on August 6, 2018
Expiration date: September 6, 2018
JRE: 1.8.0_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1
TMC version 2.0.2
From prepare_build.sh
:
mkdir -p target/dependency/intellij-idea
curl -L http://download.jetbrains.com/idea/ideaIC-2016.2.tar.gz | tar xz --strip-components=1 -C target/dependency/intellij-idea
The link used is dead. This article suggests that the following link could work instead:
Latest versions of IntelliJ and Windows 10. Fresh install of IDE and plugin.
Using the 'Run Tests' feature of the plugin always results in 100% pass. It passes instantly and there is no breakdown of the individual tests, showing that they are not being run at all.
I tried reinstalling the plugin but this did not help.
All other features work as expected.
so basically you cant upload your current work. what i did to fix this is uninstall latest 1.0.7 version and use 1.0.6
I get the following error when trying to test my code using the TMC plugin for IntelliJ. Note that I am able to run (using both the TMC plugin arrow and the regular IntelliJ arrow). I was also able to submit my code to the server and it came back successfully. I tried to build the code manually by going to Build -> Build Project but that did not resolve the error.
BUILD FAILED
C:\Users\Cody\Documents\IdeaProjects\TMCProjects\2013-OOProgrammingWithJava-PART1\week1-001.Name\nbproject\build-impl.xml:603: The following error occurred while executing this line:
C:\Users\Cody\Documents\IdeaProjects\TMCProjects\2013-OOProgrammingWithJava-PART1\week1-001.Name\nbproject\build-impl.xml:245: Error running javac.exe compiler
Total time: 0 seconds
-pre-init:
-init-private:
-init-user:
-init-project:
-init-macrodef-property:
-do-init:
-post-init:
-init-check:
-init-ap-cmdline-properties:
-init-macrodef-javac-with-processors:
-init-macrodef-javac-without-processors:
-init-macrodef-javac:
-init-macrodef-junit:
-init-debug-args:
-init-macrodef-nbjpda:
-init-macrodef-debug:
-init-macrodef-java:
-init-presetdef-jar:
-init-ap-cmdline-supported:
-init-ap-cmdline:
init:
-deps-jar-init:
[delete] Deleting: C:\Users\Cody\Documents\IdeaProjects\TMCProjects\2013-OOProgrammingWithJava-PART1\week1-001.Name\build\built-jar.properties
deps-jar:
-warn-already-built-jar:
[propertyfile] Updating property file: C:\Users\Cody\Documents\IdeaProjects\TMCProjects\2013-OOProgrammingWithJava-PART1\week1-001.Name\build\built-jar.properties
-check-automatic-build:
-clean-after-automatic-build:
-verify-automatic-build:
-pre-pre-compile:
-pre-compile:
-copy-persistence-xml:
-compile-depend:
-do-compile:
[javac] Compiling 1 source file to C:\Users\Cody\Documents\IdeaProjects\TMCProjects\2013-OOProgrammingWithJava-PART1\week1-001.Name\build\classes
My computer setup has multiple screens. Upon completing an assignment, the feedback prompt opens on the default/number 1 screen even when my Intellij is opened on another one.
OS is Ubuntu 16.04, intellij version 2016.1.4
I'm getting IDE error with every assignment of mooc ohjelmointi 2017.
Parent file still doesn't exist:C:\Users\x___x.IdeaIC2016.3\system\frameworks\detection\C:\Users\x__x\Documents\NetBeansProjects\mooc-2017-ohjelmointi\TMCProjects\mooc-2017-ohjelmointi\osa03-Osa03_16.Kertoja.17b632ca\files.len
java.io.IOException: Parent file still doesn't exist:C:\Users\x___x.IdeaIC2016.3\system\frameworks\detection\C:\Users\x___x\Documents\NetBeansProjects\mooc-2017-ohjelmointi\TMCProjects\mooc-2017-ohjelmointi\osa03-Osa03_16.Kertoja.17b632ca\files.len
at com.intellij.util.io.ResizeableMappedFile$1.execute(ResizeableMappedFile.java:138)
at com.intellij.util.io.ResizeableMappedFile$1.execute(ResizeableMappedFile.java:130)
at com.intellij.openapi.util.io.FileUtilRt.doIOOperation(FileUtilRt.java:734)
at com.intellij.util.io.ResizeableMappedFile.writeLength(ResizeableMappedFile.java:130)
at com.intellij.util.io.ResizeableMappedFile.(ResizeableMappedFile.java:52)
at com.intellij.util.io.PersistentBTreeEnumerator.(PersistentBTreeEnumerator.java:81)
at com.intellij.util.io.PersistentEnumeratorDelegate.(PersistentEnumeratorDelegate.java:47)
at com.intellij.util.io.PersistentHashMap.(PersistentHashMap.java:136)
at com.intellij.util.io.PersistentHashMap.(PersistentHashMap.java:132)
at com.intellij.util.io.PersistentHashMap.(PersistentHashMap.java:128)
at com.intellij.framework.detection.impl.DetectedFrameworksData.(DetectedFrameworksData.java:53)
at com.intellij.framework.detection.impl.FrameworkDetectionManager.doInitialize(FrameworkDetectionManager.java:96)
at com.intellij.framework.detection.impl.FrameworkDetectionManager.initComponent(FrameworkDetectionManager.java:86)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:501)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:125)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:109)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:96)
at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:287)
at com.intellij.openapi.project.impl.ProjectManagerImpl.initProject(ProjectManagerImpl.java:222)
at com.intellij.openapi.project.impl.ProjectManagerImpl.newProject(ProjectManagerImpl.java:178)
at fi.helsinki.cs.tmc.intellij.importexercise.NewProjectUtilModified.importExercise(NewProjectUtilModified.java:63)
at fi.helsinki.cs.tmc.intellij.importexercise.ExerciseImport.importExercise(ExerciseImport.java:23)
at fi.helsinki.cs.tmc.intellij.io.ProjectOpener.openProject(ProjectOpener.java:42)
at fi.helsinki.cs.tmc.intellij.services.exercises.NextExerciseFetcher$1.run(NextExerciseFetcher.java:44)
at com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:318)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:417)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:401)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:843)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:679)
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)
I get the following error when running tests:
java.lang.NoClassDefFoundError: org/apache/maven/shared/invoker/DefaultInvocationRequest
at fi.helsinki.cs.tmc.langs.java.maven.MavenInvokatorMavenTaskRunner.exec(MavenInvokatorMavenTaskRunner.java:43)
at fi.helsinki.cs.tmc.langs.java.maven.MavenExecutors.tryAndExec(MavenExecutors.java:16)
at fi.helsinki.cs.tmc.langs.java.maven.MavenPlugin.build(MavenPlugin.java:78)
at fi.helsinki.cs.tmc.langs.java.AbstractJavaPlugin.runTests(AbstractJavaPlugin.java:136)
at fi.helsinki.cs.tmc.langs.util.TaskExecutorImpl.runTests(TaskExecutorImpl.java:39)
at fi.helsinki.cs.tmc.core.commands.RunTests.call(RunTests.java:40)
at fi.helsinki.cs.tmc.core.commands.RunTests.call(RunTests.java:19)
at fi.helsinki.cs.tmc.core.utilities.ExceptionTrackingCallable.call(ExceptionTrackingCallable.java:39)
at fi.helsinki.cs.tmc.intellij.services.TestRunningService.lambda$prepareThreadForRunningTests$0(TestRunningService.java:68)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at fi.helsinki.cs.tmc.intellij.services.ThreadingService.lambda$runWithNotification$0(ThreadingService.java:20)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
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)
Caused by: java.lang.ClassNotFoundException: org.apache.maven.shared.invoker.DefaultInvocationRequest PluginClassLoader[fi.helsinki.cs.tmc, 2.0.2] com.intellij.ide.plugins.cl.PluginClassLoader@14aaa28a
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:63)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 21 more
The plugin doesn't seem to handle exercises with TMC validation cases. Here's an example of what happens when submitting such an exercise:
Stages 3 and 4 loop forever.
Example exercise with validation cases: viikko11-Viikko11_181.HenkiloJaPerilliset
in course hy-s2016-ohja
from tmc.mooc.fi/hy
Viewing the submission on TMC reveals the case which failed. In this case, it seems to be a linter that's failing.
Version 2.0.2 of the TMC plugin, 2020.1 IntelliJ.
Running tests results in the following error:
java.lang.NoClassDefFoundError: org/apache/maven/shared/invoker/MavenInvocationException at fi.helsinki.cs.tmc.langs.java.maven.MavenExecutors.tryAndExec(MavenExecutors.java:16) at fi.helsinki.cs.tmc.langs.java.maven.MavenPlugin.build(MavenPlugin.java:78) at fi.helsinki.cs.tmc.langs.java.AbstractJavaPlugin.runTests(AbstractJavaPlugin.java:136) at fi.helsinki.cs.tmc.langs.util.TaskExecutorImpl.runTests(TaskExecutorImpl.java:39) at fi.helsinki.cs.tmc.core.commands.RunTests.call(RunTests.java:40) at fi.helsinki.cs.tmc.core.commands.RunTests.call(RunTests.java:19) at fi.helsinki.cs.tmc.core.utilities.ExceptionTrackingCallable.call(ExceptionTrackingCallable.java:39) at fi.helsinki.cs.tmc.intellij.services.TestRunningService.lambda$prepareThreadForRunningTests$0(TestRunningService.java:68) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:166) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:627) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:572) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:153) at fi.helsinki.cs.tmc.intellij.services.ThreadingService.lambda$runWithNotification$0(ThreadingService.java:20) at com.intellij.util.RunnableCallable.call(RunnableCallable.java:20) at com.intellij.util.RunnableCallable.call(RunnableCallable.java:11) at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:255) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: java.lang.ClassNotFoundException: org.apache.maven.shared.invoker.MavenInvocationException PluginClassLoader[fi.helsinki.cs.tmc, 2.0.2] com.intellij.ide.plugins.cl.PluginClassLoader@4c3559ba at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:115) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 21 more
Submitting to server and then seeing the test results in the bottom window works fine.
Steps to reproduce
Install IntelliJ IDEA CE (2018.2), added the TMC plugin and logged in, chose the organization and course, then pressed "Download course exercises".
Expected result
The course exercises should start downloading into the folder for projects.
Actual result
A progress bar showed up, but an error message came up stating that the downloads failed (asked me to check the internet connection - despite being on a perfectly healthy and stable internet connection).
Nothing got downloaded into the Folder for projects.
Subsequent attempts fail silently after the progress bar has popped up for a few seconds.
Nothing gets logged in idea.log.
Notes
Tried shutting down IntelliJ, removing ~/Library/Application Support/IdeaIC2018.2
and starting from scratch, but the TMC-related settings are still the same as before, and the error remains.
After also removing ~/Library/Preferences/IdeaIC2018.2
, the settings were reset, but after logging in and choosing the course etc the download fails silently.
Running local tests on Maven managed exercise throws following exception (In form of IDE Error) without running tests.
Course in question is https://tmc.mooc.fi/org/hy/courses/266 but I remember seeing similar problems with other courses aswell.
Running 'mvn test' from Project directory causes no errors so the problem seems to be in plugin. Idea.log also didn't seem to provide anything interesting in matter apart from IDE error itself, attached it anyways below (renamed ideacrash.log)
org/apache/maven/shared/invoker/MavenInvocationException
java.lang.NoClassDefFoundError: org/apache/maven/shared/invoker/MavenInvocationException
at fi.helsinki.cs.tmc.langs.java.maven.MavenExecutors.tryAndExec(MavenExecutors.java:16)
at fi.helsinki.cs.tmc.langs.java.maven.MavenPlugin.build(MavenPlugin.java:77)
at fi.helsinki.cs.tmc.langs.java.AbstractJavaPlugin.runTests(AbstractJavaPlugin.java:126)
at fi.helsinki.cs.tmc.langs.util.TaskExecutorImpl.runTests(TaskExecutorImpl.java:37)
at fi.helsinki.cs.tmc.core.commands.RunTests.call(RunTests.java:40)
at fi.helsinki.cs.tmc.core.commands.RunTests.call(RunTests.java:19)
at fi.helsinki.cs.tmc.core.utilities.ExceptionTrackingCallable.call(ExceptionTrackingCallable.java:34)
at fi.helsinki.cs.tmc.intellij.services.TestRunningService.lambda$prepareThreadForRunningTests$0(TestRunningService.java:68)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:548)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:493)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157)
at fi.helsinki.cs.tmc.intellij.services.ThreadingService.lambda$runWithNotification$0(ThreadingService.java:20)
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)
Caused by: java.lang.ClassNotFoundException: org.apache.maven.shared.invoker.MavenInvocationException PluginClassLoader[fi.helsinki.cs.tmc, 1.0.8] com.intellij.ide.plugins.cl.PluginClassLoader@21235406
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 20 more
I've been unable to select the organization I am using. In fact, IntelliJ just stops working once I get to the organization screen. I can see the orgs, but cannot select any of them or close the window. When I click on the window, I get the classic Windows "ding" notification that indicates that I can't do something (I don't know how else to describe that noise).
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)
This error occurs anytime I attempt to submit an exercise or test locally using intellijIDEA ce 2020.2.1
java.lang.ExceptionInInitializerError at fi.helsinki.cs.tmc.intellij.spyware.ButtonInputListener.addEvent(ButtonInputListener.java:94) at fi.helsinki.cs.tmc.intellij.spyware.ButtonInputListener.sendProjectActionEvent(ButtonInputListener.java:74) at fi.helsinki.cs.tmc.intellij.spyware.ButtonInputListener.receiveSettings(ButtonInputListener.java:65) at fi.helsinki.cs.tmc.intellij.ui.settings.SettingsPanel.lambda$createActionListenerOk$5(SettingsPanel.java:215) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967) at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308) at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262) at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:270) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6654) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3345) at java.desktop/java.awt.Component.processEvent(Component.java:6419) at java.desktop/java.awt.Container.processEvent(Container.java:2263) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5029) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:971) at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:906) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:838) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:452) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:744) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:451) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:802) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:505) 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) Caused by: fi.helsinki.cs.tmc.core.exceptions.UninitializedHolderException: Attempted to get item from a holder that was not properly initialized at fi.helsinki.cs.tmc.core.holders.TmcSettingsHolder.get(TmcSettingsHolder.java:25) at fi.helsinki.cs.tmc.core.communication.TmcServerCommunicationTaskFactory.<init>(TmcServerCommunicationTaskFactory.java:72) at fi.helsinki.cs.tmc.intellij.spyware.SpywareEventManager.<clinit>(SpywareEventManager.java:40) ... 47 more
Getting this error when using:
public void printMeals() {
this.meals.forEach(meal -> System.out.println(meal));
}
It'd be nice if TMC supported Java 8 features :)
Fails at test8 🤔 , seems to work on netbeans
. Any reason why ?
/test/NightSkyTest.java
@Test
@Points("100.1")
public void test8() {
noForbiddens();
}
private void noForbiddens() {
try {
Scanner lukija = new Scanner(new File("src/NightSky.java"));
while (lukija.hasNext()) {
String rivi = lukija.nextLine();
if (rivi.contains("while")) {
fail("Koska nyt harjoitellaan for-toistolauseketta, "
+ "et saa käyttää ohjelmassasi while-komentoa.");
}
}
} catch (Exception e) {
fail(e.getMessage());
}
}
Error Details:
src/NightSky.java (No such file or directory)
org.junit.Assert.fail(Assert.java:88)
NightSkyTest.noForbiddens(NightSkyTest.java:463)
NightSkyTest.test8(NightSkyTest.java:114)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
fi.helsinki.cs.tmc.edutestutils.MockStdio$1.evaluate(MockStdio.java:106)
org.junit.rules.RunRules.evaluate(RunRules.java:20)
org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
org.junit.runners.ParentRunner.run(ParentRunner.java:309)
fi.helsinki.cs.tmc.testrunner.TestRunner$TestingRunnable.runTestCase(TestRunner.java:134)
fi.helsinki.cs.tmc.testrunner.TestRunner$TestingRunnable.doRun(TestRunner.java:89)
fi.helsinki.cs.tmc.testrunner.TestRunner$TestingRunnable.run(TestRunner.java:70)
java.lang.Thread.run(Thread.java:745)
NOTE: this isn't really an issue with the plugin but more with the assignments that are downloaded using the plugin, if anyone could point me to where I should report issues with the assignments that would be great.
Since server-side tests don't work anymore either (will create issue after this) I wanted to run the local tests until I knew for sure the program was right, to make sure that the problem was not in reading the returned data from the server but in the server testing process.
To reproduce:
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// implement your program here
// do not put all to one method/class but rather design a proper structure to your program
// Your program should use only one Scanner object, i.e., it is allowed to call
// new Scanner only once. If you need scanner in multiple places, you can pass it as parameter
ArrayList<Bird> database = new ArrayList<>();
Scanner reader = new Scanner(System.in);
String command;
String newName;
String newLatinName;
String searchName;
Boolean isBird;
loop:
while (true) {
System.out.print("? ");
isBird = false;
command = reader.nextLine();
switch (command) {
case "Add": {
System.out.print("name: ");
newName = reader.nextLine();
System.out.print("Latin Name: ");
newLatinName = reader.nextLine();
database.add(new Bird(newName, newLatinName));
break;
}
case "Observation": {
System.out.print("What was observed:? ");
searchName = reader.nextLine();
for (Bird bird : database) {
if (bird.getName().equals(searchName)) {
bird.observe();
isBird = true;
}
}
if (!isBird) {
System.out.println("Is not a bird!");
}
break;
}
case "Statistics": {
for (Bird bird :
database) {
System.out.println(bird);
}
break;
}
case "Show": {
System.out.print("What? ");
searchName = reader.nextLine();
for (Bird bird :
database) {
if (bird.getName().equals(searchName)) {
isBird = true;
System.out.println(bird);
}
if (!isBird) {
System.out.println("Is not a bird!");
}
}
break;
}
case "Quit": {
break loop;
}
default: {
System.out.println("Invalid command!");
break;
}
}
}
}
}
public class Bird {
private String name;
private String latinName;
private int observations;
public Bird(String name, String latinName) {
this.name = name;
this.latinName = latinName;
}
public String getName() {
return this.name;
}
public void observe() {
this.observations++;
}
public String toString() {
String printable = "";
printable += this.name;
printable += (" " + "(" + this.latinName + ")");
printable += (": " + String.valueOf(this.observations) + " observations");
return printable;
}
}
C:\Users\matth\Documents\IdeaProjects\TMCProjects\mooc-2013-OOProgrammingWithJava-PART1\week6-103.Birdwatcher\nbproject\build-impl.xml:603: The following error occurred while executing this line:
C:\Users\matth\Documents\IdeaProjects\TMCProjects\mooc-2013-OOProgrammingWithJava-PART1\week6-103.Birdwatcher\nbproject\build-impl.xml:245: Compile failed; see the compiler error output for details.
Total time: 1 second
and the compiler error output:
-do-compile:
[javac] Compiling 1 source file to C:\Users\matth\Documents\IdeaProjects\TMCProjects\mooc-2013-OOProgrammingWithJava-PART1\week6-103.Birdwatcher\build\classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] C:\Users\matth\Documents\IdeaProjects\TMCProjects\mooc-2013-OOProgrammingWithJava-PART1\week6-103.Birdwatcher\src\Main.java:13: error: diamond operator is not supported in -source 1.6
[javac] ArrayList<Bird> database = new ArrayList<>();
[javac] ^
[javac] (use -source 7 or higher to enable diamond operator)
[javac] 1 error
[javac] 1 warning
To fix:
javac.source
and javac.target
from 1.6 to 7 (for new enough syntax to include this diamond operator and String objects in case switches)They now work.
To me this seems like a problem with how the assignments where created, but I have no idea where in this project they are created, if I should have made this issue somewhere else please tell me.
Clicking downloading exercises brings up the pop box for 2 seconds then nothing happens
Using https://tmc.mooc.fi/mooc as the server address doesn't seem to work. https://tmc.mooc.fi was the correct one for me
The label states "Please report the problem to plugin vendor: Ohtu IntelliJ team @ Github (https://github.com/ohtu-intellij/tmc-intellij).
Instead it should be pointing here and perhaps plugin vendor name should be also updated
Im on Windows 10 and my IntelliJ IDEA version is: IU-181.4203.550
And it also worked fine up until a couple of days ago, and I havent messed around with any of the setting of either IntelliJ or the TMC plugin.
First of, everytime I open up an exercise the packages arent showing only the .xml, .mf, .iml and .gitignore. I can temporarily fix this by deleting all the exercise I have downloaded and download them again, but if I close down my pc or Intellij I need to do it again.
Secondly when I finally get everything to show in my Intellij project and try to run the project, I get the following line of error codes:
Information:java: Errors occurred while compiling module 'week4-073.Product'
Information:javac 1.8.0_144 was used to compile java sources
Information:4/17/2018 9:01 AM - Compilation completed with 37 errors and 0 warnings in 1s 578ms
C:\Users\nerdi\OneDrive\Documents\IdeaProjects\TMCProjects\mooc-2013-OOProgrammingWithJava-PART1\week4-073.Product\test\ProductTest.java
Error:(2, 39) java: package fi.helsinki.cs.tmc.edutestutils does not exist
Error:(3, 39) java: package fi.helsinki.cs.tmc.edutestutils does not exist
Error:(4, 39) java: package fi.helsinki.cs.tmc.edutestutils does not exist
Error:(5, 39) java: package fi.helsinki.cs.tmc.edutestutils does not exist
Error:(6, 46) java: package fi.helsinki.cs.tmc.edutestutils.Reflex does not exist
Error:(7, 46) java: package fi.helsinki.cs.tmc.edutestutils.Reflex does not exist
Error:(11, 17) java: package org.junit does not exist
Error:(12, 17) java: package org.junit does not exist
Error:(13, 24) java: package org.junit does not exist
Error:(15, 2) java: cannot find symbol
symbol: class Points
Error:(18, 11) java: package Reflex does not exist
Error:(21, 6) java: cannot find symbol
symbol: class Before
location: class ProductTest
Error:(26, 6) java: cannot find symbol
symbol: class Test
location: class ProductTest
Error:(31, 6) java: cannot find symbol
symbol: class Test
location: class ProductTest
Error:(39, 6) java: cannot find symbol
symbol: class Test
location: class ProductTest
Error:(44, 6) java: cannot find symbol
symbol: class Test
location: class ProductTest
Error:(62, 6) java: cannot find symbol
symbol: class Test
location: class ProductTest
Error:(78, 6) java: cannot find symbol
symbol: class Test
location: class ProductTest
Error:(23, 17) java: cannot find symbol
symbol: variable Reflex
location: class ProductTest
Error:(33, 15) java: package Reflex does not exist
Error:(46, 15) java: package Reflex does not exist
Error:(46, 46) java: cannot find symbol
symbol: variable Reflex
location: class ProductTest
Error:(54, 13) java: cannot find symbol
symbol: method fail(java.lang.String)
location: class ProductTest
Error:(64, 9) java: cannot find symbol
symbol: class MockInOut
location: class ProductTest
Error:(64, 29) java: cannot find symbol
symbol: class MockInOut
location: class ProductTest
Error:(73, 9) java: cannot find symbol
symbol: method assertTrue(java.lang.String,boolean)
location: class ProductTest
Error:(74, 9) java: cannot find symbol
symbol: method assertTrue(java.lang.String,boolean)
location: class ProductTest
Error:(75, 9) java: cannot find symbol
symbol: method assertTrue(java.lang.String,boolean)
location: class ProductTest
Error:(81, 9) java: cannot find symbol
symbol: class MockInOut
location: class ProductTest
Error:(81, 29) java: cannot find symbol
symbol: class MockInOut
location: class ProductTest
Error:(88, 9) java: cannot find symbol
symbol: method assertTrue(java.lang.String,boolean)
location: class ProductTest
Error:(89, 9) java: cannot find symbol
symbol: method assertTrue(java.lang.String,boolean)
location: class ProductTest
Error:(90, 9) java: cannot find symbol
symbol: method assertTrue(java.lang.String,boolean)
location: class ProductTest
Error:(96, 26) java: cannot find symbol
symbol: variable ReflectionUtils
location: class ProductTest
Error:(99, 13) java: cannot find symbol
symbol: method assertFalse(java.lang.String,boolean)
location: class ProductTest
Error:(100, 13) java: cannot find symbol
symbol: method assertTrue(java.lang.String,boolean)
location: class ProductTest
Error:(110, 13) java: cannot find symbol
symbol: method assertTrue(java.lang.String,boolean)
location: class ProductTest
Pressing the "Open Next Exercise" menu item gives a NullPointerException. The current exercise was not the last in the list of exercises.
java.lang.NullPointerException at fi.helsinki.cs.tmc.intellij.services.exercises.NextExerciseFetcher.findNext(NextExerciseFetcher.java:72) at fi.helsinki.cs.tmc.intellij.services.exercises.NextExerciseFetcher.tryToOpenNext(NextExerciseFetcher.java:39) at fi.helsinki.cs.tmc.intellij.services.exercises.NextExerciseFetcher.openNext(NextExerciseFetcher.java:110) at fi.helsinki.cs.tmc.intellij.actions.buttonactions.OpenNextExerciseAction.openExercise(OpenNextExerciseAction.java:31) at fi.helsinki.cs.tmc.intellij.actions.buttonactions.OpenNextExerciseAction.actionPerformed(OpenNextExerciseAction.java:20) at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:220) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:237) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.lambda$actionPerformed$0(ActionMenuItem.java:304) at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:307) at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:106) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:294) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda$fireActionPerformed$0(ActionMenuItem.java:114) at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88) at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransaction$1(TransactionGuardImpl.java:111) at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:120) at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:122) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:114) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:308) at javax.swing.AbstractButton.doClick(AbstractButton.java:376) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:842) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:886) at java.awt.Component.processMouseEvent(Component.java:6548) at javax.swing.JComponent.processMouseEvent(JComponent.java:3325) at java.awt.Component.processEvent(Component.java:6313) at java.awt.Container.processEvent(Container.java:2237) at java.awt.Component.dispatchEventImpl(Component.java:4903) at java.awt.Container.dispatchEventImpl(Container.java:2295) at java.awt.Component.dispatchEvent(Component.java:4725) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467) at java.awt.Container.dispatchEventImpl(Container.java:2281) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4725) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764) at java.awt.EventQueue.access$500(EventQueue.java:98) at java.awt.EventQueue$3.run(EventQueue.java:715) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90) at java.awt.EventQueue$4.run(EventQueue.java:737) at java.awt.EventQueue$4.run(EventQueue.java:735) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:734) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:781) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:718) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382) 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)
System information:
OS: Arch Linux
Architecture: x86_64
Kernel: 4.18.8
Locale: en_DK.UTF-8
IntelliJ version: IntelliJ Ultimate 2018.2.3
Java environment: The one bundled with IntelliJ Ultimate 2018.2.3
TMC plugin version: 2.0.2
Issue appears each time a project import is completed for "Object oriented programming with Java, part 1" (http://mooc.fi/english.html).
Argument for @NotNull parameter 'module' of com/intellij/psi/search/GlobalSearchScope.moduleScope must not be null
Argument for @NotNull parameter 'module' of com/intellij/psi/search/GlobalSearchScope.moduleScope must not be null
java.lang.IllegalArgumentException: Argument for @NotNull parameter 'module' of com/intellij/psi/search/GlobalSearchScope.moduleScope must not be null
at com.intellij.psi.search.GlobalSearchScope.moduleScope(GlobalSearchScope.java)
at fi.helsinki.cs.tmc.intellij.runners.RunConfigurationFactory.chooseMainClassForProject(RunConfigurationFactory.java:58)
at fi.helsinki.cs.tmc.intellij.runners.RunProject.makeSureConfigurationIsCorrectType(RunProject.java:27)
at fi.helsinki.cs.tmc.intellij.runners.RunProject.<init>(RunProject.java:18)
at fi.helsinki.cs.tmc.intellij.actions.buttonactions.RunProjectAction.runProject(RunProjectAction.java:38)
at fi.helsinki.cs.tmc.intellij.actions.buttonactions.RunProjectAction.actionPerformed(RunProjectAction.java:23)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:216)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:233)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:192)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:155)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:329)
at java.awt.Component.processEvent(Component.java:6306)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4897)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:821)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:645)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
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)
TODO
Messages
panel instead since it looks like it may come with click-to-open-source-line functionality out of the boxIs this a bug or did I do something wrong?
UNC path is missing sharename: //a554b02a
I had a TMC exercise open in Idea when I opened another non TMC project in new window, where I got this error:
-1
java.lang.ArrayIndexOutOfBoundsException: -1
at fi.helsinki.cs.tmc.intellij.services.ObjectFinder.findCurrentProject(ObjectFinder.java:174)
at fi.helsinki.cs.tmc.intellij.io.ProjectOpener.openProject(ProjectOpener.java:36)
at fi.helsinki.cs.tmc.intellij.io.ProjectOpener.openProject(ProjectOpener.java:76)
at fi.helsinki.cs.tmc.intellij.services.exercises.NextExerciseFetcher.openFirst(NextExerciseFetcher.java:90)
at fi.helsinki.cs.tmc.intellij.services.exercises.ExerciseDownloadingService$2.lambda$run$0(ExerciseDownloadingService.java:133)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:314)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:416)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:821)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:649)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
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)
When I'm in the teacher role for a certain course with Advanced Unlock Conditions set, the TMC plugin behaves unexpectedly. I can log in just fine, and the plugin shows the full exercise download list, although I can see the exercises of week 8 onwards are locked. They do not actually download, and when I open the first exercise I get an empty exercise list, and the upload exercise command does not work.
When I'm in the same course on a different account without the teacher role, it works as expected.
Course: 2013 Object-oriented programming, part 1
Have got below two error. Not able to run the TMC plugin.
Error1:
java.lang.ExceptionInInitializerError
at fi.helsinki.cs.tmc.intellij.spyware.ButtonInputListener.addEvent(ButtonInputListener.java:94)
at fi.helsinki.cs.tmc.intellij.spyware.ButtonInputListener.sendProjectActionEvent(ButtonInputListener.java:74)
at fi.helsinki.cs.tmc.intellij.spyware.ButtonInputListener.receiveSettings(ButtonInputListener.java:65)
at fi.helsinki.cs.tmc.intellij.ui.settings.SettingsPanel.lambda$createActionListenerOk$5(SettingsPanel.java:215)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6548)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3325)
at java.awt.Component.processEvent(Component.java:6313)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4903)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:718)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
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)
Caused by: fi.helsinki.cs.tmc.core.exceptions.UninitializedHolderException: Attempted to get item from a holder that was not properly initialized
at fi.helsinki.cs.tmc.core.holders.TmcSettingsHolder.get(TmcSettingsHolder.java:25)
at fi.helsinki.cs.tmc.core.communication.TmcServerCommunicationTaskFactory.(TmcServerCommunicationTaskFactory.java:72)
at fi.helsinki.cs.tmc.intellij.spyware.SpywareEventManager.(SpywareEventManager.java:40)
... 43 more
Error2:
java.lang.NoClassDefFoundError: Could not initialize class fi.helsinki.cs.tmc.intellij.spyware.SpywareEventManager
at fi.helsinki.cs.tmc.intellij.spyware.ButtonInputListener.addEvent(ButtonInputListener.java:94)
at fi.helsinki.cs.tmc.intellij.spyware.ButtonInputListener.sendProjectActionEvent(ButtonInputListener.java:74)
at fi.helsinki.cs.tmc.intellij.spyware.ButtonInputListener.receiveSettings(ButtonInputListener.java:65)
at fi.helsinki.cs.tmc.intellij.ui.settings.SettingsPanel.lambda$createActionListenerOk$5(SettingsPanel.java:215)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6548)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3325)
at java.awt.Component.processEvent(Component.java:6313)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4903)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:718)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.