Skip to content

About

JetBrains Gateway connector for OpenShift Dev Spaces / Eclipse Che

Topics

Resources

Code of conduct

Contributing

Stars

10 stars

Watchers

15 watching

Forks

Latest commit

 

History

506 Commits

Folders and files

Repository files navigation

OpenShift Dev Spaces Gateway Plugin

Build Version Downloads

Plugin for JetBrains Gateway enables local desktop development experience with the IntelliJ IDEs connected to OpenShift Dev Spaces.

image

Usage

The plugin adds a Dev Spaces connector to the JetBrains Gateway.

  1. Open the Gateway and select the Dev Spaces connector.
  2. Enter the Dev Spaces server URL and authenticate (Token, OpenShift OAuth, client certificate, or username/password).
  3. Select a running DevWorkspace and connect.

The IDE runs on the local desktop while the workspace IDE server connects over a port-forwarded tunnel.

A jetbrains-gateway://connect link with the workspace's dwNamespace and dwName parameters connects directly, skipping the wizard:

jetbrains-gateway://connect#type=devspaces&dwNamespace=john-che&dwName=my-ws

Feedback

We love to hear from users and developers.

You can ask questions, report bugs, and request features using GitHub issues in the Eclipse Che main repository.

Development

  • To test the plugin quickly against the Gateway instance bundled with the plugin, run:
./gradlew runIde
  • To skip opening the Gateway main window and connect to an already running workspace with the IDEA dev server:
./gradlew runIde --args="jetbrains-gateway://connect#type=devspaces&dwNamespace=john-che&dwName=my-ws"

with replacing your DevWorkspace's namespace and name in dwNamespace and dwName parameters.

Building

  1. Run:
./gradlew clean buildPlugin
  1. Find the built plugin in the build/distributions folder.

Installation

In the Gateway, click the gear button ⚙️, and choose Manage Providers to open the Plugins window.

There're a couple of options to install the plugin:

  • Search for "OpenShift Dev Spaces".
  • Click the gear button ⚙️ and choose Install Plugin from Disk.... Then,
    • choose the built plugin (zip) located at the build/distributions folder, or
    • download the plugin from the latest release

Linting

./gradlew detekt         # all Kotlin sources
./gradlew detektBranch   # only files changed on the current branch vs. main

detekt reports pre-existing violations in unchanged code; detektBranch limits findings to the current changes. Reports are written to build/reports/detekt/.

AI Code Review (OCR)

Code reviews run through Open Code Review (OCR). The skill files and configuration are committed in .ocr/; only the CLI binary is installed locally:

scripts/setup-ocr.sh

The script requires Node.js/npm and a bash shell (Git Bash or WSL on Windows), and installs the CLI version pinned by the committed .ocr/ assets. It never replaces a different globally installed version; re-run with --keep-installed to accept the drift warning instead.

Workflow — run the review from the agent prompt as the final step after generating code, preferably in a fresh agent session:

  1. Generate or change code with the AI coding agent.
  2. Run ./gradlew detektBranch and fix any findings.
  3. Request the review from the agent prompt with /ocr:review.
/ocr:review            # staged changes
/ocr:review HEAD~3     # last 3 commits
/ocr:review feature/x  # branch vs. main
  1. Fix confirmed findings, re-run ./gradlew detektBranch, and re-run /ocr:review only if the fixes changed logic.
  2. Publish the review to the pull request with /ocr:post.

The default team runs one principal and one quality reviewer. Escalate for risky changes with --team principal:2,security:1,testing:1, and skip the discourse phase with --quick for small diffs.

Further commands:

  • /ocr:map — generate a review map for large changesets
  • ocr doctor — verify the installation

Reviews send the diff and any files the reviewers open to the model configured in the contributor's AI CLI. /ocr:post publishes the synthesized review as a PR comment.

After upgrading the CLI, run ocr update, then ./gen-agents-md.sh, and commit both so .ocr/ assets and AGENTS.md stay in sync.

Code Health

Grades the files changed on the current branch with Kimün (km) and fails below A-:

python3 .agents/skills/kimun-branch/scripts/km_branch.py all   # macOS / Linux
py -3 .agents\skills\kimun-branch\scripts\km_branch.py all     # Windows

Only branch-changed files are scored — committed vs. upstream/main, staged, unstaged, and new files under src/. Duplication is compared against a baseline snapshot, so pre-existing repo debt does not fail the branch. Install steps for km are in rules/kimun.md; coding agents run the same gate through the kimun-branch skill (see AGENTS.md).

IntelliJ Plugin Verifier

To check the plugin compatibility against the Gateway versions defined in the gradle.properties file.

./gradlew runPluginVerifier

Troubleshooting

  1. To check the state of the port forwarding:
sudo lsof -i -P | grep LISTEN | grep 5990
  1. The Gateway application and the Dev Spaces plugin logs are stored in /Users/<USER_NAME>/Library/Logs/JetBrains/JetBrainsGateway<VERSION>/idea.log

  2. Port-forward transport (Java WebSocket):

    • On connect, logs should include: Starting port forward on local port … (transport=java-websocket, copyBuffer=65536, dispatcher=devspaces-port-forward)
    • If the UI feels sluggish or you see “IntelliJ IDEA has encountered a slowdown”, collect:
      • Gateway/IDEA logs (…/Library/Logs/JetBrains/JetBrainsGateway*/idea.log or IDEA equivalent)
      • Any PerformanceWatcherImpl / Dispatchers.IO / thread-dump lines
      • Whether the banner appears during idle editing vs only while Analyzing...

Release

  • Find a draft release on the Releases page. The draft is created and updated automatically on each push to the main branch.
  • Edit the draft:
    • Click the Generate release notes button and edit the release notes if needed
    • Click the Publish release button. The Release Workflow will attach the built plugin artifact to the published release.
  • Upload the plugin artifact to JetBrains Marketplace.
  • Find the Changelog update - v0.0.x PR, created automatically by the Release Workflow, and merge it. Note that currently, it requires closing and reopening the PR to trigger the PR checks. As, due to some issue, they are hanging in a waiting state forever.
  • Bump the pluginVersion in the gradle.properties file.

Plugin based on the IntelliJ Platform Plugin Template.

About

JetBrains Gateway connector for OpenShift Dev Spaces / Eclipse Che

Topics

Resources

Code of conduct

Contributing

Stars

10 stars

Watchers

15 watching

Forks

Releases

Used by

Contributors

Languages