Closed repenaattori closed 11 months ago
I am getting the same issue here after the new update, even if i install a previous version of the extension, it doesn't solve the problem
From the logs it appears this is related to the Java setup: Caused by: java.lang.ClassNotFoundException: org.astonbitecode.j4rs.api.deploy.J4rsClassLoader
. So far I have not been able to replicate this issue on my Windows 10 install, but you could try making sure that the JAVA_HOME
environment variable is set up correctly and/or reinstalling Java while I look into this further.
You can check the JAVA_HOME
environment variable by running echo %JAVA_HOME%
in the terminal or finding the environment variables menu through the Control Panel. The variable should contain the path to an up to date Java install, such as C:\Program Files\Eclipse Adoptium\jdk-17.0.6.10-hotspot
.
Both the automated tests and my local install use the latest LTS release of Eclipse Temurin OpenJDK 17 from https://adoptium.net/, so it should hopefully at least work with that.
I had a conversation with one of the students that earlier had this problem. We checked and the Environment variables are set correctly (I've guided this in the beginning of the course). I think no one got this error until updating from version 2.1.5.
I'm not sure if the students are willing to start to change their Java configurations this late in the course as the problem is not preventing the submission, but I could recommend to install the Temurin version in the next implementation.
Getting it as well in GitHub Code Spaces
Empy Langs Response Error
Langs process ended without result data.
Details:
Error stack
Empy Langs Response Error: Langs process ended without result data.
at l.
However, it runs the tests just fine. The above I only see when submit to server. When I go back to course and refresh the exercise I can see I have gotten the points.
I'm receiving the error as well, but only on successful code submissions. When code is submitted, accepted into TMC and counted for points in the TMC server that's when I get the error. However if I submit code that is incorrect and 'pass fail' feedback is given explaining why the submissionf ailed, or if the code itself was broken because I included an extra parenthesis or bracket or forgot a semicolon I will get feedback from the submission as expected.
Currently running the Java Programming I course so I can't speak to whether the problem is happening on other courses, but I'm guessing there's either a server timeout ending the connection without a server response, a server response on successful submission isn't given at all, or the response from the server on successful submission is different from what the TMC plugin is expecting.
Note: I am also using the latest version of the TestMyCode plugin v2.2.2
This should be fixed now in 2.2.3, thanks for the reports.
This should be fixed now in 2.2.3, thanks for the reports.
@Heliozoa - Can confirm that version 2.2.3 has fixed the issue for me. Thanks so much for all the work you do on this extension. The community really appreciates it!
Describe the bug Getting Empty Langs Response Error when submitting exercise to the server or running test by TMC button.
To Reproduce Steps to reproduce the behavior:
Expected behavior Tests result view shows the passed/failed test results OR Submit result view shows that the exercise is successfully passed to the server
Screenshots
Desktop (please complete the following information):
TMC Extension logs
Additional context The tests work by running them directly from VS Code tests tab. If the problem occurs during the submit, the exercises are sent to the server and points are submitted thus the error won't affect the actual submit result. The previous logs are from running the tests. No logs from the submit case.