Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Koneki/LDT/User Area/New and Noteworthy/New and Noteworthy 1.0"

(Support of Lua 5.2)
Line 4: Line 4:
 
== Support of Lua 5.2 ==
 
== Support of Lua 5.2 ==
  
LDT now provides a Lua 5.2 user experience directly shipped in the product.
+
LDT now provides a Lua 5.2 user experience directly shipped with the product.
That means LDT provide out of the box:
+
Which means LDT provide out of the box:
* the embedded Lua 5.2 Execution Environment which provide great user-assistance (content-assist, documentation,...)
+
* Embedded Lua 5.2 Execution Environment which provide great user-assistance (content-assist, documentation,...)
* the embedded Lua 5.2 interpreter based on [http://code.google.com/p/jnlua/ JNLua] to allow running and debugging applications out of the box.
+
* Built-in Lua 5.2 interpreter based on [http://code.google.com/p/jnlua/ JNLua] which enable running and debugging applications out of the box.
  
 
==Support of LuaJIT debug==
 
==Support of LuaJIT debug==

Revision as of 10:11, 19 April 2013

New & Noteworthy 1.0

Here are the new features available in Lua Development Tools 1.0 M1, released on April 19th, 2013.
This version is available from the Koneki p2 repository at http://download.eclipse.org/koneki/releases/stables.

Support of Lua 5.2

LDT now provides a Lua 5.2 user experience directly shipped with the product. Which means LDT provide out of the box:

  • Embedded Lua 5.2 Execution Environment which provide great user-assistance (content-assist, documentation,...)
  • Built-in Lua 5.2 interpreter based on JNLua which enable running and debugging applications out of the box.

Support of LuaJIT debug

LDT debugger is now compatible LuaJIT 2.0.x interpreter. LuaJIT is a Just-In-Time Compiler (JIT) for the Lua programming language.

Enhanced support of non-standard interpreters

In the interpreter preferences it's now possible to define if your interpreter doesn't handle the "-e" option to execute a piece of code. This options enable to start a debugging session with a larger kind of interpreter but be aware that in this case the user is responsible to launch the debugger by adding the following code:

> if os.getenv('DEBUG_MODE') then require "debugger"() end

Where the DEBUG_MODE environment variable is set only when debugging to avoid to start the debugger when launching launch configuration in run mode.

Better user-assistance

It's now possible to type and set a description a local var or a global var by adding a comment before or after the declaration of the variable. A global variable declaration is when the global is affected for the first type. Typing a variable allow to have auto-completion on it and clarify your code.

If a function parameters is documented and associated with a type using the [Koneki/LDT/User_Area/Documentation_Language#Function_comment_block|Lua Documentation Language], parameters in the code are also associated with the given type and that enable auto-completion on it.

If a @type or @module tag from the [Koneki/LDT/User_Area/Documentation_Language#Function_comment_block|Lua Documentation Language] is directly followed by a variable declaration, the declared type or module type is associated to the variable.

Enhanced outline

The outline now contains new stuff such as global variables and local and global functions. Also the type of outline elements is not displayed if any. It's also possible to type and attach a description to a local or global variables by adding a comment just before or after the variable as follow.

Integration of the last version of Metalua

Metalua is the key component that analyze the Lua code. LDT now use the last version of Metalua which the enhance syntax error handling and fix some clue bugs.

Back to the top