Repository navigation
CppAssistant 2.2.1
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.txtandmessages/2.2.1.txt;messages.jsonis a plain version -> path map. - Fixed the
/ntypo 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 excludingmessages/. - 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, orInstall Package-> CppAssistant, then restart Sublime Text. Package Control may need its channel cache to refresh before 2.2.1 appears. - Manual: download
CppAssistant.sublime-packagebelow and put it inInstalled Packages/, or extract the source zip intoPackages/CppAssistant. - If the plugin still does not load, check that
CppAssistantis not listed inignored_packagesinPreferences > Settings - User.
Full changelog: https://github.com/chenmoulaile/Sublime-CppAssistant/blob/main/CHANGELOG.md
Compare: v2.2.0...v2.2.1