Setup
Editing
Debugging
Configure debugging
Visual help
Miscellaneous
When you will create your first Lavoisier project, this plugin will automatically download and install the Lavoisier framework, in order to enable the debugging feature and more...
Note: the very first time you will use this plugin, a second restart will be needed in order to take into account the newly installed files.
When IDEA has finished restarting, all the files previously installed by this plugin will be cleaned up from your system.
You are now ready to create your first data view (see below)!
<view name="hello"> <argument name="name">World</argument> <connector type="StringConnector"> <parameter name="content" eval="concat('Hello ',$name,'!')"/> </connector> <serializer type="EncapsulateSerializer"/> </view>
Note: To learn how to create a data view by assembling plugins, refer to this documentation.
Note: To learn how to modify the generated XML template skeleton to make it transform your data according to your needs, refer to chapters XML Template Language and XML Templates Examples.
Instead of running the full chain of plugins and templates of your data view, you can run the chain up to the selected plugin or template. This is similar to a debugger for an imperative language, except that the steps are plugins and templates rather than instructions.
There are several options for testing the rendering of your data view. Choose the right one according to the context:
Please note that the option Run this view (or Run this view with arguments...) does not offer the possibility to select a renderer plugin, this is only possible with the option Browse this view (or Browse this view with arguments...). The reason for this restriction is to avoid bothering you with this extra-step for the most frequent use-case for option Run this view.
If you need to change the behavior of the debugger, you will have to edit IDEA Custom Properties: Help | Edit Custom Properties.... This opens a file named "idea.properties".
Both features described in this section allows for limiting the amount of data to be displayed in the "Run" tab, but they are complementary:
Both feature have drawbacks when used separately, that's why using them simultaneously is often the best choice.
The properties lavoisier.data.partialview.window.offset and lavoisier.data.partialview.window.length allows for restricting the output of a given execution for the purpose of making debugging easier.
As a consequence, the later property (length) is often set to a small value (e.g. 3 or 10). This value corresponds to the number of subtrees to be displayed under the root element.
Setting this properties will enable the following options in the contextual menu:
Example:
lavoisier.data.partialview.window.offset=1 lavoisier.data.partialview.window.length=3
The property lavoisier.data.partialview.limit allows for restricting the output of a given execution in order to avoid hanging the IDE while displaying huge amount of data.
As a consequence, its value must be small enough to protect your IDE, and high enough to avoid excessive filtering of your data (e.g. 256). This value corresponds to the maximum number of elements to be displayed. When this limit is reached, the following comment is appended to the document:
<!— max number of nodes has been reached… —>
Unlike the previous properties, this property will impact every debugging option (e.g. Run this view, Run up to this plugin, ...).
This feature is disabled by default, and setting it will enable it.
Example:
lavoisier.data.partialview.limit=256
Open the tool window App Structure (see above), which displays a hierarchical representation of your application:
Clicking on a node will automatically open the corresponding views file (if not already opened) and move the caret of the corresponding tag in this file.
Double-clicking on a node allows for collapsing/uncollapsing it.
Note: This tree will not be automatically updated, so you will have to refresh it manually when the modifications made in the code impact its structure (e.g. add or remove a plugin, an XML template or a data view). This can be done by right-clicking anywhere in the "App Structure" tool window, then clicking on the menu item Reload All Views.
Tip: Set this tool window to Split Mode in order to allow it to coexist with the Project tool window.
Open the tool window App Overview (see above), which displays a visual representation of the portion of code related to the node selected in the App Structure tree.
The displayed information can be:
Note: This tool window will not be automatically updated, so you will have to refresh it manually when you want it to reflect your last modifications. There are two ways to do this:
You can just start the Lavoisier server without asking IDEA to open any data view in your browser. This can be done through the menu item Tools | Lavoisier | Start Server, and you can stop this server through the menu item Tools | Lavoisier | Stop Server.
Once the server has been started at least one time, you can also start, restart and stop it with respectively the IDEA "run", "rerun", "stop" and "exit" buttons. Before clicking on button "run", ensure that "Start Lavoisier Server" is selected in the run configurations popup list.
The Lavoisier server will be automatically stopped when closing your IDEA project.
Simultaneously running several servers (one per opened project) is supported. Of course you will have to configure them with different HTTP ports.
When IDEA has finished restarting, your execution environment should be up-to-date, including:
You can get information about files by selecting the following menu items:
This information will be displayed in the Event Log.