Comments (6)
This happens when your code has errors, try running the code using the green play button and see what happens.
from tmc-intellij.
Unfortunately not the case here. This occurs when the code has zero errors. I just tried it with the unedited week5-085 template (which runs without error) to test this and it instantly passed the local tests. The problem also occurs on completed exercises; it says the code passes 100% but the individual tests do not display in the test results window so it seems like the code isn't being tested at all.
from tmc-intellij.
Hmm, yes, I've been seeing this on exercise 90, now I have to submit the exercise and wait for the test results from the server. Then the test results show up like the local tests do.
I tried a couple of things to try to solve this, but none of them worked:
- switch to a different exercise and run tests, then switch back
- restart intellij
- delete the cache directory that is created in the exercise and restart intellij
The next exercise seems to work again though…
from tmc-intellij.
@raikesy do you have any lines like
ArrayList<int> numbers = new ArrayList<>();
in your code? If so, try replacing them with
ArrayList<int> numbers = new ArrayList<int>();
etc. for other types of ArrayLists.
Note the second explicit type declaration. This "fix" has solved the problem for a couple of times now
from tmc-intellij.
The problem you describe is very familiair to me. When you push the run test button it will pretend to run the test with 100% pass, but not actually do so. Uploading the test will fail it on server. Manually running the test from the project window will actually run the test with fails. Does the test run fine when you choose run tests from the TMC menu item?
Most of my students have this problem as well. I can't reproduce it anymore, but when I started out, had the same problem. See my replies to #101. Maybe a restart of your PC solves the problem? That might have been it for me.
Weird thing is the one student on a mac didn't have this issue.
from tmc-intellij.
I confirmed this is an issue with my students when the bin folder containing javac is missing from the PATH environment variable. Adding it and restarting IntelliJ fixed the issue. I got the idea from issue #113
where @cxcorp mentioned: "Issue also manifests itself when javac is missing from the PATH."
from tmc-intellij.
Related Issues (20)
- UninitializedHolderException when selecting course
- 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
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.