Changes

Jump to navigation Jump to search
192 bytes removed ,  12:51, 2 July 2020
m
Text replacement - "[http://basex.org/" to "[https://basex.org/"
* The [https://plugins.jetbrains.com/plugin/8612-xquery-intellij-plugin xquery-intellij-plugin] by Reece H. Dunn.
* The [https://plugins.jetbrains.com/plugin/7262-xquery-support XQuery Support] plugin by Grzegorz Ligas.
* Both plugins offer support for XQuery 3.1 and can be run as a client or standalone instance. Please note that the two plugins are mutually exclusive and cannot be activated at the same time in IntelliJ.
* '''Note:''' BaseX itself is a highly compliant XQuery 3.1 processor. We strongly encourage you to use the [[Graphical_User_Interface#Text_Editor|XML editor]] integrated into the BaseX GUI to edit and query your XML data!<br/><br/>
* Install either version of IntelliJ IDEA: [https://www.jetbrains.com/idea/#chooseYourEdition the Community or Ultimate edition].
* Download your favorite [httphttps://basex.org/download BaseX distribution] (JAR, ZIP, EXE).
* Start BaseX (see [[Startup]]).
* Create a BaseX database (see [[Databases]]).
* In the ''Manage Query Processors'' dialog, click on the {{Code|+}} button.
* In the ''New Query Processor Instance'' dialog, set the following preferences:
** <code>Name Description = BaseX</code> (optional; if you leave this field blank, <code>[Implementation] [Version]</code> will be used as namedescription)
** <code>Implementation = BaseX</code> (should be preset!)
** <code>JAR File = BaseX.jar</code> (name and location of the JAR file may differ depending on your BaseX distribution and version)
==Conclusion==
The plugin is very well maintained! It adds support for various XQuery Implementations to the IntelliJ IDEA (among them BaseX). It provides syntax highlighting for XQuery and XML , code completion and detects syntactical errors while you type offering a description for each error. Queries are executed using Run Configurations for which you can configure various query processors, e.g. BaseX.
The plugin contains some minor flaws regarding the static binding of BaseX namespaces. A few namespaces are marked as unknown in 's admin log can be accessed and displayed using the code, however, query execution in the BaseX backend works fine in spite of them. Also, the IntelliJ ''Find Usages'Query Log' and ''Go To'' options did not work as expected in some cases, especially with regard to functions and across modules. The plugin does not yet include a code completion featurebutton on the bottom left corner of the IntelliJ IDEA project window.
Note that The plugin contains some minor flaws regarding the usage use of functions from imported or declared namespaces that do in user-defined modules. Such functions are not exist included in the namespace might not be code completion list and marked as unknownin the code. To highlight invalid functionsHowever, you may enable the ''XPath and XQuery > XPST: XPath static errors > XPST0017: Undefined function'' inspection query execution in the ''Editor > Inspections'' sectionBaseX backend works fine nonetheless.
=XQuery Support Plugin=
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu