Skip to content

CppAssistant 2.2.1

Choose a tag to compare

@github-actions github-actions released this 06 Nov 11:49
· 19 commits to main since this release

v2.2.1 - packaging hotfix

If Package Control could not install or upgrade CppAssistant 2.2.0, this release fixes it.

What was wrong

messages.json stored the entire release-note text as the value of each version key. Package Control expects a path to a text file inside the package: print_messages() does open(os.path.join(package_dir, value)). With a whole paragraph as the "path" (newlines, colons, <, >, quotes), Windows rejected it with OSError: [Errno 22] Invalid argument. Only FileNotFoundError is caught there, so the install worker thread died and the installation was rolled back. The bug was latent since 2.1.1 and became visible with the first Package Control install of 2.2.0.

Fixed

  • Release notes now live in messages/install.txt, messages/2.1.1.txt, messages/2.2.0.txt and messages/2.2.1.txt; messages.json is a plain version -> path map.
  • Fixed the /n typo in the install message.
  • Added regression tests that verify every value is a real in-package text file, reproduce Package Control's read_message() open path, and guard the zip build against excluding messages/.
  • CI is green: flake8, mypy, 210 unit tests on Python 3.9/3.10/3.12/3.14, libclang tests, and the package build.

No functional changes - every 2.2.0 feature is unchanged.

Install / upgrade

  • Package Control: run Package Control: Upgrade Package, or Install Package -> CppAssistant, then restart Sublime Text. Package Control may need its channel cache to refresh before 2.2.1 appears.
  • Manual: download CppAssistant.sublime-package below and put it in Installed Packages/, or extract the source zip into Packages/CppAssistant.
  • If the plugin still does not load, check that CppAssistant is not listed in ignored_packages in Preferences > Settings - User.

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