All Projects → eclipse → Lemminx

eclipse / Lemminx

Licence: epl-2.0
XML Language Server

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Lemminx

Iso 3166 Countries With Regional Codes
ISO 3166-1 country lists merged with their UN Geoscheme regional codes in ready-to-use JSON, XML, CSV data sets
Stars: ✭ 1,372 (+1072.65%)
Mutual labels:  xml
Pdfalto
PDF to XML ALTO file converter
Stars: ✭ 109 (-6.84%)
Mutual labels:  xml
Repurrrsive
Recursive lists to use in teaching and examples, because there is no iris data for lists.
Stars: ✭ 112 (-4.27%)
Mutual labels:  xml
Dls
A Language Server implementation for D
Stars: ✭ 103 (-11.97%)
Mutual labels:  language-server-protocol
Render
Go package for easily rendering JSON, XML, binary data, and HTML templates responses.
Stars: ✭ 1,562 (+1235.04%)
Mutual labels:  xml
Dotnet Transform Xdt
Modern .NET tools and library for XDT (Xml Document Transformation)
Stars: ✭ 110 (-5.98%)
Mutual labels:  xml
Esoui
ESOUI is the Lua source code of the ZenimaxOnline's MMORPG "The Elder Scrolls Online"
Stars: ✭ 100 (-14.53%)
Mutual labels:  xml
Fetch Plus
🐕 Fetch+ is a convenient Fetch API replacement with first-class middleware support.
Stars: ✭ 116 (-0.85%)
Mutual labels:  xml
Yq
Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
Stars: ✭ 1,688 (+1342.74%)
Mutual labels:  xml
Graphquery
GraphQuery is a query language and execution engine tied to any backend service.
Stars: ✭ 112 (-4.27%)
Mutual labels:  xml
I7j Pdfhtml
pdfHTML is an iText 7 add-on for Java that allows you to easily convert HTML and CSS into standards compliant PDFs that are accessible, searchable and usable for indexing.
Stars: ✭ 104 (-11.11%)
Mutual labels:  xml
Qxmledit
QXmlEdit XML editor. Downloads: https://sourceforge.net/projects/qxmledit/files
Stars: ✭ 106 (-9.4%)
Mutual labels:  xml
Kripton
A Java/Kotlin library for Android platform, to manage bean's persistence in SQLite, SharedPreferences, JSON, XML, Properties, Yaml, CBOR.
Stars: ✭ 110 (-5.98%)
Mutual labels:  xml
Material Bottomnavigation
Bottom Navigation widget component inspired by the Google Material Design Guidelines at https://www.google.com/design/spec/components/bottom-navigation.html
Stars: ✭ 1,375 (+1075.21%)
Mutual labels:  xml
Dino
Modern XMPP ("Jabber") Chat Client using GTK+/Vala
Stars: ✭ 1,637 (+1299.15%)
Mutual labels:  xml
Android Gradle Localization Plugin
Gradle plugin for generating localized string resources
Stars: ✭ 100 (-14.53%)
Mutual labels:  xml
Webapiclient
An open source project based on the HttpClient. You only need to define the c# interface and modify the related features to invoke the client library of the remote http interface asynchronously.
Stars: ✭ 1,618 (+1282.91%)
Mutual labels:  xml
Twital
Twital is a "plugin" for Twig that adds some sugar syntax, which makes its templates similar to PHPTal or VueJS.
Stars: ✭ 116 (-0.85%)
Mutual labels:  xml
Marklogic Data Hub
The MarkLogic Data Hub: documentation ==>
Stars: ✭ 113 (-3.42%)
Mutual labels:  xml
Bible Database
Bible databases as XML, JSON, SQL & SQLITE3 Database format for various languages. Developers can download it freely for their development works. Freely received, freely give.
Stars: ✭ 111 (-5.13%)
Mutual labels:  xml

XML Language Server (LemMinX)

Build Status

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:

  • Eclipse LSP4J, the Java binding for the Language Server Protocol.
  • Xerces to manage XML Schema validation, completion and hover

Features

See screenshots in the Features docs.

See the changelog for the latest release.

Demo

XML Language Server Demo

Get started

  • Clone this repository
  • Open the folder in your terminal / command line
  • Run ./mvnw clean verify (OSX, Linux) or mvnw.cmd clean verify (Windows)
  • After successful compilation you can find the resulting org.eclipse.lemminx-uber.jar in the folder org.eclipse.lemminx/target

Developer

To debug the XML LS you can use XMLServerSocketLauncher:

  1. Run the XMLServerSocketLauncher in debug mode (e.g. in eclipse)
  2. Connect your client via socket port. Default port is 5008, but you can change it with start argument --port in step 1

Client 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)

Generating a native binary:

To generate a native binary:

  • Install GraalVM 20.2.0
  • In a terminal, run gu install native-image
  • Execute a Maven build that sets the flag native: ./mvnw clean package -Dnative -DskipTests
    • On Linux, compile with ./mvnw clean package -Dnative -DskipTests -Dgraalvm.static=--static in order to support distributions that don't use glibc, such as Alpine Linux
  • It will generate a native binary in org.eclipse.lemminx/target/lemminx-{os.name}-{architecture}-{version}

OS specific instructions:

  • Linux:
    • Make sure that you have installed the static versions of the C++ standard library
      • For instance, on Fedora Linux, install glibc-static, libstdc++-static, and zlib-static
  • Windows:
    • When installing native-image, please note that gu is an existing alias in PowerShell. Remove the alias with Remote-Item alias:gu -Force, refer to gu with the absolute path, or use gu under cmd.exe.
    • Make sure to run the Maven wrapper in the "Native Tools Command Prompt". This command prompt can be obtained through installing the Windows SDK or Visual Studio, as mentioned in the GraalVM installation instructions.

native-image Development Instructions:

  • Reflection:
    • If you need to use reflection to access a private field/method, simply register the field/methods that you access in reflect-config.json
    • If you need to parse some JSON using Gson, make sure to register the fields and methods of the class that you are parsing into in reflect-config.json
      • This needs to be done recursively, for all classes that it has member variables of, including enums
      • Settings are all deserialized, so whenever a setting is added, make sure to register the classes
    • Manually test the binary and check the logs for reflection errors/NPEs

Maven coordinates:

Here 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>

Verify 3rd Party Libraries

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.

Clients

Here are some clients consuming this XML Language Server:

Extensions

The XML Language Server can be extended to provide additional validation and assistance. Read the LemMinX-Extensions docs for more information

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].