Welcome to the Eclipse LSP4E contributor land, and thanks in advance for your help in making Eclipse LSP4E better and better!
🏠 Official Eclipse LSP4E Git repo is https://github.com/eclipse/lsp4e . (All other repositories, mirrors and so on are legacy repositories that should be removed at some point, so please don't use them!)
The project license is available at LICENSE.
This Eclipse Foundation open project is governed by the Eclipse Foundation Development Process and operates under the terms of the Eclipse IP Policy.
Before your contribution can be accepted by the project team, contributors must have an Eclipse Foundation account and must electronically sign the Eclipse Contributor Agreement (ECA).
For more information, please see the Eclipse Committer Handbook: https://www.eclipse.org/projects/handbook/#resources-commit.
Eclipse LSP4E use mainly 2 channels for strategical and technical discussions
- 🐞 View and report issues through uses GitHub Issues at https://github.com/eclipse/lsp4e/issues.
- 📧 Join the [email protected] mailing-list to get in touch with other contributors about project organization and planning, and browse archive at 📜 https://accounts.eclipse.org/mailing-list/lsp4e-dev
Latest snapshot builds, for testing, can usually be found at https://download.eclipse.org/lsp4e/snapshots/
.
- Install the Eclipse IDE for Eclipse Committers from https://www.eclipse.org/downloads/packages/ or
any another Eclipse distribution with:
- Plug-in Development Environment (PDE) installed
- Eclipse m2e installed
- To run Maven builds from the command line, install JDK17 and Maven 3.9.x
- Clone this repository for LSP4E.
- File > Open Projects from Filesystem... , select the path to the LSP4E Git repo and the relevant children projects you want to import
- Depending on the task you're planning to work on, multiple workflows are available to configure the target-platform
- In many cases, this simplest workflow will be sufficient: Install latest LSP4E snapshot in your target-platform (can be your current IDE), or
- If you don't want to mix versions of LSP4E, open target-platforms/target-platform-latest/target-platform-latest.target from within Eclipse and click Set as Active Target-Platform in the top right corner.
- Open the project modules you want to work on (right-click > Open project) and their dependencies
- Happy coding! 🤗
- From the command line: run
mvn clean verify
- From within Eclipse : right-click on the LSP4E root folder > Run As > Maven build
To run single unit tests via the command line, one can use the following command from the project's root:
mvn -Dtest=<TestClassName>#<MethodName> -DfailIfNoTests=false verify
For example:
mvn -Dtest=HighlightTest#testCheckIfOtherAnnotationsRemains -DfailIfNoTests=false verify
To run a unit test in JVM debug mode via the command line one can use:
mvn -Dtest=<TestClassName>#<MethodName> -DfailIfNoTests=false -Dtycho.testArgLine="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=localhost:8000" verify
Once Maven is about to execute the test it will wait for you to attach to the test JVM using a remote debugger, e.g. using Eclipse's Remote Java Application
debug configuration.
The GitHub actions wokflow is compatible with nektos/act a command-line tool that allows you to run GitHub action workflows locally.
- Install the docker engine
- Install nektos/act
- From the command line navigate into the LSP4E project root
- Run the command
act
- On subsequent re-runs you can use
act -r
to reuse previous container which avoids reinstallation system packages and reduces build time.
In case of build failures the docker container will still be running and you can ssh into it for analysis using docker exec -u root -it <CONTAINER_ID> /bin/bash
, e.g.:
container_id=$(docker container ps --filter status=running --filter name=act-Build-build --format {{.ID}})
docker exec -u root -it $container_id /bin/bash
LSP4E tries to use OSGi Semantic Version (to properly expose its API contracts and breakage) and Reproducible Version Qualifiers (to minimize the avoid producing multiple equivalent artifacts for identical source). This requires the developer to manually bump version from time to time. Some rules are that:
- Versions are bumped on a per module grain (bump version of individual bundles/features one by one when necessary), DON'T bump version of parent pom, nor of other modules you don't change
- Versions are bumped maximum once per release (don't bump versions that were already bumped since last release)
- Don't bump versions of what you don't change
- Bump version of the bundles you're modifying only if it's their 1st change since last release
- Version bump may need to be cascaded to features that include the artifact you just changed, and then to features that include such features and so on (unless the version of those features were already bumped since last release).
The delta for version bumps are:
+0.0.1
(next micro) for a bugfix, or an internal change that doesn't surface to APIs+0.1.0
(next minor) for an API addition+1.0.0
(next major) for an API breakage (needs to be discussed on the mailing-list first)- If some "smaller" bump already took place, you can replace it with your "bigger one". Eg, if last release has org.eclipse.lsp4e 1.16.1; and someone already bumped version to 1.16.2 (for an internal change) and you're adding a new API, then you need to change version to 1.17.0
LSP4E only accepts contributions via GitHub Pull Requests against https://github.com/eclipse/lsp4e repository.
Before sending us a pull request, please ensure that:
- You are working against the latest source on the main branch.
- You check existing open and recently merged pull requests to make sure someone else hasn't already addressed the issue.
To send us a pull request, please:
- Fork the repository.
- Modify the source while focusing on the specific change you are contributing.
- Commit to your fork using clear, descriptive commit messages.
- Send us a pull request, answering any default questions in the pull request interface.
GitHub provides additional documentation on forking a repository and creating a pull request