OBI: Object Builder for i

OBI is a VS Code extension that builds IBM i objects from sources you keep locally (and in git).
It detects which sources changed, resolves everything that depends on them, generates the build commands in the correct order and runs them on your IBM i via SSH.
Joblogs, spool files and compile errors come back into VS Code.
Watch the intro (1:38):
Features
Build profiles
Build only the current source or all changes.
Switch between user profiles (e.g. different target libraries or users) with one click.
Change detection
OBI stores a hash of every successfully built source and only builds what changed since then.
Dependency-aware build order
All objects depending on a changed source are rebuilt as well, in the correct order (e.g. tables before programs).
See Dependencies.

Build summary
See every object, its commands and status. Exclude sources or single commands, add sources, edit a command before running it,
and open the joblog, spool file and error output of each command.

Compile errors in the Problems view
Compiler messages (*EVENTF) are shown directly in your source.
Build history
Every build is kept. Browse by date or by source and filter for specific sources.
Source filters
Individual source trees with descriptions, a sortable/filterable table view and a quick search over names and descriptions.

Per-source build settings
Override settings (e.g. ACTGRP, TARGET_LIB) or the whole list of build steps for single sources.
Fully configurable build commands
Commands per source type, with variables such as $(TARGET_LIB), $(OBJ_NAME) or your own.
Git information (branch and commit) is stored with each build.
UI available in English and German.
How it works
You work with your sources locally on your PC and share them with your team via git.
The IFS is only used to compile.

- Preview build: OBI compares the local sources with the last successful build and creates a build list (including all dependent objects).
- Run build: the configuration and the sources to build are transferred to the IFS via SSH.
- The OBI backend on your IBM i runs the build commands.
- Results (status, joblog, spool files, compile errors) are downloaded and shown in the build summary.
Requirements
On IBM i
- SSH daemon running (
STRTCPSVR *SSHD)
- Open source package manager (YUM) with
bash
- Python 3.12 or higher
- The OBI backend cloned into the IFS and set up (
setup.sh)
- A home directory for your user profile (see the SSH setup)
On your PC
- VS Code 1.90 or higher
- SSH access to your IBM i (SSH key recommended, password also possible)
- Optional: git
A local Python installation is not required. The build list is generated by the extension itself.
Quick start
- Set up SSH and your user profile on IBM i: SSH setup
- Install the OBI backend on IBM i:
git clone https://github.com/andreas-prouza/obi /path/to/obi
cd /path/to/obi
./setup.sh
- Open an (empty) project folder in VS Code, switch to the Object Builder for i view and click Initialize.
- Fill in the mandatory settings (remote host, SSH user, remote OBI path, ...) and save.
- Put your sources into
src/<library>/<source file>/<member>.<attribute>.<type> (e.g. src/mylib/qrpglesrc/hello.rpgle.pgm).
- Click Preview build, then Run build.
The detailed walkthrough is in Getting started.
Documentation
| Guide |
Content |
| Getting started |
IBM i setup, project initialization, minimum configuration, migrating existing sources |
| SSH setup |
SSH daemon, bash, home directory, key authentication |
| Building |
Preview build, build summary, run build, compile errors, build history |
| Sources |
Folder layout, source filters, quick search, descriptions |
| Dependencies |
Defining dependencies between sources and how they affect the build order |
| Configuration |
All config files, settings, profiles, build commands, variables, per-source settings |
Want to work on OBI itself? See CONTRIBUTING.md.
- OBI: the build backend running on IBM i
- ibm-i-build-obi: using OBI without VS Code (RDi, other IDEs) and further examples
- cpysrc2ifs: RPG program to copy source members into the IFS
Happy building!
| |