XQuery IntelliJ Plugin 1.5
18 Jul 2019
References, Resolving and Find Usages:
- Fix resolving and finding usages of variables declared in imported modules.
- Fix find usages of locally declared and imported functions.
- Support the MarkLogic behaviour for resolving
NCName
-basedFunctionDecl
s. - Fix resolving to imported functions from declarations other than the one declaring the namespace.
- Provide better type names in the find usages pane.
- Display the
EQName
type signature in the find usages pane.
IntelliJ Integration:
- File structure support, listing the declared functions, variables, and types, and the query body in a file.
- Display the functions, variables, and types when “Show Members” is enabled in the project pane.
- Display the function signature when holding Ctrl over a function call.
- Display the variable signature when holding Ctrl over a variable reference.
- Use the QName annotator on Wildcard elements to correctly highlight the namespace prefix and local name parts.
Code Completion:
- In-scope variable completion support in
VarRef
expressions for XQuery. - Statically-known function completion support in
FunctionCall
andArrowExpr
expressions for XQuery. - XML Schema and
union()
type completion support inAtomicOrUnionType
andSimpleTypeName
for XPath and XQuery. - Namespace prefix completion support in
QName
s for XPath and XQuery. - Keyword completion support in
ForwardAxis
andReverseAxis
for XPath and XQuery. - Keyword completion support in
KindTest
basedNodeTest
s andItemType
s for XPath and XQuery. - Keyword completion support in
SequenceType
s for XPath and XQuery.
Run Configurations:
- Link to the files when displaying query errors in the console.
- Support running XPath queries as XSLT patterns (XPath subset) on the Saxon query processor.
- Support profiling Saxon XSLT and XQuery scripts.
- Display the elapsed time and number of items returned by the query in the results console.
- Include the console output when profiling queries.
Query Processor Integration:
- Add a query log viewer for BaseX and MarkLogic log files.
Saxon:
- Fix using Saxon 9.2 to 9.8 JAR files.
- Disable Saxon EE optimizations to prevent the processor throwing a
NoClassDefFoundError
looking forcom/saxonica/ee/bytecode/GeneratedCode
. - Support
union(...)
types in XPath expressions. - Support
union(...)
types inSingleType
s for XPath and XQuery.
BaseX:
- Add definitions for the BaseX 9.2 built-in functions.
- Add support for the
perm
annotations introduced in BaseX 9.0.
MarkLogic:
- Add definitions for the MarkLogic 10.0-1 built-in functions.
- Fix MarkLogic 6.0
binary()
used as aNodeTest
. - Support the MarkLogic 6.0
validate full
syntax extension. - Improve support for the MarkLogic 7.0 schema syntax extensions.
XPath and XSLT:
- Enable XPath syntax validation of expressions and patterns in XSLT when the XPath View + XSLT plugin is disabled.
- Full Text 1.0 and 3.0 extensions support in the XPath lexer and parser.
XPath and XQuery:
- Fix parsing decimal
CharRef
s with a single digit, e.g."	"
. - Fix parsing a NameTest that is a named computed constructor keyword like
element
followed by a keyword that is part of a containing expression (e.g.return
) and does not have anEnclosedExpr
. - Report an error when the
EnclosedExpr
is missing from named computed constructors. - Report a parser error when a
NumericLiteral
is followed by anNCName
orURIQualifiedName
without whitespace or comment tokens, due to them being non-delimiting terminal symbols. - Report an error if an unknown axis name is followed by the
::
axis indicator. - When recovering parser errors in a main module with a prolog, preserve the prolog context in the subsequent partial expressions.
Inspections:
- XPST0017: Enable the undefined function inspection by default.
- XQST0047: Don’t generate an error on
ModuleImport
s without a namespace prefix.