Skip to content

User guide: Setting up your workspace and getting started

nucularmoo edited this page Dec 22, 2017 · 12 revisions

This guide is written to help you get started using the TMC plugin for Qt Creator.

Prerequisites for running the TMC Qt Creator plugin are:

  1. User has Java Runtime installed
  2. User has the executable tmc-langs-cli .jar file located on their hard drive
  3. User has the Qt Creator IDE installed.

Retrieving the tmc-langs-cli .jar file

We will be using the tmc-langs-cli .jar file for testing projects locally before they are submitted to be tested at the TMC server.

Please visit the maven testmycode directory for tmc-langs-cli.
From the newest SNAPSHOT directory, download the tmc-langs-cli .jar file that does not have "sources" in it's file name.
You should be looking for for something such as /0.7.7-SNAPSHOT/tmc-langs-cli-0.7.7-20171213.095142-15.jar.
Store the file in a convenient place, as we will be using it later when setting up the plugin.

Linux

You can download and install Qt Creator either from qt.io or install the package using the package manager of your distribution.

Windows

You can download and install Qt Creator from qt.io.

Getting started

All the functionality related related to the TMC plugin for Qt Creator can be found in the dropdown menu named TestMyCode.

If you are running the plugin for the first time, you will need to enter the address to the TMC server and logging in using your TMC username and password using the login menu. All other TestMyCode menu options will remain unavailable until you do so.

Once you have logged in, you will be able to enter the settings menu to set up your workspace.
To set up your workspace, please select your organization and the course you are participating in.
Next, choose your project folder (this is where your exercises will be downloaded) and locate the tmc-langs cli .jar file on your hard drive.
If you wish to tweak the exercise update interval, feel free to do so.

After setting up your workspace, you are now ready to download the exercises your course has available.

Once you have downloaded and configured the exercises, you are ready to start coding!

You may test your code locally at any time using the Test project option.
If your code passes the required local tests, you will be prompted to submit your code to be tested serverside.
If you wish to refactor your code before submitting, you can simply press "Cancel" and submit your code manually or trough local testing at a later time.

Getting started, but with pictures

First time menu view

Login window

Settings window

Download window

Download pane

Configure project

Unconfigured project

Configured active project

Tested and ready to submit

Clone this wiki locally