Skip to content

CppAssistant 2.3.1

Choose a tag to compare

@github-actions github-actions released this 15 Nov 02:45
· 17 commits to main since this release

v2.3.1 - hotfix + pure-local engine by default

If CppAssistant installed but every menu entry was grayed out, this release fixes it.

The bug

2.2.1 shipped without a .python-version file, so Sublime Text placed the
package on the deprecated Python 3.3 plugin host. On builds that disabled that
host (4215 prints plugin host 3.3 is disabled in the console), the Python
module never loaded while the static menu entries still appeared - every
ca_* command looked disabled, and Open Settings reported
Unable to open .../CppAssistant.sublime-settings.

.python-version (3.8) now ships inside the package, and a regression test
asserts it is present before a release is built.

Engine modes

completion_engine replaces enable_clangd_engine:

Mode Behaviour
builtin (default) Pure Python. No clangd process, no libclang. FastEngine + the bundled STL/PBDS database + your snippets. Memory stays at normal plugin level.
auto Use clangd when it is on PATH; fall back silently when it is missing.
clangd Always use clangd; the status bar explains when it cannot be found.

Switching is immediate: the old client is stopped and libclang is released
when moving to builtin. The menu (Settings > Completion engine) and the
command palette expose all three. builtin_uses_libclang (default false)
re-enables libclang for a hybrid setup. The legacy boolean is still honoured
when completion_engine is absent.

Signature hints work without clangd: builtin uses FastEngine's same-file
signature and shows arg 2/2: vector<int>& a.

Verification

  • flake8, mypy, 224 unit tests on Python 3.9 / 3.10 / 3.12 / 3.14, libclang
    tests, package build and release.
  • New tests/test_engine_modes.py (11 cases) covers the three modes, legacy
    key compatibility, libclang gating, the switch command and pure-local
    completion/signatures.

Upgrade

  • Package Control: Package Control: Upgrade Package, then restart Sublime Text.
  • Manual: drop the CppAssistant.sublime-package below into Installed Packages/ and restart.
  • If commands are still gray, check that CppAssistant is not in
    ignored_packages (Preferences > Settings - User).

Full changelog: https://github.com/chenmoulaile/Sublime-CppAssistant/blob/main/CHANGELOG.md
Compare: v2.3.0...v2.3.1