-
Notifications
You must be signed in to change notification settings - Fork 122
Importing into IntelliJ
Maximilian Göckel edited this page Jul 2, 2019
·
17 revisions
IntelliJ IDEA Community Edition can be downloaded for free from here.
We have designed our code style formatter for Java and JavaScript code.
- Go to File->Settings->Editor->Code Style->Java->Cog symbol->Import Scheme->Eclipse XML Profile and import openRobertaJava formatter from
./Resources/formatter
folder
This assumes that you have read and followed the 'Prerequisites' page in our wiki with the same paths.
- Start IntelliJ and use 'File | Open Project (Alt + F + O)'
- Navigate to the 'openroberta-lab' directory that was cloned with git and double-click it
- In the upcoming dialog select 'Open as project'
- In the popup in the button 'Unregistered VCS root detected', click 'Add root'
- Right click OpenRobertaServer and choose 'Open Module Settings (F4)'
- Under 'Project Settings | Modules', add all robot plugin modules as a Compile dependency
- Under 'Project Settings | Project' set the project SDK to Java 1.8
- Go to OpenRobertaServer module (de.fhg.iais.roberta.main)
- locate 'ServerStarter.java' (src/main/java/de/fhg/iais/roberta/main/ServerStarter.java) and run it (Ctrl + Shift + F10)
- This will immediately start the server, but paths to the compiler are not correct until now
- Terminate the server with a click on the red square
- locate 'ServerStarter.java' (src/main/java/de/fhg/iais/roberta/main/ServerStarter.java) and run it (Ctrl + Shift + F10)
- Open newly generated Run Configuration (Menu: 'Run / Edit Configurations... ')
- in
Program Arguments
add:-d database.parentdir=./OpenRobertaServer -d server.staticresources.dir=./OpenRobertaServer/staticResources -d robot.crosscompiler.resourcebase=../ora-cc-rsc
- Make sure the
Working directory
is set:<path to your git repo>
(relative paths also work)
- in
- Use 'Run | Edit Configurations'
- Click 'Add', select 'Maven', call the new entry 'tests'
- Set the working directory to 'OpenRobertaParent' (the git checkout dir)
- Set the command line to 'test'
Home | Community | Installation | Team
Installation Tutorials
- Instructions to run a openroberta lab server using DOCKER
- Instructions to run the Open Roberta Lab Server natively on ubuntu ‐ not recommended
- Raspberry Pi 2/3/4 and the Open Roberta Lab
- EV3 and leJOS
- EV3 and ev3dev
- Creating the OR leJOS image
- Arduino Create Agent
- Mbed DAL: Generation and automation
Development
-
Workflows
-
Architecture
-
Blockly
-
Software engineering issues
-
Misc
-
Notes on robots
Textual Representation
Contribution
Discussions on future development