Developing with an IDE
You can use IntelliJ IDEA as an IDE to develop and debug Lua applications for Tarantool.
Download and install the IDE from the official web-site.
JetBrains provides specialized editions for particular languages: IntelliJ IDEA (Java), PHPStorm (PHP), PyCharm (Python), RubyMine (Ruby), CLion (C/C++), WebStorm (Web) and others. So, download a version that suits your primary programming language.
Tarantool integration is supported for all editions.
Configure the IDE:
Start IntelliJ IDEA.
Click
Configure
button and selectPlugins
.Click
Browse repositories
.Install
EmmyLua
plugin.Note
Please don’t be confused with
Lua
plugin, which is less powerful thanEmmyLua
.Restart IntelliJ IDEA.
Click
Configure
, selectProject Defaults
and thenRun Configurations
.Find
Lua Application
in the sidebar at the left.In
Program
, type a path to an installedtarantool
binary.By default, this is
tarantool
or/usr/bin/tarantool
on most platforms.If you installed
tarantool
from sources to a custom directory, please specify the proper path here.Now IntelliJ IDEA is ready to use with Tarantool.
Create a new Lua project.
Add a new Lua file, for example
init.lua
.Write your code, save the file.
To run you application, click
Run -> Run
in the main menu and select your source file in the list.Or click
Run -> Debug
to start debugging.Note
To use Lua debugger, please upgrade Tarantool to version 1.7.5-29-gbb6170e4b or later.