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"

(Enhanced support of non-standard interpreters)
 
(31 intermediate revisions by 4 users not shown)
Line 1: Line 1:
=New & Noteworthy 1.0=
+
#REDIRECT [[LDT/User_Area/New_Noteworthy/New_Noteworthy_1.0]]
Here are the new features available in Lua Development Tools 1.0 M1, released on April 19<sup>th</sup>, 2013. <br />Keep in mind that this version in still under development and can be unable. Anyway, this version is available from the Koneki p2 repository at [http://download.eclipse.org/koneki/releases/milestones http://download.eclipse.org/koneki/releases/milestones].
+
 
+
== 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 [http://code.google.com/p/jnlua/ 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. [http://luajit.org/LuaJIT LuaJIT] is a Just-In-Time Compiler
+
(JIT) for the Lua programming language.
+
 
+
==Enhanced support of non-standard interpreters==
+
 
+
It's now possible to define an interpreter which doesn't handle the ''<code>-e</code>'' option, right from interpreter preferences page.
+
 
+
[[Image:AddInterpreter_1.0.png|center]]
+
 
+
This option enables to execute a piece Lua before runtime. It was used by ''Koneki LDT'' to start all debugging sessions.
+
Now it is possible to bootstrap a debug session without it, it makes ''Koneki LDT'' compatible with more kinds of interpreters, but be aware that in this case the user is responsible for launching the debugger by adding the following code as first statement of its application:
+
 
+
<code><pre>if os.getenv('DEBUG_MODE') then require "debugger"() end</pre></code>
+
 
+
'''Note:''' The ''<code>DEBUG_MODE</code>'' environment variable is set only for ''debug'', to avoid to start the debugger for a regular ''run''.
+
 
+
==Better user-assistance==
+
 
+
It's now possible to type and set a description for a local or global variable by adding a comment before or after its declaration. LDT consider a global variable declaration when the first occurrence of a global variable in a file is an affectation. Typing a variable allow to have auto-completion on it and explicit your code.
+
 
+
If function parameters are documented and associated with a type using the [[Koneki/LDT/User_Area/Documentation_Language#Function_comment_block|Lua Documentation Language]], they will be available for auto-completion.
+
 
+
If a [[Koneki/LDT/User_Area/Documentation_Language#Function_comment_block|Lua Documentation Language]] tag such as ''<code>@type</code>'' or ''<code>@module</code>'' 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 items such as global variables and functions. Also the type of outline elements is displayed if any.
+
 
+
==Integration of lastest Metalua version==
+
 
+
Metalua is the key component that analyze the Lua code. ''Koneki LDT'' now uses the last version of Metalua which the enhance syntax error handling and fix some  bugs.
+

Latest revision as of 10:59, 16 July 2014

Back to the top