Code Monkey home page Code Monkey logo

Comments (6)

jackfterry avatar jackfterry commented on July 20, 2024 3

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).

  1. Open and close the project (this loads the project in the project viewer, as it doesn't seem to open automatically).
  2. 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.
  3. 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.
  4. 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.

vilmakoo avatar vilmakoo commented on July 20, 2024

Try building the project (Build -> Rebuild Project).

from tmc-intellij.

zysktomasz avatar zysktomasz commented on July 20, 2024

@jackfterry Thanks, your solution was the only thing that worked for me.

from tmc-intellij.

tomWhilbert avatar tomWhilbert commented on July 20, 2024

Yes, these directions work! cheers

from tmc-intellij.

Adrianczuk avatar Adrianczuk commented on July 20, 2024

@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.

ashleyghooper avatar ashleyghooper commented on July 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.