If you are interested in contributing to the Library/demos, please head over to https://github.com/workbenchdev/demos instead.
Either way, don't hesitate to get in touch.
The following is the recommended setup:
- Install GNOME Builder from Flathub
- Open Builder and select "Clone Repository..."
- Clone
https://github.com/workbenchdev/Workbench.git
(or your fork) - Press the Run ▶ button
Make sure that you're building the development target re.sonny.Workbench.Devel
.
If you know what you are doing you can also use VSCode with the extensions recommended in this workspace or anything else you are comfortable with. Don't forget to fetch the submodules.
We provide a couple of tools to make the development process pleasant.
- Code formatter that runs automatically on git commit
- Single command to run all the tests locally
# Ubuntu requirements
# sudo apt install flatpak flatpak-builder nodejs make gcc g++
# Fedora requirements
# sudo dnf install flatpak flatpak-builder nodejs make gcc gcc-c++
cd Workbench
make
Before submitting a PR, we recommend running tests locally with
make test
- Unless you don't want too - add your name to the list of contributors
- Open a pull request
- Make sure to review your own changes
- Commits are squashed into a single commit on merge
To view debug logs, use the following command in src/workbench
.
--command "G_MESSAGES_DEBUG=\"@app_id@\" @app_id@ $@"
See also
Workbench doesn't currently support translations for its user interface. GNOME documentation is only available in English and we do not want to mislead non-English speakers.
Clean the build directory. On GNOME Builder, open the search palette with Ctrl+Enter
and search/select Clean
.
If that doesn't solve it - remove the GNOME Builder cache directory
rm -r ~/.var/app/org.gnome.Builder/cache/