Skip to content

Commit 217755f

Browse files
committed
Extend the workaround in the v53 upgrader to generate missing subcategory columns.
Fixes #5368.
1 parent d8bba23 commit 217755f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/profile-logic/processed-profile-versioning.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -2350,9 +2350,11 @@ const _upgraders = {
23502350
for (const thread of profile.threads) {
23512351
const { frameTable, stackTable } = thread;
23522352

2353-
// Best-effort fix for profiles missing frameTable.category, such as the
2354-
// ones generated by Lean before https://github.com/leanprover/lean4/pull/6363
2355-
if (!('category' in frameTable)) {
2353+
// Best-effort fix for profiles missing frameTable.category or
2354+
// frameTable.subcategory, such as the ones generated by Lean before
2355+
// https://github.com/leanprover/lean4/pull/6363 or the ones generated by
2356+
// vernier before https://github.com/jhawthorn/vernier/issues/128 .
2357+
if (!frameTable.category || !frameTable.subcategory) {
23562358
frameTable.category = [];
23572359
frameTable.subcategory = [];
23582360
for (let frameIndex = 0; frameIndex < frameTable.length; frameIndex++) {

0 commit comments

Comments
 (0)