Created Eclipse Installation (markdown)

Frank 2023-09-07 22:43:56 +02:00
parent e6817f3a55
commit 6ba552880d

41
Eclipse-Installation.md Normal file

@ -0,0 +1,41 @@
This guide describes how to install Eclipse and install the necessary Lua environment. Note that the Lua environment is not actively supported any more by Oracle. Especially the LDT plugin is not working when installed from the market place. The problem and solution is nicely described [here](https://www.eclipse.org/forums/index.php/t/1101907/).
# Prerequisites
* Download Eclipse from [eclipse.org](https://www.eclipse.org/downloads/)
* Download [dltk-core](https://www.eclipse.org/downloads/download.php?file=/technology/dltk/downloads/drops/R5.7/R-5.7.1-201703020501/dltk-core-R-5.7.1-201703020501.zip)
* Download or clone [MOOSE repository](https://github.com/FlightControl-Master/MOOSE/) (select branch you want `master` or `develop`)
# Install Eclipse
First you need to install Eclipse. It will ask you what kind of environment you use, *e.g.* C++ or Java or...
This does not really matter since we want to use it for Lua and need to install that plugin later.
# Install dltk-core
Before you can install the LDT plugin, you first need to add dltk-core zip file to the available software sites. Open eclipse, go to the help menu and follow the steps in the image:
![Eclipse-Install_LDTK_1](https://github.com/FlightControl-Master/MOOSE_GUIDES/assets/28947887/b6b0060b-f151-4a5d-a59d-44a65b8ae07d)
This should then be in the available software sites.
![Eclipse-Install_LDTK_2](https://github.com/FlightControl-Master/MOOSE_GUIDES/assets/28947887/613191e7-52b1-4d83-8002-c34d4dc11c4e)
# Install LDT Plugin
Open eclipse and from the "Help" menu open the "Eclipse Marketplase"
![Eclipse-Install_Lua_1](https://github.com/FlightControl-Master/MOOSE_GUIDES/assets/28947887/496f3623-7880-422d-b087-96c0a322c002)
In the "Search" tab find "lua" and install the "Lua Development Tools 1.4.x"
![Eclipse-Install_Lua_2](https://github.com/FlightControl-Master/MOOSE_GUIDES/assets/28947887/cda955e5-e9bc-448f-8271-50802d37c2ee)
# Setup Lua Project for MOOSE
Now that Eclipse and LDT are installed, we need to add MOOSE as a LUA project. Open Eclipse and from the "File" menu select "Other"
![Eclipse-Lua_Project_1](https://github.com/FlightControl-Master/MOOSE_GUIDES/assets/28947887/900035f1-8ad5-4d99-95e6-9eddac3d48dd)
In the wizard window that opens select "Lua Project"
![Eclipse-Lua_Project_2](https://github.com/FlightControl-Master/MOOSE_GUIDES/assets/28947887/ecd30c20-063c-44ec-a833-39f071dcb9c1)
Setup the Lua project as described in the image. You need to specify the path to where you downloaded the MOOSE repository
![Eclipse-Lua_Project_3a](https://github.com/FlightControl-Master/MOOSE_GUIDES/assets/28947887/e787379e-2b75-4a5e-8f89-a59cf7cad8ee)
From the "Project" tab select "Properties" and add `Moose/Moose Development/Moose` to the build path as shown below
![Eclipse-Lua_Project_4](https://github.com/FlightControl-Master/MOOSE_GUIDES/assets/28947887/0e2443b5-c740-4bfc-a6ae-def77417df79)
# Finally
Now you are done! Check that your script explorer looks like in the image below and that the intellisense is working when you open a MOOSE file
![Eclipse-Lua_Project_5](https://github.com/FlightControl-Master/MOOSE_GUIDES/assets/28947887/93f2e636-fce1-403f-934a-8271afa196b1)