LemMinX is a XML language specific implementation of the Language Server Protocol and can be used with any editor that supports the protocol, to offer good support for the XML Language. The server is based on:
See screenshots in the Features docs.
See the changelog for the latest release.
./mvnw clean verify
(OSX, Linux) or mvnw.cmd clean verify
(Windows)org.eclipse.lemminx-uber.jar
in the folder org.eclipse.lemminx/target
To debug the XML LS you can use XMLServerSocketLauncher:
--port
in step 1Client connection example using Theia and TypeScript:
let socketPort = '5008'
console.log(`Connecting via port ${socketPort}`)
const socket = new net.Socket()
const serverConnection = createSocketConnection(socket,
socket, () => {
socket.destroy()
});
this.forward(clientConnection, serverConnection)
socket.connect(socketPort)
To generate a native binary:
gu install native-image
native
: ./mvnw clean package -Dnative -DskipTests
./mvnw clean package -Dnative -DskipTests -Dgraalvm.static=--static
in order to support distributions that don't use glibc
, such as Alpine Linuxorg.eclipse.lemminx/target/lemminx-{os.name}-{architecture}-{version}
OS specific instructions:
glibc-static
, libstdc++-static
, and zlib-static
gu
is an existing alias in PowerShell.
Remove the alias with Remove-Item alias:gu -Force
, refer to gu
with the absolute path, or use gu
under cmd.exe
.native-image
Development Instructions:
reflect-config.json
reflect-config.json
enum
sHere are the Maven coordinates for lemminx (replace the X.Y.Z
version with the latest release):
<dependency>
<groupId>org.eclipse.lemminx</groupId>
<artifactId>org.eclipse.lemminx</artifactId>
<version>X.Y.Z</version>
<!-- classifier:uber includes all dependencies -->
<classifier>uber</classifier>
</dependency>
for Gradle:
compile(group: 'org.lemminx', name: 'org.eclipse.lemminx', version: 'X.Y.Z', classifier: 'uber')
You will have to reference the Maven repository hosting the dependency you need. E.g. for Maven, add this repository to your pom.xml or settings.xml :
<repository>
<id>lemminx-releases</id>
<url>https://repo.eclipse.org/content/repositories/lemminx-releases/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
And if you want to consume the SNAPSHOT builds instead:
<repository>
<id>lemminx-snapshots</id>
<url>https://repo.eclipse.org/content/repositories/lemminx-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
Currently generating the IP Log report requires a Java Runtime Environment (JRE) >= 11.
Run ./mvnw clean verify -Pverify-iplog
to generate a report for the 3rd party libraries used by this project. See the Eclipse Project Handbook for further details.
Here are some clients consuming this XML Language Server:
The XML Language Server can be extended to provide additional validation and assistance. Read the LemMinX-Extensions docs for more information