Skip to content

CppAssistant 2.3.5

Choose a tag to compare

@github-actions github-actions released this 16 Nov 14:31
· 13 commits to main since this release

v2.3.5 - lighter lint, no half-typed compiles, clean console

Lint no longer spawns g++ on every keystroke

The instant basic check used a 20 ms debounce and the full compiler check
100 ms. With bits/stdc++.h + -std=c++23 a compile takes ~1 s, so holding a
key could keep a g++ process running almost continuously. The timers are
150 ms and 350 ms now; results are still cached per text hash and saving still
lints immediately.

No compiler run for half-typed members

Typing a.pu used to start a compile that could only fail
(has no member named 'pu'). The compiler check is skipped while the current
line ends in . / -> or an unfinished member; saving still lints, so real
errors are not missed.

Parse Error ... Unexpected character fixed

Completion details were passed to Sublime as-is. Its details renderer parses
that string as JSON/HTML, so a multi-line snippet body in the field produced a
parse error on every completion (and the retry cost). Details are now
flattened to one line and capped at 200 characters.

All bundled and user .sublime-snippet files, compile_commands.json,
templates/index.json and the session files were checked and are well-formed,
so the error text came from the completion details path rather than a corrupt
file on disk.

Also in 2.3.4

  • User snippets are no longer duplicated: ST 4.2 has no
    INHIBIT_SNIPPET_COMPLETIONS, so the plugin stopped providing its own copy.
    Your snippets are read-only for Browse Templates, never copied, and Sublime
    owns their insertion format.
  • vector appears once; typing ve no longer offers move / reverse.
  • Menu grouped into Navigate / Edit / Diagnostics / Templates + settings.

Verification

240 unit tests, flake8, mypy, Python 3.9/3.10/3.12/3.14 and libclang: all green.

Restart Sublime Text after upgrading.

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