-
Notifications
You must be signed in to change notification settings - Fork 122
Importing into IntelliJ
Patrick Werner edited this page May 5, 2020
·
17 revisions
IntelliJ IDEA Community Edition can be downloaded for free from here.
We have designed our code style formatter for Java code.
- Go to File->Settings->Plugins and download the "Eclipse Code Formatter" plugin
- Restart the IDE
- Go to File->Settings->Eclipse Code Formatter and enable "Use the Eclipse Code Formatter"
- In the line "Eclipse Java Formatter config file" click "Browse..." and select openRobertaJava formatter from
./Resources/formatter
folder
Not tested: Javascript in IDEA Ultimate (may produce other formatting than Eclipse, prefer using Eclipse here)
- Go to File->Settings->Editor->Code Style->Javascript->Cog symbol->Import Scheme->Eclipse XML Profile and import openRobertaJavascript 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')
- If 'Unregistered VCS root detected' pops up, click 'Add root'
- Right click OpenRobertaServer and choose 'Open Module Settings (F4)'
- Under 'File | Project Structure | Project Settings | Modules', add all robot plugin modules as a Compile dependency (Not WedoInterpreter)
- 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 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