Comments (6)
I had this issue too, but found a fix. I think that the TMC add in doesn't set up and configure the project and correctly when it is first opened.
When selecting a new exercise (with Intellij already open) I have to perform the following actions).
- Open and close the project (this loads the project in the project viewer, as it doesn't seem to open automatically).
- Open File -> Project Structure -> Project.
Select a suitable Project SDK and project language level.
Also select a path to put the Project Compiler output in. - Then click on Modules on the left. Click on the "src" folder and then click on "Mark as: Sources". This should add blue writing "Source Folders src" on the right.
- Close the dialogue box and click the TMC Run Project green arrow. Intellij should automatically identify the main class which should relate to the exercise you are doing.
It is now possible to run the project, run the tests and submit the code with TMC. I haven't figured out how to automate this, so if anyone figures this out, let me know.
I'm using IntelliJ version 2019.1.1 community edition with TMC v2.0.2
from tmc-intellij.
Try building the project (Build -> Rebuild Project).
from tmc-intellij.
@jackfterry Thanks, your solution was the only thing that worked for me.
from tmc-intellij.
Yes, these directions work! cheers
from tmc-intellij.
@jackfterry Thanks, in addition to the above I had to make an additional step:
Set Project language level to 8 inside File -> Project Structure -> Project
Also project compiler output should be the test folder
from tmc-intellij.
@jackfterry, you can set the default SDK and language level by going to File | Other Settings | Structure for New Projects. Then you just have to set the compiler output path and mark the src directory as a Sources Root.
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.