Comments (7)
Hi! If you take a look at the IntelliJ IDEA log file and search for fi.helsinki.cs.tmc
, do you find any stack traces or such? If so, could you paste them here or to https://gist.github.com/, please?
from tmc-intellij.
adding logs
I tried to do the minimum to simulate the situation
error_log_12_12_2016.txt
threadDump-20161212-230853.txt
- turn on env
- switch to the excercise
- try to upload
- save logs
from tmc-intellij.
Hmm, the logs don't really reveal anything at all. After you click on Submit, can you see your submission on https://tmc.mooc.fi/org/mooc/courses/173 ?
from tmc-intellij.
Weird, submitting the second exercise works fine for me. The local tests just return success immediately, that's in the other issue though.
from tmc-intellij.
No, no trace there, however good to know i can try manually -> which worked
I recorded the whole process (windows step recorder)
submit_code_recording.zip
The issue is not important as i can submit the code manually, however the unknown reasons for it are puzzling
from tmc-intellij.
Found at least one issue that sounds like it could be this one: if the deadline has passed, the tmc core's submission fails with a 401 HTTP error. This throws an exception which is logged, but no message is shown to the user.
fi.helsinki.cs.tmc.core.exceptions.TmcCoreException: Failed to submit exercise
at fi.helsinki.cs.tmc.core.commands.AbstractSubmissionCommand.submitToServer(AbstractSubmissionCommand.java:76)
at fi.helsinki.cs.tmc.core.commands.Submit.call(Submit.java:55)
at fi.helsinki.cs.tmc.core.commands.Submit.call(Submit.java:23)
at fi.helsinki.cs.tmc.intellij.services.exercises.ExerciseUploadingService.getSubmissionResult(ExerciseUploadingService.java:110)
at fi.helsinki.cs.tmc.intellij.services.exercises.ExerciseUploadingService.access$000(ExerciseUploadingService.java:25)
at fi.helsinki.cs.tmc.intellij.services.exercises.ExerciseUploadingService$1.run(ExerciseUploadingService.java:86)
at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:179)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:568)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:164)
at fi.helsinki.cs.tmc.intellij.services.ThreadingService$1.run(ThreadingService.java:23)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309)
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: fi.helsinki.cs.tmc.core.exceptions.FailedHttpResponseException: Response code: 401
at fi.helsinki.cs.tmc.core.communication.http.HttpRequestExecutor.handleResponse(HttpRequestExecutor.java:163)
at fi.helsinki.cs.tmc.core.communication.http.HttpRequestExecutor.executeRequest(HttpRequestExecutor.java:142)
at fi.helsinki.cs.tmc.core.communication.http.HttpRequestExecutor.call(HttpRequestExecutor.java:84)
at fi.helsinki.cs.tmc.core.communication.http.HttpTasks$2.call(HttpTasks.java:94)
at fi.helsinki.cs.tmc.core.communication.http.HttpTasks$2.call(HttpTasks.java:91)
at fi.helsinki.cs.tmc.core.communication.TmcServerCommunicationTaskFactory$4.call(TmcServerCommunicationTaskFactory.java:201)
at fi.helsinki.cs.tmc.core.communication.TmcServerCommunicationTaskFactory$4.call(TmcServerCommunicationTaskFactory.java:196)
at fi.helsinki.cs.tmc.core.commands.AbstractSubmissionCommand.submitToServer(AbstractSubmissionCommand.java:67)
... 17 more
from tmc-intellij.
Found similar issue with my submission on mooc-2017-ohjelmointi. Seems that (at least one) culprit here is lacking response in case of false indentation. Uploading falsely indentated code in this course causes "Error while watiing for response from server" loop. Only via https://tmc.mooc.fi/org/mooc/courses/199 was I able to find culprit. Seems IntelliJ plugin could be lacking Indendation error message and throw error when server answer with "Indentation incorrect. Expected 8, but was 9.".
After fixing indentation code submitted normally. Seems 100% reproducable.
from tmc-intellij.
Related Issues (20)
- Error when running local tests HOT 2
- NullPointerException when pressing button for next exercise HOT 4
- "Download course exercises" failed with error message on first attempt. Subsequent attempts fails silently HOT 1
- Mac ( High Sierra) Not Downloading Courses
- TMC for IntelliJ on mac doesn't work at all
- The colour green in Test Results bar is way too bright
- NullPointerException on pressing run test for current project
- IDE Fatal Error when Running test HOT 3
- PLEASE add support for newest IntelliJ
- Using version 2.0.2 tests fail to run HOT 2
- intellij TMC Plugin error
- IntelliJ plug in errors
- java.lang.NullPointerException
- IDE Fatal Error. Java.lang.NullPointer Exception HOT 2
- "Run tests for current project" isn't working
- Getting a nullpointer exception when trying to submit an exercise
- Cannot process toolwindow TMC Project List
- Plugin fails to start on IntelliJ 2022.2.3
- TMC plugin does not start on Intellij HOT 3
- Not seeing the TMC menu in Intellij Ultimate HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmc-intellij.