= MoPE - Modelica Integration for Editors
image::https://rawgit.com/THM-MoTE/Logos/master/svgs/MoPE.svg[link="https://rawgit.com/THM-MoTE/Logos/master/svgs/MoPE.svg", align="center"]
MoPE brings IDE-features for Modelica into your favourite Editor.
NOTE: This is the server-process for MoPE.
CAUTION: Since Version 0.6.2 the JModelica support is broken due to changes in the compiler commmunication.
== Subprojects MoPE uses the following sub projects:
== Running as Docker Container
This repository contains a docker-compose
file which starts a local docker container containing OpenModelica and MoPE.
The compose file mounts your home directory into the container.
You don't have to install OpenModelica locally, just docker
and docker-compose
.
Just start the compose file through: docker-compose up
and you are all set for projects inside your home directory.
== Developer setup IMPORTANT: Installation instructions for users are available https://thm-mote.github.io//projects/mope[here].
The following guide is for developers:
Please install https://openmodelica.org/[OpenModelica] and check that its working correctly (which omc
).
Install a http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html[Java JDK] (version >= 8) and http://www.scala-sbt.org/[sbt].
$JAVA_HOME
environment variable.
On Linux-Systems you can create one by adding the following line to your ~/.bashrc
-file:
+
[source,sh]+ TIP: There is a script which automates step 4 till 6 and 8 available: link:tools/setup.sh[setup.sh]
parent/
omc-java-api
:
+
[source, sh]+
mope-server
and type compile
into the sbt prompt:
+
[source, sh]+
run
to start the server. MoPE will produce several logs during runtime.
Especially the starting log should look similar to this:
++ The log tells you on which server (localhost) and port (9001) the server is listening.
Setup the https://github.com/THM-MoTE/mope-atom-plugin[Atom plugin]
Set the interface
and port
in the Atom plugin in order to connect to the server.
After first execution, MoPE generates a configuration file located at ~/.mope/mope.conf
.
You can change it to suit your needs.
akka { .. }
-SECTION!
If you messed up your configuration just kill the whole ~/.moie
directory.== Creating a jar
You can create an executable-jar using the sbt assembly
command. This command packages
everything - including all dependencies - in one jar which is executable using java -jar <jar>
.
== REST-API / Protocol documentation
A documentation for the REST-API can be found in doc/protocol/
.
The documentation is in asciidoc
and can be converted into html or pdf by executing
make html
& make pdf
in the protocl
directory.
NOTE: Our main goal is to provide a similar development environment for Modelica like ENSIME for Scala.