Skip to content

Commit 9ec5773

Browse files
authored
1.6.0: the fixes of the issue review of 2026-11-21 (#19)
The fixes of the issue review of 2026-11-21 (#13, #15, #16, #17, #18), series 1.6.0, as the design record .agents/docs/2026-11-21-editor-surfaces-and-feature-matrix.md plans them (stream F). - clion: the thread that reads the backend runs no listener; an answer and the notifications after it run on one sequential thread, in the backend's order (#13, "read access" errors). - clion: no class of the core names JCEF's; JCEF's page host is registered by mcpp-jcef.xml alone, and without it the tab explains (#13, NoClassDefFoundError: JBCefApp). - clion: the cache tab in the sections of VS Code's page, each cleanup on its section; texts read when shown (#13). - clion: the real-IDE runs restart the backend with mcpp.toml open, run the graphs with the JCEF plugin disabled and on macOS aarch64, keep an IDE error's fingerprint, and run weekly; mcppls's plugin 0.23.0. - vscode: mcpp.toml's language configuration (pairs, # comments); the parity gate admits added fields (#15, #18). - backend: an inline table read as the table of its name (#15); a path or workspace dependency's features, as mcpp registers them, with completion, hover and mcpp.manifest.unknownFeature, and mcpp#992 named for an index package's (#16, #17); scope and level on the cache commands of commands/list. - backend: a build database is used only while the manifest is the one it was read from (a graph asked within the watcher's poll after a change was the old manifest's, 1.5.0 too). - nvim: the cache text in the same two sections. - docs: the design record, docs/rules.md, CHANGELOG 1.6.0, the CLion README; .agents/reviews/ ignored.
1 parent 5e98602 commit 9ec5773

46 files changed

Lines changed: 3196 additions & 178 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/docs/2026-11-21-editor-surfaces-and-feature-matrix.md‎

Lines changed: 874 additions & 0 deletions
Large diffs are not rendered by default.

‎.github/workflows/clion-stable.yml‎

Lines changed: 109 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ on:
99
workflow_dispatch:
1010
inputs:
1111
release_tag:
12-
description: Published plugin release to install without rebuilding the backend
12+
description: Published plugin release to install without rebuilding the backend (empty, the latest)
1313
type: string
14-
default: v0.2.0
14+
default: ''
15+
# A new CLion is met by CI before a user meets it: the latest published plugin on the stable
16+
# releases named below, every week.
17+
schedule:
18+
- cron: '17 4 * * 1'
1519

1620
permissions:
1721
contents: read
@@ -57,10 +61,14 @@ jobs:
5761
if: inputs.plugin_artifact == ''
5862
env:
5963
GH_TOKEN: ${{ github.token }}
60-
RELEASE_TAG: ${{ inputs.release_tag || 'v0.2.0' }}
64+
RELEASE_TAG: ${{ inputs.release_tag }}
6165
run: |
6266
set -euo pipefail
63-
[[ "$RELEASE_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]
67+
# Unnamed (the weekly run): the newest release that carries the CLion plugin.
68+
if [ -z "$RELEASE_TAG" ]; then
69+
RELEASE_TAG="$(gh api "repos/$GITHUB_REPOSITORY/releases?per_page=100" --jq '[.[] | select((.draft | not) and (.tag_name | test("^(clion-)?v[0-9]+\\.[0-9]+\\.[0-9]+$")))][0].tag_name')"
70+
fi
71+
[[ "$RELEASE_TAG" =~ ^(clion-)?v[0-9]+\.[0-9]+\.[0-9]+$ ]]
6472
mkdir -p stable-plugin
6573
gh release download "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" \
6674
--pattern 'mcpp-clion-*.zip' --dir stable-plugin
@@ -125,12 +133,108 @@ jobs:
125133
path: |
126134
${{ runner.temp }}/clion-stable-result/result.json
127135
${{ runner.temp }}/clion-stable-result/checks.json
128-
${{ runner.temp }}/clion-stable-result/ide-errors.ndjson
136+
${{ runner.temp }}/clion-stable-result/ide-errors*.ndjson
129137
${{ runner.temp }}/clion-stable-result/settings/result.json
130138
${{ runner.temp }}/clion-stable-result/settings/observations.json
131139
${{ runner.temp }}/clion-stable-result/graphs/result.json
132140
${{ runner.temp }}/clion-stable-result/graphs/checks.json
133141
${{ runner.temp }}/clion-stable-result/graphs-no-jcef/result.json
134142
${{ runner.temp }}/clion-stable-result/graphs-no-jcef/checks.json
135143
${{ runner.temp }}/clion-stable-result/graphs-no-jcef/no-jcef-window.txt
144+
${{ runner.temp }}/clion-stable-result/graphs-no-jcef-plugin/result.json
145+
${{ runner.temp }}/clion-stable-result/graphs-no-jcef-plugin/checks.json
146+
${{ runner.temp }}/clion-stable-result/graphs-no-jcef-plugin/no-jcef-window.txt
147+
if-no-files-found: warn
148+
149+
# The report of #13 came from macOS on Apple silicon, where the JCEF plugin is a build of its own:
150+
# the startup chain and the graphs (JCEF on, switched off, its plugin disabled) on the newest stable
151+
# CLion there.
152+
# One IDE per runner: on macOS a second IDE started on the same runner could stop at its start, before
153+
# any plugin loads (its log ends at "CPU cores"), and its driver never connected.
154+
runtime-macos:
155+
name: packaged plugin on CLion ${{ matrix.version }} (macOS aarch64, ${{ matrix.scenario }})
156+
runs-on: macos-15
157+
timeout-minutes: 45
158+
strategy:
159+
fail-fast: false
160+
matrix:
161+
version: ['2026.2.4.1']
162+
scenario: [graphRendersNavigatesAndRecoversInJcef, graphExplainsAbsentJcefPlugin, graphExplainsUnavailableJcef]
163+
defaults:
164+
run:
165+
shell: bash
166+
steps:
167+
- uses: actions/checkout@v5
168+
- uses: ./.github/actions/setup-mcpp
169+
with:
170+
llvm: 'true'
171+
- uses: actions/setup-java@v5
172+
with:
173+
distribution: temurin
174+
java-version: '25'
175+
- uses: gradle/actions/setup-gradle@v5
176+
with:
177+
gradle-version: '9.7.1'
178+
- name: The candidate ZIP built once by CI
179+
if: inputs.plugin_artifact != ''
180+
uses: actions/download-artifact@v5
181+
with:
182+
name: ${{ inputs.plugin_artifact }}
183+
path: stable-plugin
184+
- name: The published ZIP for an isolated release check
185+
if: inputs.plugin_artifact == ''
186+
env:
187+
GH_TOKEN: ${{ github.token }}
188+
RELEASE_TAG: ${{ inputs.release_tag }}
189+
run: |
190+
set -euo pipefail
191+
if [ -z "$RELEASE_TAG" ]; then
192+
RELEASE_TAG="$(gh api "repos/$GITHUB_REPOSITORY/releases?per_page=100" --jq '[.[] | select((.draft | not) and (.tag_name | test("^(clion-)?v[0-9]+\\.[0-9]+\\.[0-9]+$")))][0].tag_name')"
193+
fi
194+
[[ "$RELEASE_TAG" =~ ^(clion-)?v[0-9]+\.[0-9]+\.[0-9]+$ ]]
195+
mkdir -p stable-plugin
196+
gh release download "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" \
197+
--pattern 'mcpp-clion-*.zip' --dir stable-plugin
198+
- name: The pinned language-service plugin
199+
env:
200+
GH_TOKEN: ${{ github.token }}
201+
run: |
202+
set -euo pipefail
203+
version="$(sed -n 's/^mcpplsPluginVersion *= *//p' mide-plugins/clion/gradle.properties)"
204+
gh release download "v$version" --repo Sunrisepeak/mcpp-language-server \
205+
--pattern "mcppls-clion-$version.zip" --dir stable-plugin
206+
- name: Start the real IDE, complete the startup chain and open the graphs
207+
env:
208+
IDE_VERSION: ${{ matrix.version }}
209+
run: |
210+
set -euo pipefail
211+
plugin="$(find stable-plugin -maxdepth 1 -name 'mcpp-clion-*.zip' -print)"
212+
language="$(find stable-plugin -maxdepth 1 -name 'mcppls-clion-*.zip' -print)"
213+
test -n "$plugin" && test -n "$language"
214+
gradle --no-daemon --max-workers=4 \
215+
-p mide-plugins/clion/integration-tests test --tests "GraphInteractionTest.${{ matrix.scenario }}" \
216+
-PpluginZip="$GITHUB_WORKSPACE/$plugin" \
217+
-PmcpplsZip="$GITHUB_WORKSPACE/$language" \
218+
-PideVersion="$IDE_VERSION" \
219+
-Poutput="$RUNNER_TEMP/clion-stable-result"
220+
- uses: actions/upload-artifact@v5
221+
if: always()
222+
with:
223+
name: clion-stable-macos-${{ matrix.version }}-${{ matrix.scenario }}
224+
# The JUnit results name an assertion's message; the IDE's own log, of a runner's IDE on a
225+
# generated project, names why an IDE did not start.
226+
path: |
227+
${{ runner.temp }}/clion-stable-result/ide-errors*.ndjson
228+
mide-plugins/clion/integration-tests/build/test-results/test/*.xml
229+
out/ide-tests/tests/*/*/log/idea.log
230+
out/ide-tests/tests/*/*/log/monitoring-thread-dumps-ide/*.txt
231+
${{ runner.temp }}/clion-stable-result/*/ide-start-retried
232+
${{ runner.temp }}/clion-stable-result/graphs/result.json
233+
${{ runner.temp }}/clion-stable-result/graphs/checks.json
234+
${{ runner.temp }}/clion-stable-result/graphs-no-jcef/result.json
235+
${{ runner.temp }}/clion-stable-result/graphs-no-jcef/checks.json
236+
${{ runner.temp }}/clion-stable-result/graphs-no-jcef/no-jcef-window.txt
237+
${{ runner.temp }}/clion-stable-result/graphs-no-jcef-plugin/result.json
238+
${{ runner.temp }}/clion-stable-result/graphs-no-jcef-plugin/checks.json
239+
${{ runner.temp }}/clion-stable-result/graphs-no-jcef-plugin/no-jcef-window.txt
136240
if-no-files-found: warn

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ compile_commands.json
1515
dist-upload/
1616
.xlings/
1717
out/ide-tests
18+
19+
# Local reviews and analyses, not design records.
20+
.agents/reviews/

‎CHANGELOG.md‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,47 @@
22

33
The changelog is kept by series (`X.Y`); each section lists its components' releases.
44

5+
## 1.6
6+
7+
### 1.6.0
8+
9+
Every component is 1.6.0: the backend, mcpp-vscode, mcpp-clion and mcpp-nvim (from 1.5.0). These
10+
are the fixes of the issue review of 2026-11-21
11+
([design record](.agents/docs/2026-11-21-editor-surfaces-and-feature-matrix.md), stream F).
12+
13+
- **CLion: no listener on the reading thread** (#13). "Read access is allowed from inside read-action
14+
only" was logged at startup and each time a backend started. The thread that reads the backend's
15+
output now only decodes frames; notifications reach their listeners in order on a pooled thread,
16+
answers complete on the pool, and the open documents are read in a read action.
17+
- **CLion without JCEF** (#13). Opening a graph without the JCEF plugin failed with
18+
`NoClassDefFoundError: JBCefApp`. The core of the plugin names no JCEF class; JCEF's page host is
19+
registered only when the JCEF plugin is loaded, and without it the tab says why.
20+
- **CLion: the cache tab in the sections of VS Code's page** (#13). Project cache (`target/`) and
21+
Global build cache, each with its cleanups as links on its row and in its context menu; an
22+
ellipsis marks one that asks first. The toolbar keeps Refresh. Neovim's cache text has the same
23+
two sections.
24+
- **CLion: texts read when shown** (#13). Toolbar texts and the Libraries button no longer stay in
25+
English beside Chinese rows.
26+
- **CLion: the runs that would have caught these.** The real-IDE run restarts the backend with
27+
`mcpp.toml` open and checks the cache tab's sections; the graphs run with the JCEF plugin
28+
disabled; the startup chain and the graphs run on macOS aarch64; a weekly run checks the latest
29+
published plugin. The pinned mcppls CLion plugin is 0.23.0.
30+
- **VS Code: pairs and comments in `mcpp.toml`** (#15, #18). Brackets and quotes close as they are
31+
typed, and `#` comments a line. The parity gate keeps every field of each language 0.9.0
32+
contributed and admits an added one.
33+
- **Inline tables** (#15). Inside `app = { ... }` under `[targets]` the keys of `[targets.app]` are
34+
offered, less those written, and an enum key's values. A dependency's inline table gets nothing:
35+
the snapshot does not list a dependency's keys.
36+
- **A dependency's features** (#16, #17). Inside `features = [...]` of a `path` or workspace
37+
dependency: its features, read from its own `mcpp.toml`; their hover; and
38+
`mcpp.manifest.unknownFeature` for a name it does not declare. An index package's features are not
39+
answered: mcpp states none, and `capabilities/explain` names
40+
[mcpp#992](https://github.com/mcpp-community/mcpp/issues/992) (`manifest.packageFeatures`).
41+
- **A graph right after the manifest changed is the new manifest's.** The kept build database was
42+
dropped by the watcher's next poll (every 500 ms), so a graph asked before it was the old manifest's,
43+
and the page kept it. An entry is now used only while the manifest is the one it was read from.
44+
- **Protocol.** A cache command of `commands/list` states `scope` (`project`, `shared`) and `level`.
45+
546
## 1.5
647

748
### 1.5.0

‎docs/rules.md‎

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ the order the messages arrive, so an answer sees the document the notifications
3232
| On a key of a table with a closed vocabulary | its keys, less those already written in the table's group; a key's detail names its type, values and default |
3333
| On a key of a dependency table | the five dependency forms |
3434
| On a key of `[features]`, `[generated_files]`, `[capabilities]`, `[xlings.workspace]`, `[tools.overrides]` | that table's forms |
35-
| On an enum key's value | its values (inside a string only the content is replaced) |
35+
| Inside an inline table, after `{` or `,` (1.6.0) | the keys of the table of its name, less those the inline table has on either side of the cursor: `app = { ... }` under `[targets]` lists what `[targets.app]` does, and is not an unknown key of `[targets]`. A dependency's inline table is its specification, whose keys the snapshot does not list, and gets nothing |
36+
| On an enum key's value | its values (inside a string only the content is replaced); a key of an inline table or a dotted key has its own table's |
37+
| Inside `features = [...]` of a dependency given by `path` or `workspace = true` (1.6.0) | the features its own manifest declares and the edge does not name yet, each with whether it is a default and what it implies |
3638
| On a dependency's version, with `mcpp.toml.indexCompletion` on and the workspace trusted | the versions mcpp's catalogue (`mcpp search --format json`) lists for that package, newest first; the catalogue is read once in the background (the answer is incomplete until then) and kept for ten minutes |
3739

3840
A table is read as the snapshot's section its name denotes: the whole name when the snapshot has
@@ -46,11 +48,29 @@ it, its note) and an enum value. Definition jumps from `workspace = true` to the
4648
`[workspace.dependencies]`, from an element of `features = [...]` to `[features.<name>]`, and from
4749
`path = "../x"` to that manifest's `[package]`.
4850

51+
### A dependency's features
52+
53+
A dependency's features are read from the text of its own manifest, the rules layer's ground: the
54+
directory its `path` names, or for `workspace = true` the one the nearest enclosing workspace's
55+
`[workspace.dependencies]` entry names. Its features are the names mcpp registers: the keys of
56+
`[features]` (`default` among them) and `[features.<name>]`, and the names of `[feature-deps.<name>]`
57+
and, under a target selector, of `feature-deps`, `feature-requires-abi` and `feature-xlings`. Its
58+
`default` names the ones on without being named, an array or `implies` what each turns on. A
59+
dependency whose manifest declares none accepts any name, as mcpp does. Between two elements a
60+
suggestion brings its commas; an array left open is read on its own line only.
61+
62+
An index package's features are not answered: mcpp states none
63+
([mcpp#992](https://github.com/mcpp-community/mcpp/issues/992) asks for them), and an index's
64+
descriptors are mcpp's to read. `capabilities/explain` reports this as `manifest.packageFeatures`.
65+
Hover on an element of the edge's `features = [...]` names the dependency, the default and what the
66+
feature implies.
67+
4968
| Code | Default severity | Setting | What it reports |
5069
|---|---|---|---|
5170
| `mcpp.manifest.syntax` | error | `mcpp.toml.diagnostics.syntax` | a line that is neither a table header nor `key = value`; an invalid key; a key without a value |
5271
| `mcpp.manifest.unknownSection` | warning | `mcpp.toml.diagnostics.unknownSection` | a table no section of the snapshot names, nor a prefix of it |
5372
| `mcpp.manifest.unknownKey` | warning | `mcpp.toml.diagnostics.unknownKey` | a key a table with a closed vocabulary does not have |
73+
| `mcpp.manifest.unknownFeature` | warning | `mcpp.toml.diagnostics.unknownKey` | a name in a `path` or workspace dependency's `features = [...]` that its manifest's `[features]` does not declare (1.6.0) |
5474
| `mcpp.manifest.planeSeparation` | warning | `mcpp.toml.diagnostics.planeSeparation` | a tool payload (`xim:`, `xpm:`, `xlings:`, `xvm:`) as a dependency; an mcpp package with a version under `[xlings]` |
5575
| `mcpp.manifest.legacyKey` | info | `mcpp.toml.diagnostics.legacyKeys` | a deprecated table or key, with its replacement |
5676
| `mcpp.manifest.mcppFloor` | error | -- | `[package] mcpp` that is not a release floor (`">=2026.9.28.3"`) |
@@ -95,3 +115,6 @@ implementation's answers over `tests/cts/rules/corpus` -- the scanner's structur
95115
at every position of every line, completion, hover, the jumps, the version contexts and the
96116
diagnostics under two sets of severities -- and over the documents of its parser tests
97117
(`golden/snippets.json`); the conformance case `rules` (tests/cts/rules.cpp) compares the backend's answers with them.
118+
The answers inside inline tables that 1.6.0 added are where 0.9 answered nothing; they are kept apart,
119+
in `golden/inline-tables.json` (`MCPP_IDE_WRITE_GOLDEN=1 mcpp test cts` writes it again for review),
120+
and every other position still equals 0.9's.

‎mcpp.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# M2/M3), where the system it runs upon is answered when the image is loaded.
1010
[package]
1111
name = "mcpp-ide"
12-
version = "1.5.0"
12+
version = "1.6.0"
1313
description = "The IDE backend for mcpp: sessions, jobs, records and view models over mcpp's control contract"
1414
license = "Apache-2.0"
1515
authors = ["mcpp-community"]

‎mide-plugins/clion/README.md‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,21 @@ backend.
7878
The stable IDE tests also use the actual settings dialog: keyboard input, visible validation
7979
errors, refusal of partial saves, the persisted XML, reopening the form and restoring defaults.
8080
Graph tests inspect the real JCEF document, click a rendered module to open its source,
81-
check visible query errors and recovery, and check the explanation when JCEF is disabled.
81+
check visible query errors and recovery, and check the explanation when JCEF is switched off and
82+
when the JCEF plugin is disabled.
8283

8384
The packaged ZIP is also run in the real stable CLion 2026.1.5.2 and 2026.2.4.1 IDEs by
8485
`clion-stable.yml`. Both versions load the same ZIP and the pinned mcppls plugin. The test opens
8586
an mcpp project, completes protocol 2 initialization, loads runtime translations and commands,
86-
and verifies the visible mcpp tool window and cache inventory. It executes build, run and test
87+
and verifies the visible mcpp tool window and the cache tab's two sections with their cleanups. It
88+
restarts the backend with mcpp.toml open and checks that the document is sent again. It executes build, run and test
8789
actions in a project whose path contains Unicode and spaces, launches the native debugger,
8890
checks its visible view, source breakpoint, variable values before and after stepping, resume
8991
and stop, checks the native test tree,
9092
compiler-error output, build/test failure and recovery, and exact manifest completion insertion
91-
during project analysis. It supplements Plugin Verifier's static compatibility checks.
93+
during project analysis. It supplements Plugin Verifier's static compatibility checks. The startup chain and the graphs also
94+
run on macOS aarch64 with CLion 2026.2.4.1, and a weekly run checks the latest published plugin on
95+
the stable releases.
9296
CLion 2026.2.4.1 can emit a GDB variable-read cancellation after stopping a
9397
debug session; the same exception occurs in a stock CMake project without the
9498
plugins. The stable test records the exception class and method symbols, and
@@ -99,8 +103,8 @@ An individual packaged plugin can be checked without rebuilding the backend:
99103

100104
```bash
101105
xvfb-run -a gradle --no-daemon -p integration-tests test \
102-
-PpluginZip=/absolute/path/mcpp-clion-1.5.0.zip \
103-
-PmcpplsZip=/absolute/path/mcppls-clion-0.21.0.zip \
106+
-PpluginZip=/absolute/path/mcpp-clion-1.6.0.zip \
107+
-PmcpplsZip=/absolute/path/mcppls-clion-0.23.0.zip \
104108
-PideVersion=2026.1.5.2
105109
```
106110

‎mide-plugins/clion/gradle.properties‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# where it installs (2026.1 and later); the verifier checks both ends.
33
platformType = CL
44
platformVersion = 2026.2.3
5-
pluginVersion = 1.5.0
5+
pluginVersion = 1.6.0
66
# The mcppls CLion plugin this one depends on (<depends>io.github.sunrisepeak.mcppls</depends>):
77
# its release's one package for every system, fetched for the sandbox, the tests and the verifier.
8-
mcpplsPluginVersion = 0.21.0
8+
mcpplsPluginVersion = 0.23.0
99
org.gradle.jvmargs = -Xmx2g
1010
# The IDE ships the Kotlin standard library; a plugin bundles no second copy.
1111
kotlin.stdlib.default.dependency = false

0 commit comments

Comments
 (0)