angelozerr / lsp4e-freemarker

Integration of the Freemarker Language Server with LSP4E.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

Eclipse FreeMarker LSP

The LSP4e FreeMarker is a an Eclipse plugin for FreeMarker based on:

Features

  • Syntax coloration for HTML & FreeMarker syntax both
  • FreeMarker Validation (as you type)

Demo

Here a demo (with installedEclipse BlueSky):

Editor Config

Installation

Note: installation test was done with Eclipse Photon M6.

Build

See cloudbees job: https://opensagres.ci.cloudbees.com/job/lsp4e-freemarker/

Eclipse BlueSky

Once eclipse-wildwebdeveloper/wildwebdeveloper#63 will work in Photo you could install it.

HTML syntax coloration (managed with TextMate) and HTML completion, mark occurrences, etc is not a part of this plugin. I suggest you that you install https://github.com/mickaelistria/eclipse-bluesky which provides those features.

Development in Eclipse

  1. Use "Eclipse for Committers" (Photon M6 as of this writing).

  2. In Eclipse, "File" / "Import..." / "Existing Maven Projects". Point at the lsp4e-freemarker project root directory, add all the Maven projects it finds.

  3. Now go to "Window" / "Preferences" / "Plug-in Development" / "Target Platform", and Select "lsp4e-freemarker" (this only appears if you have imported the "target-platform" Maven project earlier). After this, there shouldn't be more errors in the project (no dependency classes that aren't found).

  4. To try the plugin, right click on the org.eclipse.lsp4j.freemarker project, then "Run as" / "Eclipse Application". (TODO: Currently that will fail with Application "org.eclipse.ui.ide.workbench" could not be found in the registry. I have worked that around by adding <location path="${eclipse_home}" type="Directory"/> to the target platform, but of course there must be a better way.)

About

Integration of the Freemarker Language Server with LSP4E.

License:Eclipse Public License 2.0


Languages

Language:Java 91.6%Language:Shell 7.6%Language:FreeMarker 0.8%