Skip to content

chore: Add libclipboard as a submodule to support Ubuntu 26.04.#652

Merged
highperformancecoder merged 2 commits intomasterfrom
chore-1923-add-lipclipboard
May 4, 2026
Merged

chore: Add libclipboard as a submodule to support Ubuntu 26.04.#652
highperformancecoder merged 2 commits intomasterfrom
chore-1923-add-lipclipboard

Conversation

@highperformancecoder
Copy link
Copy Markdown
Owner

@highperformancecoder highperformancecoder commented May 1, 2026

This change is Reviewable

Summary by CodeRabbit

  • Chores

    • Updated version to 3.26.0-beta.5.
  • New Features

    • Integrated clipboard support functionality into the application.

Copilot AI review requested due to automatic review settings May 1, 2026 06:41
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 1, 2026

Warning

Rate limit exceeded

@highperformancecoder has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 51 minutes and 47 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7110c50a-13ef-47a1-a61a-0f2a3fd9cb18

📥 Commits

Reviewing files that changed from the base of the PR and between c5bdf45 and f021683.

📒 Files selected for processing (1)
  • Makefile
📝 Walkthrough

Walkthrough

A new libclipboard git submodule dependency is integrated with corresponding build system updates. The Makefile is enhanced to compile libclipboard and configure header and library search paths. The GUI package version is bumped to a pre-release version 3.26.0-beta.5.

Changes

Cohort / File(s) Summary
Git Submodule Setup
.gitmodules, libclipboard
Added libclipboard submodule declaration with remote URL and updated submodule commit pointer to 766495ce358c39b5ff0732dcef485e5da28abf7c.
Build System Integration
Makefile
Added build targets for RavelCAPI and libclipboard with sub-build automation. Updated compiler flags to include libclipboard/include headers and linker flags to reference libclipboard library search path and link against -lclipboard (non-MXE builds).
Version Update
gui-js/package.json
Bumped package version from 3.26 to 3.26.0-beta.5 to reflect pre-release status.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 A clipboard arrived at the warren today,
Bundled as modules in a modular way,
The Makefile hops to compile what we need,
While version numbers sprout like clover seed! 📋✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding libclipboard as a submodule to support Ubuntu 26.04, which is clearly reflected in the .gitmodules addition and Makefile updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore-1923-add-lipclipboard

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 51 minutes and 47 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
Makefile (1)

102-109: ⚡ Quick win

Add a matching clean step for libclipboard.

This block introduces a new sub-build but no symmetric cleanup, which can leave stale artifacts between builds.

Proposed fix (outside this exact hunk, in `clean` target)
 clean:
 	-$(BASIC_CLEAN) minsky.xsd
 	-rm -f $(EXES)
 	-cd test && $(MAKE)  clean
 	-cd model && $(BASIC_CLEAN)
 	-cd engine && $(BASIC_CLEAN)
 	-cd schema && $(BASIC_CLEAN)
 	-cd ecolab && $(MAKE) clean
 	-cd RavelCAPI && $(MAKE) clean
+	-cd libclipboard && $(MAKE) clean
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Makefile` around lines 102 - 109, The Makefile adds a libclipboard sub-build
via the build_libclipboard shell invocation but lacks a corresponding cleanup;
add a matching clean rule (e.g., a clean_libclipboard target invoked from the
main clean) that removes libclipboard build artifacts such as
libclipboard/build.log and the generated build files/artifacts in the
libclipboard directory (the same outputs produced by the cmake/$(MAKE) run), and
ensure the main clean target depends on or calls this new clean_libclipboard
target so running `make clean` fully cleans libclipboard state.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@gui-js/package.json`:
- Line 3: The version constant in libs/shared/src/lib/constants/version.ts
(exported constant VERSION) is hardcoded to "3.26" and must be updated to
exactly match gui-js/package.json ("3.26.0-beta.5"); open version.ts, change the
exported value of VERSION to "3.26.0-beta.5" so the frontend constant matches
the package.json/electron-builder artifact interpolation and prevents the
frontend/backend mismatch warning.

In `@Makefile`:
- Line 104: The cmake invocation in the build_libclipboard shell command only
redirects stdout (".>build.log") so stderr can be lost; update the
build_libclipboard variable's shell command (the cmake + make invocation) to
redirect cmake's stderr into build.log as well (e.g., replace the current cmake
redirection with ">build.log 2>&1" or ">>build.log 2>&1") so both cmake and the
subsequent make output (already redirected with ">>build.log 2>&1") end up in
build.log.

---

Nitpick comments:
In `@Makefile`:
- Around line 102-109: The Makefile adds a libclipboard sub-build via the
build_libclipboard shell invocation but lacks a corresponding cleanup; add a
matching clean rule (e.g., a clean_libclipboard target invoked from the main
clean) that removes libclipboard build artifacts such as libclipboard/build.log
and the generated build files/artifacts in the libclipboard directory (the same
outputs produced by the cmake/$(MAKE) run), and ensure the main clean target
depends on or calls this new clean_libclipboard target so running `make clean`
fully cleans libclipboard state.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d39b42cb-1088-4a0e-a2f5-047c7c809856

📥 Commits

Reviewing files that changed from the base of the PR and between d976a3e and c5bdf45.

📒 Files selected for processing (4)
  • .gitmodules
  • Makefile
  • gui-js/package.json
  • libclipboard

Comment thread gui-js/package.json
Comment thread Makefile Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds libclipboard as a git submodule and wires it into the native build so the project can build/link clipboard support without relying on a system-installed libclipboard (notably for Ubuntu 26.04).

Changes:

  • Add libclipboard as a new git submodule.
  • Build libclipboard during make (non-MXE) and link against it from the root Makefile.
  • Bump gui-js package version to 3.26.0-beta.5.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
gui-js/package.json Updates Electron/package version string.
Makefile Builds libclipboard (via CMake) and adds include/link flags to use it.
.gitmodules Registers libclipboard submodule source URL/path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Makefile Outdated
Comment thread gui-js/package.json
@highperformancecoder highperformancecoder merged commit d749b79 into master May 4, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants