instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
tinyobjloader__tinyobjloader__414
tinyobjloader/tinyobjloader
414
defect
d51d25014e8c7c471db6e262539e8ffb06945bd1
04383de313928401267d43f0c363e374e1406aa9
Fix texcoord_ws corruption, alpha_texname double-write, missing BOM strip in callback, and wrong test fixture path
Four independent bugs found during codebase review, plus new tests verifying the fixes. ## Bugs fixed - **`texcoord_ws` always empty** (`LoadObj` stream overload): `attrib->texcoords.swap(vt)` drains `vt`, so the subsequent `attrib->texcoord_ws.swap(vt)` was a no-op. Added a dedicated `vt_w` vector; the `vt` parser n...
diff --git a/models/texcoord-w-mixed.obj b/models/texcoord-w-mixed.obj new file mode 100644 index 00000000..16421ae5 --- /dev/null +++ b/models/texcoord-w-mixed.obj @@ -0,0 +1,15 @@ +# OBJ file with mixed 3-component and 2-component texture coordinates +# Tests that texcoord_ws correctly stores 0.0 for omitted w values...
3
2
0
[{"id": "G0", "claim": "Add a unit test for the callback BOM issue in tests/tester.cc, preparing and adding test .obj/.mtl input to models/ if necessary.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Add a variant of the uv optional w component test ...
null
tinyobjloader__tinyobjloader__415
tinyobjloader/tinyobjloader
415
defect
a285d14032202d07a210f98176fe4e9021b39c19
0cb515633b844ae96cea22989c5f4d881c81cf45
Add Windows long path and Unicode file path support for .obj/.mtl loading
- [x] Review latest comment and scope (review-only request) - [x] Re-check current branch diff and key files touched by this PR - [x] Investigate recent GitHub Actions runs for this branch and inspect failures if any - [x] Run targeted build/tests for path-related changes - [x] Perform final agent code review/security ...
diff --git a/models/utf8-path-test.mtl b/models/utf8-path-test.mtl new file mode 100644 index 00000000..b89434a9 --- /dev/null +++ b/models/utf8-path-test.mtl @@ -0,0 +1,4 @@ +newmtl Material +Ka 0 0 0 +Kd 0.8 0.8 0.8 +Ks 0 0 0 diff --git a/models/utf8-path-test.obj b/models/utf8-path-test.obj new file mode 100644 inde...
8
7
7
[{"id": "G0", "claim": "Add unit tests in tests/tester.cc for the new UTF-8 and long-path loading, provide accompanying minimal test .obj/.mtl files under models/, generate the MAX_PATH filename in the tester, and check Windows long-path support at runtime, skipping (and reporting as skipped) the MAX_PATH test when lon...
null
tipi-tapi__ai-paint-today-BE__121
tipi-tapi/ai-paint-today-BE
121
defect
898863dd911818ca705fddb4aa79ee10bfcfaed0
89a221cdeb52f7bd4594ee2cb41b0616958ccd5d
일기 생성시 이전 날짜 일기 생성 가능하도록 수정
# 구현 내용 ## 구현 요약 - 일기 생성 api 변경(createDiaryDate 파라미터 추가) - CreateDiaryServiceTest 구현 ## 논의사항 CreateDiaryService 클래스의 createDiary 메서드는 저희 비즈니스 핵심 로직이자 많은 의존성과 높은 복잡도를 갖고 있습니다. 따라서 단위테스트를 작성할 때에도 많은 의존성이 필요하고, 여러 분기를 테스트해야 합니다. 다만 저희가 여러 책임을 여러 클래스로 분산하여 코드를 작성했기에 id값 검증, 암호화, 이미지 업로드와 같은 여러 task에 대한 검증을 타 클...
diff --git a/src/main/java/tipitapi/drawmytoday/common/exception/ErrorCode.java b/src/main/java/tipitapi/drawmytoday/common/exception/ErrorCode.java index 2499e0c9..63e37adf 100644 --- a/src/main/java/tipitapi/drawmytoday/common/exception/ErrorCode.java +++ b/src/main/java/tipitapi/drawmytoday/common/exception/ErrorCod...
3
3
1
[{"id": "G0", "claim": "Because createDiary checks the real clock via LocalDateTime.now() internally, the new test that uses CREATE_DIARY_DATE.plusDays(1) can fail if it runs at 23:59:59, and the author asks whether plusDays should be raised to two or more days or a better solution found.", "category": "testing", "verd...
null
tipi-tapi__ai-paint-today-BE__126
tipi-tapi/ai-paint-today-BE
126
defect
6e20d4a6fdd7a046265ea44b193e87a694bb19d8
817a2e56c9c501e336c5342e5c887f24386f0657
:sparkles: feature: 특정 날짜 일기 존재 여부 조회 API 추가
# 구현 내용 ## 구현 요약 [GET] /diary/calendar/date 특정 날짜 일기 존재 여부 조회 API 추가 - Controller, Service, Repository 메소드 추가 - 테스트 코드 추가 - DateUtils의 Date 반환 및 검증 메소드 추가 ## 관련 이슈 close #125 ## 구현 내용 - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functi...
diff --git a/src/main/java/tipitapi/drawmytoday/common/utils/DateUtils.java b/src/main/java/tipitapi/drawmytoday/common/utils/DateUtils.java index 68082a91..97855145 100644 --- a/src/main/java/tipitapi/drawmytoday/common/utils/DateUtils.java +++ b/src/main/java/tipitapi/drawmytoday/common/utils/DateUtils.java @@ -1,5 +...
2
2
1
[{"id": "G0", "claim": "The new endpoint's Swagger spec adds a 404 'U001: 해당 토큰의 유저를 찾을 수 없습니다' response even though that error is a common one omitted from every API, and the reviewer asks why it was added separately.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
tipi-tapi__ai-paint-today-BE__19
tipi-tapi/ai-paint-today-BE
19
defect
c62ca59f5bf0ede6db3a9d2ad0312bf1f59c34b4
9b9db0b649961a2af5e198c3d8639b6203ca624b
특정 일기 조회 API, 테스트 추가
# 구현 내용 ## 구현 요약 - [GET] /diary/:id : 특정일기 조회 API - 위 API의 Controller, Service, Repository 그리고 테스트를 추가하였습니다. - 테스트 데이터 생성 클래스 추가 - Repository Test의 Base Abstract Class 추가 - Test 데이터를 만들어 저장하는 행위가 공통적으로 나타나므로, base 클래스를 추가함 기존에 #16 이슈는 다른 API도 함께 개발하여 PR 게시 예정이었으나, 개발량이 많아져 별도로 작업하여 게시할 예정입니다. ##...
diff --git a/build.gradle b/build.gradle index 45e75ebe..26d76bae 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ plugins { - id 'java' - id 'org.springframework.boot' version '2.7.11' - id 'io.spring.dependency-management' version '1.0.15.RELEASE' + id 'java' + id 'org.springframework.boot' version...
5
3
2
[{"id": "G0", "claim": "The controller should not depend on entities or orchestrate several service calls; user validation belongs inside the service, which should return DTOs to the controller.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "getDiary sho...
null
tipi-tapi__ai-paint-today-BE__235
tipi-tapi/ai-paint-today-BE
235
defect
e3c589cc616322c857414ee87a22b4640c6f7b2f
84199029b93ce66ec49e3d7368af8295d01ffaa2
이미지 재생성 로직 구현
# 구현 내용 ## 구현 요약 **유저 플로우: 일기 상세페이지에서 `다시 그리기` 버튼 클릭 -> (만약 티켓이 없다면 광고를 띄우고) ad reward api 호출 -> regenerate api 호출 -> 일기 조회 api 호출** - [POST] diary/{id}/regenerate: 일기 이미지 재생성 API 추가 - 일기 이미지는 이전에 생성한 prompt(is_success가 true인)로 재생성 - 일기 이미지를 재생성하면 재생성한 이미지를 대표 이미지로 선택되도록 로직 추가 - [GET] diary/{id}: 일기 조회...
diff --git a/src/main/java/tipitapi/drawmytoday/domain/diary/controller/DiaryController.java b/src/main/java/tipitapi/drawmytoday/domain/diary/controller/DiaryController.java index ef2c4af3..793054ad 100644 --- a/src/main/java/tipitapi/drawmytoday/domain/diary/controller/DiaryController.java +++ b/src/main/java/tipitap...
7
5
2
[{"id": "G0", "claim": "Splitting the image URL into selectedImageUrl plus an unselected-only list breaks existing consumers of the API, so keep imageUrl as-is and add a single image-list field of DTOs carrying url and a selected flag, including the selected image in the list.", "category": "design", "verdict": "suppor...
null
tipi-tapi__ai-paint-today-BE__270
tipi-tapi/ai-paint-today-BE
270
defect
94b201a65f1beb83b2b8a9725365f01cbc773c1e
454291406f3eceac9ddffe342dae3000c908133c
[관리자 일기 조회 API] 테스트 일기가 반환되도록 개선
# 구현 내용 ## 구현 요약 ### [GET] /admin/diaries 관리자 일기 조회 API : 테스트 일기 반환되도록 개선 - 쿼리 파라미터 `test` 를 추가해서, 해당 파라미터 값에 따라 테스트 일기 반환 여부를 판단 - 쿼리 파라미터 `test`는 기본적으로 true로, 기본적으로 테스트 일기를 포함하도록 구현 - controller, service, repository 메서드에 파라미터를 추가하고, 파라미터 값에 따라서 where 절 쿼리를 추가하도록 로직 추가 - `GetAdminDiaryResponse` Response DTO ...
diff --git a/src/main/java/tipitapi/drawmytoday/domain/admin/controller/AdminController.java b/src/main/java/tipitapi/drawmytoday/domain/admin/controller/AdminController.java index 872e28bf..7afb1d90 100644 --- a/src/main/java/tipitapi/drawmytoday/domain/admin/controller/AdminController.java +++ b/src/main/java/tipitap...
1
1
0
[{"id": "G0", "claim": "The `test` query parameter name is confusing - at first glance it is unclear whether it returns only test diaries or includes them, and it matches the test-diary creation parameter's name - so it should be renamed to something like `contain_test` or `test_contain`.", "category": "maintainability...
null
tipsy__j2html__187
tipsy/j2html
187
defect
afd00597f7faff230f8ea17b08f7d5230a17767c
75ef81d5a3f56d0e2b471b0e55dee1a70dad3d9b
Remove manual tags, use only generated tags
- change html, head, body from manual to generated tags - restore compatibility with j2html 1.4.0 - fix https://github.com/tipsy/j2html/issues/185
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 79bf3a5e..fb3cc1a8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -57,8 +57,8 @@ This is **the** central class in J2HTML. It provides the methods for users of J2HTML to generate all HTML Tags. It contains methods like ``` -public static HtmlTag html(HeadTag...
2
1
0
[{"id": "G0", "claim": "The new release's incompatibility (e.g. ContainerTag now being generic) should be documented somewhere such as a CHANGELOG, and the documentation examples, including the Config example, should be updated to reflect the new type system instead of plain `Tag`.", "category": "documentation", "verdi...
null
tirr-c__jxl-oxide__435
tirr-c/jxl-oxide
435
defect
de8f0ddf462102b7c7558282ce1ecfd2b967adee
aaadd1da5cbfb1e0295f219e371439c36f7ffea1
jxl-oxide: Add moxcms CMS backend
Add `jxl_oxide::Moxcms`, add CLI option `--cms`, add tests for moxcms backend. Resolves #433
diff --git a/Cargo.lock b/Cargo.lock index fecd99b8..c49bdb8b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -47,6 +47,21 @@ dependencies = [ "alloc-no-stdlib", ] +[[package]] +name = "android-tzdata" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e999941b234f3131b00...
3
2
2
[{"id": "G0", "claim": "The moxcms transform should be created once per image and cached instead of being built on every call, because preparing the LUT is expensive (e.g. ~4 ms for FOGRA39 on an M3) and the method is called multiple times, so transform creation can cost more than the transformation and decoding combin...
null
tirr-c__jxl-oxide__48
tirr-c/jxl-oxide
48
defect
b26f211eb86e0c3cf839d63a58f0dc4216750da9
5c22c280b17b9a2b69fff350305e1e744a9f44b7
Add spot colour channel rendering
Adds rendering of spot color channels by default, a `set_render_spot_colour` method to enable/disable their rendering and a `render_spot_colour` method to get the value of that flag in `JxlRenderer` Rendering of spot channels onto color channels is disabled during conformance testing since they are tested as separa...
diff --git a/crates/jxl-oxide/src/lib.rs b/crates/jxl-oxide/src/lib.rs index 0eccff08..afa29e7e 100644 --- a/crates/jxl-oxide/src/lib.rs +++ b/crates/jxl-oxide/src/lib.rs @@ -135,6 +135,7 @@ impl<R: Read> JxlImage<R> { image_header: &self.image_header, embedded_icc: self.embedded_icc.as_deref(...
2
2
1
[{"id": "G0", "claim": "Spot colour channels should not be rendered when the image is grayscale; a warning should be emitted instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "render_spot_colour could iterate over grid and ec_grid with a single...
null
tirth8205__code-review-graph__154
tirth8205/code-review-graph
154
defect
44c0b99d31cd0db878cd6ebdb0a5b68577ef2553
ff61da812eb2b282c1356f7ef384e77c32175ea9
Fix Claude hook config and add JSX component CALLS edges
## Summary This PR does two things: 1. Fixes Claude Code install/config issues: - removes invalid `PreCommit` hook generation - changes `PostToolUse` to `code-review-graph update --skip-flows` - makes generated Claude/settings/skill file reads and writes explicit UTF-8 for Windows safety 2. Improves React/TSX graph ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 37e21a3db..9f876a833 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [Unreleased] + +### Added +- JSX component invocations now emit synthetic `CALLS` edges for uppercase React-style tags such as `<MarkdownMsg />` +- `install --platform cla...
4
2
1
[{"id": "G0", "claim": "The pull request bundles two distinct features (hook schema fixes and JSX/TSX component CALLS edges), the hook fixes overlap with PR #141 and #152 already handled separately, and the JSX CALLS feature should be split into its own PR.", "category": "design", "verdict": "supported", "priority": "P...
null
titipata__pubmed_parser__139
titipata/pubmed_parser
139
defect
e49a78fff9be398a8c8d5356d40418399a812c1a
428cbc628abefe9eb1e865cc6a39f48eb1e6b206
#125 Create exception for empty figures and parse figure sub-points.
Create exception for empty figures and parse figure sub-points. Further, create one test for every parsed field of a figure.
diff --git a/pubmed_parser/pubmed_oa_parser.py b/pubmed_parser/pubmed_oa_parser.py index 925165e..9eee248 100644 --- a/pubmed_parser/pubmed_oa_parser.py +++ b/pubmed_parser/pubmed_oa_parser.py @@ -428,19 +428,31 @@ def parse_pubmed_caption(path): if figs is not None: for fig in figs: fig_id =...
5
4
1
[{"id": "G0", "claim": "The parsed captions and fig_subpoints output contains unicode escape sequences such as \\u2009; the author asks whether they should be left in the output.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The tests should drop the ca...
null
titipata__pubmed_parser__142
titipata/pubmed_parser
142
defect
0eb711487f59c430e82928bbb0736f7901e4fd32
0bd12bff5a7458b27c9f5a445a1905d95ad3694b
#119 Modify XPath to retreive tables and references.
### Tables The XPath was changed to parse the tables. Now any `table-wrap` node under `body` gets parsed. ### References It seems that some articles contain references with the attribute `citation-type` instead of `publication-type`. The new implementation parses also references with the attribute `citation-type`.
diff --git a/pubmed_parser/pubmed_oa_parser.py b/pubmed_parser/pubmed_oa_parser.py index 5cfd0d9..b6c619f 100644 --- a/pubmed_parser/pubmed_oa_parser.py +++ b/pubmed_parser/pubmed_oa_parser.py @@ -264,11 +264,14 @@ def parse_pubmed_references(path): ref = reference.find("mixed-citation") elif refe...
2
2
1
[{"id": "G0", "claim": "Changes carried over from #112 — the pub-date XPath edits in parse_pubmed_xml and the publication_date assertion in the test — don't belong in this PR and should be reverted.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
tivac__modular-css__613
tivac/modular-css
613
defect
9b708a36c9a3ecac9642ce30b88e9991afd00464
4ab02bc1ac7ea72da6640ecea214d5c8cff008d1
Webpack style export
Adds option to disable `styleExports` in Webpack bundle. ## Description Adds a check before adding `var style = ...` to the Webpack bundle. ## Motivation and Context This value is not always needed, and removing it can reduce the bundle size. ## How Has This Been Tested? Added a test. Checked the output. De...
diff --git a/package-lock.json b/package-lock.json index 15c29f78e..189c18798 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1623,7 +1623,6 @@ "postcss-url": "^8.0.0", "postcss-value-parser": "^3.3.0", "resolve-from": "^5.0.0", - "true-case-path": "^2.0.0", "unique...
1
1
1
[{"id": "G0", "claim": "The styleExport default should be registered in the options object so the guard can read `if(!options.styleExport)` instead of the awkward `if(options.styleExport !== false)`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tivac__modular-css__669
tivac/modular-css
669
defect
a57cddffc1ef4bad15ecccadd8725c1042a9039f
8d8585c1594ae111bbfc24139bf52a8a2c4a0517
feat: support from global for composes
This is nice feature in css-modules, for doing quick composition of global classes. `global` acts as a keyword instead of a file here ## Description Parses `composes: a, b, c from global` as `composes: global(a), global(b), global(c)` ## Motivation and Context Css-modules supports this, and it is nicer synt...
diff --git a/packages/processor/test/__snapshots__/composition.test.js.snap b/packages/processor/test/__snapshots__/composition.test.js.snap index e182270b7..03be107a9 100644 --- a/packages/processor/test/__snapshots__/composition.test.js.snap +++ b/packages/processor/test/__snapshots__/composition.test.js.snap @@ -28,...
3
3
1
[{"id": "G0", "claim": "The reference rule in parsers/shared.pegjs should use the global_keyword rule (`= global_keyword \"(\" _ ...`) and global_keyword should be defined before it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment with ...
null
tivac__modular-css__673
tivac/modular-css
673
defect
ac8ea565ed087d4119b2f83acac176325e9ffb33
cec156bcd2433bdf249ca41b2af929dbf7bc7005
feat: option to suppress value export
## Description Implements options to disable value export, as mentioned in #672. ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> ## How Has This Been Tested? Added unit test for option. <!--- Ple...
diff --git a/packages/processor/README.md b/packages/processor/README.md index 0be0a6155..aafc83043 100644 --- a/packages/processor/README.md +++ b/packages/processor/README.md @@ -224,6 +224,18 @@ new Processor({ */ ``` +### `exportValues` + +Enable exporting `@value` identifiers. + +**Default**: `true` + +```js +...
1
1
0
[{"id": "G0", "claim": "The test added to packages/processor/test/options.test.js should be named \"should export @values by default\" rather than \"should not export @values by default\", since exporting @values is now the default behavior.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "i...
null
tivac__modular-css__909
tivac/modular-css
909
defect
f37b5a786259eacae45b5cf68e4fe352af570af4
47e561ef78f894b66ce79261870c04beb9817970
[css-to-js] Handle `defaultExport` option
<!--- Provide a general summary of your changes in the Title above --> ## Description Webpack loader sets the `defaultExport` option. https://github.com/tivac/modular-css/blob/f37b5a786259eacae45b5cf68e4fe352af570af4/packages/webpack/loader.js#L5-L21 Options are handed over to the `css-to-js` module and then no...
diff --git a/packages/css-to-js/css-to-js.js b/packages/css-to-js/css-to-js.js index 32d03135f..c563b36cb 100644 --- a/packages/css-to-js/css-to-js.js +++ b/packages/css-to-js/css-to-js.js @@ -16,8 +16,9 @@ const DEFAULT_VALUES = "$values"; const DEFAULTS = { __proto__ : null, dev :...
1
1
0
[{"id": "G0", "claim": "The same `defaultExport` option doc that was added to the webpack readme should be added to both the rollup and vite readmes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tj__commander.js__1102
tj/commander.js
1,102
defect
f119fc78eb9de82b9edd6526cf24945e1ae35fdd
fb1bbf6d20033f2dff2fcdf6d1a917bd0925c007
Opt-in behaviour to avoid name pollution
# Pull Request ## Problem Commander has traditionally stored the option values on the command object. This gives a compact syntax especially when working with the program object, but means there are potential naming conflicts between user defined options and properties on Command. This catches people out and ther...
diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 000000000..c9227f805 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +# We have not configured eslint for TypeScript so avoid bogus error messages in the test file and typings file. +**/*.ts diff --git a/Readme.md b/Readme.md index 34fc1eb7a..afe04...
3
3
0
[{"id": "G0", "claim": "The `modern` name for the combined configuration is not suitable for the long term and should be replaced by a named combo such as `{ combo: 'safeOptions' }` instead of `{ modern: true }`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
tj__commander.js__1118
tj/commander.js
1,118
defect
9de09686ad486a717cde3b4ebb1f099023421ec6
b0c5da0bf3bafdb6444d2ef5e0d1b44a6c917311
Add parseAsync
# Pull Request ## Problem People are using async routines from TypeScript and Javascript, and want to declare async action handlers. For the caller to properly wind up the async calls, Commander needs to expose something to allow handling the asynchronous calls. See #806 ## Solution Add a `parseAsync()` ...
diff --git a/index.js b/index.js index 918d04a2b..e29061e9f 100644 --- a/index.js +++ b/index.js @@ -129,6 +129,7 @@ function Command(name) { this._optionValues = {}; this._storeOptionsAsProperties = true; // backwards compatible by default this._passCommandToAction = true; // backwards compatible by default +...
5
2
1
[{"id": "G0", "claim": "The new parseAsync functionality still needs tests, including testing from JavaScript since initial development used TypeScript.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Compatibility of the change with node 6 still needs t...
null
tj__commander.js__1191
tj/commander.js
1,191
defect
3cf8cff2a91d1d38da2ea9e5ace40230f1d9a813
cb44c62401994d303f56dbffde4f40118dc6c645
createCommand factory routine
# Pull Request Related: #1002 #1185 ## Problem - some people prefer factory routine to using `new` - awkward to subclass Command - awkward to customise Command (without using subclass) ## Solution Add a factory routine, which can be overridden.
diff --git a/Readme.md b/Readme.md index 33a12a2d7..0d954265d 100644 --- a/Readme.md +++ b/Readme.md @@ -36,6 +36,7 @@ Read this in other languages: English | [简体中文](./Readme_zh-CN.md) - [.parse() and .parseAsync()](#parse-and-parseasync) - [Avoiding option name clashes](#avoiding-option-name-clashes) - ...
2
2
1
[{"id": "G0", "claim": "The createCommand declaration in typings/index.d.ts should return Command instead of this, because a `this` return type makes the PR's own test subclass code invalid and cannot be kept.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
tj__commander.js__1331
tj/commander.js
1,331
defect
d26a26d23289f632e99637147d094961d3c76f68
8401ee64a291ef53665b7dba100fcd0c70193cdf
Enhance Option class to allow hiding help, specifying choices, and change how default value displayed in help
# Pull Request There are various requests for additional behaviours for options that are hard to add to the existing Command interface. This is an experiment to see whether turning Option into a richer class will allow adding new features in a tidy way by working directly with the option, rather than indirectly from...
diff --git a/Readme.md b/Readme.md index e8807f9cd..2e0577fca 100644 --- a/Readme.md +++ b/Readme.md @@ -16,6 +16,7 @@ Read this in other languages: English | [简体中文](./Readme_zh-CN.md) - [Common option types, boolean and value](#common-option-types-boolean-and-value) - [Default option value](#default-option-v...
4
2
1
[{"id": "G0", "claim": "The new Option/Command chaining methods have no tests; the reviewer asks what the expected behaviour is when .default() and .hideHelp() are chained and implies tests are needed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
tj__commander.js__1407
tj/commander.js
1,407
defect
bd538aa42818f1f8fa23e7dc7bcc3b60d0a56434
6f0c80bee8789ed764a64b9ae5a278fa7db988c9
Add .allowExcessArguments() and error message
# Pull Request ## Problem By default, excess arguments are silently ignored. Checking manually is a bit tricky. See: #259 #749 #1000 #1268 ## Solution - add a check for excess arguments before calling action handler - `.allowExcessArguments()` is like `.allowUnknownOption()` to enable/disable the new ...
diff --git a/index.js b/index.js index ed23283d6..0ded86f77 100644 --- a/index.js +++ b/index.js @@ -535,6 +535,7 @@ class Command extends EventEmitter { this.options = []; this.parent = null; this._allowUnknownOption = false; + this._allowExcessArguments = true; this._args = []; this.rawArg...
1
1
0
[{"id": "G0", "claim": "The new option methods should use a default parameter (e.g. allowExcessArguments(allowExcess = true)) instead of manually testing for undefined.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tj__commander.js__1502
tj/commander.js
1,502
defect
eced8e44c9422121f6b89bea79bdb0a1fa28aa4d
b5737c21f676009250f1c8da5578a9df03a2c465
Check command-arguments even without action handler
# Pull Request ## Problem The number of command-arguments is only checked if there is an action handler. This means no checking for simple programs which fall-through to processing the results of the parsing in following code. Fixes #1493 ## Solution Follow in the footsteps of the refactored tests for op...
diff --git a/index.js b/index.js index 9c56eab07..ab7723b43 100644 --- a/index.js +++ b/index.js @@ -1559,11 +1559,8 @@ class Command extends EventEmitter { this.unknownOption(parsed.unknown[0]); } }; - - const commandEvent = `command:${this.name()}`; - if (this._actionHandler) { - ...
1
1
0
[{"id": "G0", "claim": "The name `getCheckedArguments` is hard to understand because a 'get' function implies a return value, which the call sites without an action handler do not use.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tj__commander.js__1587
tj/commander.js
1,587
defect
3a0ef21a928798edb71a8c9ffe08092832ca6870
be1e39cb1f66f4805f84a2d421e549e3d5c10ab2
Add .env method to Option for consulting environment variable for option value
# Pull Request ## Problem Commander does not have any direct support for getting values from environment variables. You can pass them in as default, but this masks the default in the help and documentation is up to the user. One of the reasons for improving "default" support was people using it to inject envir...
diff --git a/Readme.md b/Readme.md index 4cc640b94..02688c591 100644 --- a/Readme.md +++ b/Readme.md @@ -308,13 +308,14 @@ program.version('0.0.1', '-v, --vers', 'output the current version'); You can add most options using the `.option()` method, but there are some additional features available by constructing an `O...
1
1
0
[{"id": "G0", "claim": "The `source` parameter added to `setOptionValue` is not necessary and should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tj__commander.js__1711
tj/commander.js
1,711
defect
7d7a674bb223528fbf2e01b277df844ef1a2ea17
54f09093ecbf0aaa75c798c4c8557018d2f15ca7
Check for conflicts in parent commands
# Pull Request ## Problem Only testing for conflicts in leaf command. See: #1710 ## Solution Follow same pattern as checking for required options: - run up parents checking them as well - call in dispatch to external command too ## ChangeLog Fixes: - detect conflicts in parent commands of called...
diff --git a/lib/command.js b/lib/command.js index cd6614f0c..cb186de34 100644 --- a/lib/command.js +++ b/lib/command.js @@ -946,6 +946,7 @@ Expecting one of '${allowedValues.join("', '")}'`); // Not checking for help first. Unlikely to have mandatory and executable, and can't robustly test for help flags in ext...
1
1
0
[{"id": "G0", "claim": "The `cmd` parameter of `_checkForConflictingOptions(cmd)` is unnecessary and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tj__commander.js__1763
tj/commander.js
1,763
defect
dccc90676aa960563ae0d0f3414a64a231286a69
416e3135dbbbdb4a2f62425823c148e6ded007c5
feat: add preSubcommand hook
# Pull Request ## Problem <!-- What problem are you solving? What Issues does this relate to? Show the broken output if appropriate. --> Read `--env` options and process it before subcommand parsed. Closes #1762 ## Solution Add `preSubcommand` hook to handle some operations that take effect for al...
diff --git a/Readme.md b/Readme.md index 6391ee7d2..4bddc9a74 100644 --- a/Readme.md +++ b/Readme.md @@ -724,6 +724,8 @@ The supported events are: The hook is passed the command it was added to, and the command running the action handler. +- `preSubCommand`: called before sub-command parsed + ## Automated help ...
5
5
4
[{"id": "G0", "claim": "Calling the hook via _chainOrCallHooks from _parseCommand fires preSubCommand for every ancestor level, so with nested subcommands the same hook runs multiple times instead of once before the direct subcommand.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr...
null
tj__commander.js__2087
tj/commander.js
2,087
defect
7d08bc749537db199b29901783c99ad9daa97547
eb7e72a459c9d2dbb379828d0ac704c0ac059e9d
Refactor help command implementation to hold actual Command
# Pull Request ## Problem In order of importance: 1) the other `addFoo` routines like `addCommand()` take objects 2) we have to do custom work and add more properties for new Command features, like say helpGroup (#1910) 3) bit messy storing multiple properties to construct help command when needed (minor) ...
diff --git a/Readme.md b/Readme.md index 601460dcb..4e6f5edbd 100644 --- a/Readme.md +++ b/Readme.md @@ -37,7 +37,7 @@ Read this in other languages: English | [简体中文](./Readme_zh-CN.md) - [.usage](#usage) - [.description and .summary](#description-and-summary) - [.helpOption(flags, description)](#helpopti...
1
1
0
[{"id": "G0", "claim": "Since enableOrNameAndArgs is a boolean in that branch, the `!!` coercion in `this._addImplicitHelpCommand = !!enableOrNameAndArgs;` is unnecessary.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tj__commander.js__277
tj/commander.js
277
defect
db67c895df167682112e3a523de8d23b0a5ee543
7ffd24c2c8cfd665faf84eabbd30221773bbbea5
Add support for variadic arguments
This is a quick attempt at fixing issue #53. It works by allowing the user to mark the last argument as variadic by appending `...` to the argument name. Here is an example: `.command('mycommand <requiredArg> [variadicArg...]')`. If you attempt to mark an argument as variadic but it is not the last argument, you wi...
diff --git a/Readme.md b/Readme.md index 76639bba5..f186852d5 100644 --- a/Readme.md +++ b/Readme.md @@ -38,6 +38,37 @@ console.log(' - %s cheese', program.cheese); Short flags may be passed as a single arg, for example `-abc` is equivalent to `-a -b -c`. Multi-word options such as "--template-engine" are camel-ca...
7
5
1
[{"id": "G0", "claim": "The new variadic arguments feature needs documentation added (an example in the README.md and an update to the annotated source).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The docs could include a quick definition of `...
null
tj__commander.js__794
tj/commander.js
794
defect
649eaef336ddc7224eb5c73e4a958685e24de25e
ca817224cbd4ece5f155c9853fc410e88175de69
fixes tests
- Many tests were not actually invoking assertion functions. Now.they.are() - Fixed one test that was then failing because of side-effects from previous test setups. - Made small changes in some setups to avoid potential false negatives. (Also: made a tiny unrelated code change to ensure Options always has boo...
diff --git a/index.js b/index.js index fb648beec..76d37066e 100644 --- a/index.js +++ b/index.js @@ -43,8 +43,8 @@ exports.Option = Option; function Option(flags, description) { this.flags = flags; - this.required = ~flags.indexOf('<'); - this.optional = ~flags.indexOf('['); + this.required = flags.indexOf('<'...
1
1
0
[{"id": "G0", "claim": "Convert the `this.bool = !~flags.indexOf('-no-')` line in index.js to the same explicit-comparison style the PR used for the required/optional lines, for consistency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tj__commander.js__795
tj/commander.js
795
defect
dcddf698c5463795401ad3d6382f5ec5ec060478
3f336d2863964e8319448cb1012524ec9bced1c5
fixes behavior of --no-* options
A bug existed whenever a `--no`-prefixed option was defined along with its counterpart (e.g. `--status` and `--no-status`), which caused the corresponding boolean attribute to always be `false` when either option was specified on the command line. This was because the definition of a negating option would overwri...
diff --git a/Readme.md b/Readme.md index a29da4013..e4367dcda 100644 --- a/Readme.md +++ b/Readme.md @@ -44,7 +44,7 @@ console.log(' - %s cheese', program.cheese); Short flags may be passed as a single arg, for example `-abc` is equivalent to `-a -b -c`. Multi-word options such as "--template-engine" are camel-case...
2
1
0
[{"id": "G0", "claim": "The change to `Option.prototype.name`/`attributeName` may be a breaking change for users of Custom Event Listeners, and the author offered to clarify it by adding an illustrative example to the Readme section if required.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope":...
null
tj__commander.js__853
tj/commander.js
853
defect
af1799672d07cc89a8554ff39dd98f15e9c6ea0e
05ae48bb0a53cdc02ab880b29a5b163865322b53
Standardize help output
Cleans up the help output by: - removing the newline before and after - un-indenting commands and options Fixes #852 and relates to #832.
diff --git a/Readme.md b/Readme.md index 5897d371a..8484c47a8 100644 --- a/Readme.md +++ b/Readme.md @@ -45,7 +45,7 @@ console.log(' - %s cheese', program.cheese); Short flags may be passed as a single arg, for example `-abc` is equivalent to `-a -b -c`. Multi-word options such as "--template-engine" are camel-case...
2
2
1
[{"id": "G0", "claim": "The `\\n` should also be removed around the EACCES error message in executeSubCommand, as was done for the ENOENT message.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Commander.js adds a blank line after category headers (...
null
tj__commander.js__987
tj/commander.js
987
defect
58c2ad8281835f50efc4757bd6aa1dc3d3b6be9c
5a27ec4e58c38c7ef9479bad246e3d771129e404
Allow boolean default for flag option
(Have not added anything to README yet, but code and tests as intended.) This allows supplying default value for boolean flags, in particular for a default value when both `--foo` and `--no-foo` options are defined, such as a default value from environment. Only possible after #795. Resolves #928. ``` const...
diff --git a/index.js b/index.js index 73570914c..751b53648 100644 --- a/index.js +++ b/index.js @@ -402,8 +402,8 @@ Command.prototype.option = function(flags, description, fn, defaultValue) { } } - // preassign default value only for --no-*, [optional], or <required> - if (option.negate || option.optional ...
4
3
0
[{"id": "G0", "claim": "Please add tests involving negated options — e.g. the expected behavior when a boolean default is given for a negated option like --no-sauce, and for redundant cases such as a default for --no-onions without --onions or defaults on both --tomatoes and --no-tomatoes.", "category": "testing", "ver...
null
tj__consolidate.js__327
tj/consolidate.js
327
defect
20e3758af3690f523070bd914e4a2c21909b01b8
032cce178717365a453915daa917cfc5eeaafce1
Added Support for Twing
Twing is a template engine which supports 100% of the syntax defined by Twig. https://github.com/ericmorand/twing
diff --git a/lib/consolidate.js b/lib/consolidate.js index 5024519..7c243d6 100644 --- a/lib/consolidate.js +++ b/lib/consolidate.js @@ -17,6 +17,7 @@ var fs = require('fs'); var path = require('path'); var Promise = require('bluebird'); +var semver = require('semver'); var join = path.join; var resolve = path.r...
2
2
1
[{"id": "G0", "claim": "semver should not be used in or shipped as a production dependency of consolidate: move it to devDependencies and use it only in the tests, removing the require('semver') line and the node-version if block from lib/consolidate.js.", "category": "design", "verdict": "supported", "priority": "P1",...
null
tkaczmarzyk__specification-arg-resolver__146
tkaczmarzyk/specification-arg-resolver
146
defect
7def051e46ac2c4807770c0032281aced173ef4b
bc6d1d55a0f09ef1f2b64c4dd17957f7bac5d1c6
Refactored json support approach (removed ParamType)
- removed `ParamType`, introduced `jsonPath` instead (for json support)
diff --git a/README.md b/README.md index 78be8744..b34a8090 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ For multi value filters like: `In.class`, `NotIn.class` there are two ways of pa GET http://myhost/customers?gender=MALE&gender=FEMALE -The second way is the use `paramSeparator` attribute of ...
4
4
2
[{"id": "G0", "claim": "The README path-variable examples should pass the path-variable values via `pathVars` instead of `params` (e.g. `@Spec(path = \"lastName\", pathVars = \"customerLastName\", ...)`).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai...
null
tkaczmarzyk__specification-arg-resolver__75
tkaczmarzyk/specification-arg-resolver
75
defect
87802ffea6406fddcb6c25a3c65c62c3bdbc2763
5fadc2e4694e3e11c94242b965fe40f99b5fd7d4
[SAR-65] Added support for path variables with regexp
Related to issues: #65 It's possible that these changes will also fix #71
diff --git a/CHANGELOG.md b/CHANGELOG.md index 44352767..d2bf2ee0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +v2.3.0 +====== + +* Added support for path variables with regexp. All patterns supported by [spring AntPathMatcher](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/spring...
2
2
1
[{"id": "G0", "claim": "The pull request should explicitly test the scenario where the URL does not match the path pattern, e.g. /customers/{id:[0-9]} vs /customers/notANumber.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The indentation/formatting of...
null
tkaczmarzyk__specification-arg-resolver__91
tkaczmarzyk/specification-arg-resolver
91
defect
1618c306559bd9eaad27f8c2cee5a7ee2fadbd11
9a49e7ff57c21cc86ab2a942f95e9e21438efd7b
Issue with multiple aliased @JoinFetch annotations
When the user tries to chain multiple @JoinFetch annotations using the same alias, the generated Specification is invalid. As an example, for the following chain: ``` @JoinFetch(paths = "orders", alias = "o") @JoinFetch(paths = "o.tags") @JoinFetch(paths = "o.note") ``` The last @JoinFetch is trying to fetch ...
diff --git a/src/main/java/net/kaczmarzyk/spring/data/jpa/domain/JoinFetch.java b/src/main/java/net/kaczmarzyk/spring/data/jpa/domain/JoinFetch.java index 16ad4bef..7a4e9b31 100644 --- a/src/main/java/net/kaczmarzyk/spring/data/jpa/domain/JoinFetch.java +++ b/src/main/java/net/kaczmarzyk/spring/data/jpa/domain/JoinFetc...
1
1
0
[{"id": "G0", "claim": "The line `context.putEvaluatedJoinFetch(alias, evaluatedJoinFetchForGivenAlias);` added in JoinFetch.toPredicate is redundant.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tkellogg__dura__65
tkellogg/dura
65
defect
8953d9eeb878f28625762f2b60ee4ffd3ab11b16
52a6f8fa2e311f9832f205053681e66567e36813
Refactor: Extract GitRepoIter
`poller::process_directory` became recursive in #49. This function did 2 things: 1. Recursively list out all Git repos 2. Process them This change separates these two responsibilities. This gives us a lot of flexibility, like the ability to see query the watched directories. We used to just look directly at the ...
diff --git a/src/config.rs b/src/config.rs index b2fc977..d034869 100644 --- a/src/config.rs +++ b/src/config.rs @@ -5,9 +5,11 @@ use std::{env, io}; use serde::{Deserialize, Serialize}; +use crate::git_repo_iter::GitRepoIter; + type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>; -#[derive(Debu...
1
1
0
[{"id": "G0", "claim": "The clones in GitRepoIter::get_next, especially the watch_config clone, should go — e.g. by sharing the effectively-constant config via Rc instead of adding several identical copies to the stack — because of the memory usage worry for particularly deep directory trees.", "category": "performance...
null
tkellogg__dura__67
tkellogg/dura
67
defect
99d60a32b5662a9f3b938abf73ec90da3abe66ed
412649de3a69f8a0b37e9b5f9a9bec6b4c0aec3e
feat: Use dura config and git config for commit signature
Closes #21 Previously, dura uses the latest commit to determine commit author and email, this PR aims to change the way dura determines this. ### changelog: This PR allow specifying commit author and email in config file by adding 2 field in config: - `commit_author`: preferred author for dura commits - `...
diff --git a/src/config.rs b/src/config.rs index cd2c9c7..69c9de0 100644 --- a/src/config.rs +++ b/src/config.rs @@ -36,6 +36,13 @@ impl Default for WatchConfig { #[derive(Debug, Serialize, Deserialize, PartialEq)] pub struct Config { + // When commit_exclude_git_config is false, + // never use any git config...
5
1
1
[{"id": "G0", "claim": "The doc comment on `commit_exclude_git_config` says it defaults to `false` (and phrases the condition backwards), but `Config::empty()` creates it as `true`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Adding the `commit_e...
null
tkestack__gpu-manager__130
tkestack/gpu-manager
130
defect
d3cc671a3d9bf716621fe17a4e94f74f24b0a9fe
60c217861e94210856688ed25a6c5ed0b83e3329
fix: virutal manager can't probe correct vm controller path
fix #109 Signed-off-by: thomassong <thomassong2012@gmail.com>
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f06cad04..5f4043974 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,14 @@ ## [Unreleased] ### Feat +- add timeout option waiting for all resource server ready - upgrade vcuda ### Fix +- virutal manager can't probe correct vm controller path +- wrong size o...
1
1
1
[{"id": "G0", "claim": "In registerVDeviceWithContainerId, vm.responseManager.GetResp is called with the container id, but the responseManager is keyed by container name, so the reviewer thinks the response will not be found when the container id is passed in.", "category": "correctness", "verdict": "supported", "prior...
null
tkjaer__etr__99
tkjaer/etr
99
defect
8fe22c46f61140e3445ba1cfe2a8acf312b23338
cf9c4755e7d686f31ee8e4c22126626867f0ae33
Add ASN lookup capability
This PR adds support for ASN lookup. /resolves https://github.com/tkjaer/etr/issues/98
diff --git a/README.md b/README.md index e3507f6..53614d8 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ etr -p 80 -c 1000 -d 5s target.example.com - `-j <file>`: JSON output to file (keeps TUI) - `-J`: JSON output to stdout (disables TUI) - `-B`: Print a tcpdump-compatible BPF filter for the current optio...
2
2
2
[{"id": "G0", "claim": "PrintShortUsage() uses the built-in println, which writes to stdout, so on the error path in cmd/etr/main.go the usage lines should go to stderr (or accept an io.Writer) to avoid mixing error/help output with normal stdout for scripting.", "category": "correctness", "verdict": "supported", "prio...
null
tlaplus__tlaplus__1014
tlaplus/tlaplus
1,014
defect
2039099c27a5310618d70a2ed9f58975dae77607
947537a39d29696b014fe79316cb496b940858da
Refinement checking for INSTANCEs with arguments.
Addresses Github issue #687 https://github.com/tlaplus/tlaplus/issues/687 [Feature][TLC][Changelog]
diff --git a/tlatools/org.lamport.tlatools/src/tlc2/tool/impl/OpDefEvaluator.java b/tlatools/org.lamport.tlatools/src/tlc2/tool/impl/OpDefEvaluator.java index 38d56f884f..2aaa9acab1 100644 --- a/tlatools/org.lamport.tlatools/src/tlc2/tool/impl/OpDefEvaluator.java +++ b/tlatools/org.lamport.tlatools/src/tlc2/tool/impl/O...
1
1
1
[{"id": "G0", "claim": "Swallowing the exception risks that the `\\A s \\in ...` quantification is only partially unrolled, checking only parts of the property, if the while loop throws an exception.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tlaplus__tlaplus__1101
tlaplus/tlaplus
1,101
defect
570645303fdf02d285b771e5103c644c6802a921
8d3e3ea9fcb2fb9970c5deeb6903f0442a797936
SANY: Remove most static error logging usage
Reduce usage of static SemanticNode.errors field Some additional places of use remain but this is a good incremental effort. Reduced usage count from 32 to 7. This was all fairly mechanical (adding `Errors` parameters to methods) except for two places: 1. When constructing the SANY `Explorer` instance which is use...
diff --git a/tlatools/org.lamport.tlatools/src/tla2sany/drivers/SANY.java b/tlatools/org.lamport.tlatools/src/tla2sany/drivers/SANY.java index fdaa24b84f..15f2dd5e19 100644 --- a/tlatools/org.lamport.tlatools/src/tla2sany/drivers/SANY.java +++ b/tlatools/org.lamport.tlatools/src/tla2sany/drivers/SANY.java @@ -493,7 +49...
3
3
0
[{"id": "G0", "claim": "The new `errors` field added to Explorer can be declared `final`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `@param errors` Javadoc tag added on ModuleNode.isConstant is an unfinished `TODO` placeholder and shoul...
null
tlaplus__tlaplus__1102
tlaplus/tlaplus
1,102
defect
68b6f50f7e36b19dae03007620df928cb4d1b419
0f4c939cbf519ee28ebf5978b574c5b955d613fd
Make deserializing previously unseen strings work
Fixes the problem demonstrated in https://github.com/tlaplus/CommunityModules/pull/107. Currently, if TLC tries to load a string value from disk that its current instance has not already "seen", it will crash. This is because loading strings from disk does not update the string intern table. The current code only r...
diff --git a/tlatools/org.lamport.tlatools/src/util/UniqueString.java b/tlatools/org.lamport.tlatools/src/util/UniqueString.java index d429cba989..0c4d07964a 100644 --- a/tlatools/org.lamport.tlatools/src/util/UniqueString.java +++ b/tlatools/org.lamport.tlatools/src/util/UniqueString.java @@ -339,7 +339,7 @@ public st...
3
3
1
[{"id": "G0", "claim": "A note should be left in the code explaining why the Map parameter gets ignored when reading a UniqueString.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A TLA+-level test should be added where the specification defines a...
null
tlaplus__tlaplus__1116
tlaplus/tlaplus
1,116
defect
b8135df12511d85ceae26f946d8a27fdad4e8fe1
ddbed435f5d81ba3e597966cd5ca9fcc94b8d7c7
Refactor `SimpleFilenameToStream` for correctness and clarity
Fixes #1114. This change has multiple purposes. The primary purpose is to allow `SimpleFilenameToStream` to resolve the standard library files in other environments, such as when the tools are compiled as a Graal native image or as a jlink'd executable. Previously `SimpleFilenameToStream` relied on resolving the...
diff --git a/tlatools/org.lamport.tlatools/src/model/InJarFilenameToStream.java b/tlatools/org.lamport.tlatools/src/model/InJarFilenameToStream.java index bc3936a0ec..9d47fff78a 100644 --- a/tlatools/org.lamport.tlatools/src/model/InJarFilenameToStream.java +++ b/tlatools/org.lamport.tlatools/src/model/InJarFilenameToS...
19
12
3
[{"id": "G0", "claim": "Rename the new `Resolver` interface to something like `ResourceResolver`, since a generic `Resolver` is reserved for a future SANY API.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new resolver classes should go in ...
null
tlaplus__tlaplus__1125
tlaplus/tlaplus
1,125
defect
f9d55d6a1df072a26ade4d676fdf3e33974bf9e4
21f898ff5d919734b2705540d3433b760116f360
Prototype new programmatic API for SANY
This is a PR to solicit feedback on the design of a new API for SANY. This API is envisioned to eventually live in the root `src/tla2sany` directory, or in a `src/tla2sany/api` directory. Currently it is only exercised by test code. To start, read the comments in the `ParserInterface.java` file. Designing these meth...
diff --git a/tlatools/org.lamport.tlatools/test/tla2sany/api/DefaultResolver.java b/tlatools/org.lamport.tlatools/test/tla2sany/api/DefaultResolver.java new file mode 100644 index 0000000000..a3e3f7ccea --- /dev/null +++ b/tlatools/org.lamport.tlatools/test/tla2sany/api/DefaultResolver.java @@ -0,0 +1,121 @@ +/********...
5
4
1
[{"id": "G0", "claim": "The new interface should be named `Frontend` rather than `ParserInterface` (and the reviewer questioned whether a separate interface and single implementation are needed at all).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
tlaplus__tlaplus__1189
tlaplus/tlaplus
1,189
defect
e61495931507f5ad5ec232be9e65fe8f2a1bf379
eca1993e4912397796c92021f07ba895d3398b66
Raise warning when symbol appears in Records.
Do NOT raise a warning in cases like the following, which imply that the user understands the semantics correctly (context: https://github.com/tlaplus/tlaplus/issues/1184): ```tla bar == 23 R == [bar |-> bar] ``` This scenario frequently comes up in a TLC ALIAS (https://github.com/tlaplus/tlaplus/issues/485)....
diff --git a/tlatools/org.lamport.tlatools/src/tla2sany/semantic/Generator.java b/tlatools/org.lamport.tlatools/src/tla2sany/semantic/Generator.java index ef38ad1073..6655707e94 100644 --- a/tlatools/org.lamport.tlatools/src/tla2sany/semantic/Generator.java +++ b/tlatools/org.lamport.tlatools/src/tla2sany/semantic/Gene...
3
2
0
[{"id": "G0", "claim": "Comparing syntaxTreeNode[2].toString() against syntaxTreeNode[0].getImage() may not reflect the actual token image; use an image accessor on both sides (the suggestion was getImage()) for an accurate string comparison of field name and value.", "category": "correctness", "verdict": "supported", ...
null
tlaplus__tlaplus__1194
tlaplus/tlaplus
1,194
defect
db191ccb33ccfc099b8ec355498a1e850ad9642c
6a1a421b2a8b7c99254d9666728aec9bdabc2bd9
SANY error logging: aborts are now errors with exceptions
These changes support #1186 Remove unnecessary delineation to support adding more levels Before these changes, there were separate methods in the Errors class for adding "aborts" vs. adding "errors". The only actual difference between these was that adding an abort also threw an exception if the caller set a bool...
diff --git a/tlatools/org.lamport.tlatools/src/tla2sany/drivers/SANY.java b/tlatools/org.lamport.tlatools/src/tla2sany/drivers/SANY.java index 9fb4408ccc..68808fff3c 100644 --- a/tlatools/org.lamport.tlatools/src/tla2sany/drivers/SANY.java +++ b/tlatools/org.lamport.tlatools/src/tla2sany/drivers/SANY.java @@ -284,7 +28...
9
1
0
[{"id": "G0", "claim": "ErrorDetails should perhaps carry its message parameters as an interpolated payload (e.g. an Object[] combined with a format string) so that clients like ModuleParserLauncher can access the underlying values directly instead of parsing the human-readable error message, which remains a fragile kl...
null
tlaplus__tlaplus__1195
tlaplus/tlaplus
1,195
defect
db191ccb33ccfc099b8ec355498a1e850ad9642c
ac97f083f00da816a1dfa4d1dc62864b215631b7
Raise warning when liveness property trivially true.
Closes Github issue #1193 https://github.com/tlaplus/tlaplus/issues/1193 [Feature][TLC] ``` Warning: Implied-temporal checking is a tautology. The temporal formula Live at line 12, col 9 to line 12, col 50 of module Github1198 equals the fairness constraints of the behavior specification Spec at line 14, co...
diff --git a/tlatools/org.lamport.tlatools/src/tlc2/output/EC.java b/tlatools/org.lamport.tlatools/src/tlc2/output/EC.java index 7f42b56379..3a905457b1 100644 --- a/tlatools/org.lamport.tlatools/src/tlc2/output/EC.java +++ b/tlatools/org.lamport.tlatools/src/tlc2/output/EC.java @@ -259,7 +259,7 @@ public interface EC ...
3
3
1
[{"id": "G0", "claim": "The detection added in S1 does not handle a liveness property made of two identical temporal conjuncts (Live == <>[](ENABLED <<Next>>_b) => []<><<Next>>_b repeated), so no warning is raised for that specification.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i...
null
tlaplus__tlaplus__1202
tlaplus/tlaplus
1,202
defect
a56721e328208035c64c93962726e52e4b8bd156
708249ebf327922942e65dc489c6e9183ded0357
SANY: created unified errors.addMessage() error reporting method
Also unified error reporting to single method In commit be86598, error messages were tagged with a standardized error code. This code also contains an associated error level. Thus, in these changes the error reporting methods addError() and addWarning() are merged into a single method addMessage(), since the error l...
diff --git a/tlatools/org.lamport.tlatools/src/tla2sany/modanalyzer/ParseUnit.java b/tlatools/org.lamport.tlatools/src/tla2sany/modanalyzer/ParseUnit.java index eb66521e7f..833c44d754 100644 --- a/tlatools/org.lamport.tlatools/src/tla2sany/modanalyzer/ParseUnit.java +++ b/tlatools/org.lamport.tlatools/src/tla2sany/moda...
4
3
0
[{"id": "G0", "claim": "The added errors-array line is unwieldy and the loop below it should be refactored to use ErrorDetails instead of parsing string error messages to extract locations.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Retain t...
null
tlaplus__tlaplus__1204
tlaplus/tlaplus
1,204
defect
a56721e328208035c64c93962726e52e4b8bd156
db24535276e90ece2572d6690344d3cc8967809b
Do not ignore silently but raise warning if an invariant is a *constant-level* formula.
``` Warning: The invariant ConstLevelInvariant is a constant-level formula (i.e., it contains no variables, primes, or temporal operators) and evaluates to TRUE. To assert constant-level formulas in your spec, use ASSUME ConstInv, or to give the assumption a name such as YourAssumption, use ASSUME YourAssumption == ...
diff --git a/tlatools/org.lamport.tlatools/src/tlc2/output/EC.java b/tlatools/org.lamport.tlatools/src/tlc2/output/EC.java index 3a905457b1..3a874b73ff 100644 --- a/tlatools/org.lamport.tlatools/src/tlc2/output/EC.java +++ b/tlatools/org.lamport.tlatools/src/tlc2/output/EC.java @@ -76,6 +76,7 @@ public interface EC ...
2
1
1
[{"id": "G0", "claim": "The new test should add an assertion verifying that the TLC_INVARIANT_CONSTANT_LEVEL warning is recorded, e.g. assertTrue(recorder.recorded(EC.TLC_INVARIANT_CONSTANT_LEVEL)), to cover the new behavior.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i...
null
tlaplus__tlaplus__1213
tlaplus/tlaplus
1,213
defect
f8eabae1f5365b8f20a59d0d128fea7abed3d23a
98e31b72c578a350660df26885999b0752627d0c
Raise warning when definition or declaration appears as Record field name.
Alert users when record field names clash with existing definitions or declarations in TLA+. The primary purpose is to help users understand that field names in records are strings and won't automatically reference similarly named definitions. This commit implements suppression of warnings when the expression on the...
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index aa90da677f..f4ecd545e7 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -161,6 +161,7 @@ jobs: - name: Parse tlaplus/examples modules run: | python "$SCRIPT_DIR/parse_modules.py" ...
8
5
1
[{"id": "G0", "claim": "The TODO comment asking whether the helper should be moved into SemanticNode should be resolved or removed rather than left in the code.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The multi-line explanation above the ...
null
tlaplus__tlaplus__1228
tlaplus/tlaplus
1,228
defect
886775794dff9d94c1e8a906c39b3022ea036d62
3dd84a8e6541daf103cc2215b07ab98a74bead72
SANY: Prototype incremental parsing functionality in unit tests
In furtherance of #1096. Also relevant to #1229 and #1099. This started out with tests for SANY's tokenizer and belchDEF method. It then extended to getting working prototypes of incremental parsing working. To facilitate this there were some minor visibility & functionality changes to the SANY's internal API: - Ch...
diff --git a/tlatools/org.lamport.tlatools/javacc/tla+.jj b/tlatools/org.lamport.tlatools/javacc/tla+.jj index 165483940c..9148e5d588 100644 --- a/tlatools/org.lamport.tlatools/javacc/tla+.jj +++ b/tlatools/org.lamport.tlatools/javacc/tla+.jj @@ -91,8 +91,6 @@ PARSER_BEGIN(TLAplusParser) package tla2sany.parser; im...
5
3
1
[{"id": "G0", "claim": "The new TLAplusParser constructors should default to StandardCharsets.UTF_8 as the encoding so callers need not pass it explicitly; the reply withdraws the other half of the suggestion, forcing callers to pass a SanyOutput of their own.", "category": "design", "verdict": "uncertain", "priority":...
null
tlaplus__tlaplus__1231
tlaplus/tlaplus
1,231
defect
29f604f725628d068aa1d400702d7295c197efda
6bc355cff8d2fddab644b6c5024c725ebbe8a0d9
SANY: Add type parameters to Vector usage
Many usages of the internal SANY Vector class do not use a generic type parameter. This means there is a lot of unnecessary casting and confusion about what any given Vector instance contains. These changes add type parameters to all Vector usages, greatly improving code understandability. Unnecessary casts are also re...
diff --git a/tlatools/org.lamport.tlatools/javacc/tla+.jj b/tlatools/org.lamport.tlatools/javacc/tla+.jj index 68ada562d8..a6185dd30c 100644 --- a/tlatools/org.lamport.tlatools/javacc/tla+.jj +++ b/tlatools/org.lamport.tlatools/javacc/tla+.jj @@ -119,7 +119,7 @@ public class TLAplusParser implements tla2sany.st.SyntaxT...
5
5
1
[{"id": "G0", "claim": "In Generator.processOperator the element added to defs may not be the correct object: the OpDefNode that belongs in the definitions vector should be added, so cast symbolNode to OpDefNode to be safe.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
tlaplus__tlaplus__1232
tlaplus/tlaplus
1,232
defect
29f604f725628d068aa1d400702d7295c197efda
0b6d0dc4c92b0091b679d40b1a41f5d6288850ae
SANY: Attach parameters to standardized error codes
Improve ability for automated error handling by attaching data These changes further destructure the ErrorDetails reported by SANY, this time splitting the error message into two parts: a human-readable format string, and a list of parameters that will be interpolated into the format string. The parameters are also ...
diff --git a/tlatools/org.lamport.tlatools/src/tla2sany/semantic/ErrorCode.java b/tlatools/org.lamport.tlatools/src/tla2sany/semantic/ErrorCode.java index 243d963402..8d2ca5898b 100644 --- a/tlatools/org.lamport.tlatools/src/tla2sany/semantic/ErrorCode.java +++ b/tlatools/org.lamport.tlatools/src/tla2sany/semantic/Erro...
2
2
0
[{"id": "G0", "claim": "Provide an ErrorCode constructor without the parameterCount argument that sets it to 0.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the magic -1 flag for a variable number of parameters with a named constant (e.g. priva...
null
tlaplus__tlaplus__1263
tlaplus/tlaplus
1,263
defect
30ec58605dc8ce4d0aafe819c35b076163b335c4
dadc5109f8dc86fdede7a602e05e5142022d44ba
Add documentation on ASSUME and INVARIANT usage in TLA+.
Created a new document outlining the differences between the `ASSUME` and `INVARIANT` constructs in TLA+. This includes explanations of constant-level and state-level formulas, along with examples of their usage. Additionally, reference this new documentation at explain.tlapl.us for better user guidance on constant-lev...
diff --git a/docs/assumptions-and-invariants.md b/docs/assumptions-and-invariants.md new file mode 100644 index 0000000000..0eb1e5032e --- /dev/null +++ b/docs/assumptions-and-invariants.md @@ -0,0 +1,6 @@ +# When to use ASSUME/ASSUMPTION and when to use INVARIANT/INVARIANTS with TLC? + +The `ASSUME` (or `ASSUMPTION`) ...
6
3
2
[{"id": "G0", "claim": "The documentation's recommendation `PROPERTY []I` uses syntax TLC does not support; it should be restated as defining `P == []I` in the module and using `PROPERTY P` in the config file.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
tlaplus__tlaplus__1265
tlaplus/tlaplus
1,265
defect
30ec58605dc8ce4d0aafe819c35b076163b335c4
bceb50e4aa5c481dfc75be20c6f40ce7482d8ca8
Improve error messages when action-level formulas are used as PROPERTY.
TLC has always prevented action-level formulas from being used as temporal properties in the configuration file. This commit significantly improves the error messages to better explain why such usage is incorrect and how to fix it. Introduced two new error codes (TLC_CONFIG_PROPERTY_ACTION_LEVEL and TLC_CONFIG_PROPE...
diff --git a/tlatools/org.lamport.tlatools/src/tlc2/output/EC.java b/tlatools/org.lamport.tlatools/src/tlc2/output/EC.java index f0a54434f0..6266fc0f0a 100644 --- a/tlatools/org.lamport.tlatools/src/tlc2/output/EC.java +++ b/tlatools/org.lamport.tlatools/src/tlc2/output/EC.java @@ -321,6 +321,8 @@ public interface EC ...
7
6
0
[{"id": "G0", "claim": "The new MP.java message concatenates with inconsistent spacing (+\"□[%1%]_v.\") and should use \"+ \\\"\" like the rest of the message and codebase.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment in ActionLeve...
null
tlaplus__tlaplus__1274
tlaplus/tlaplus
1,274
defect
ce6acb1ff8f0cf5acaf9cb4946c4e87db5d31031
b6e62ccca09668408a0d890d18b0945e7b083adb
Debug Expression that serialize the current trace in different formats
The changes to `SpecProcessor.java` and `ParameterizedSpecObj.java` carry the highest risk of introducing regressions. However, this risk is limited, as the changes do not alter runtime semantics unless the debugger is active or the `-dumptrace` command is used. TODO: * [x] Process the resolved modules to load cons...
diff --git a/.gitignore b/.gitignore index 17ca3fd0ea..b530073be9 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,8 @@ junit[0-9]*.properties junitvmwatcher[0-9]*.properties test.jfr *.jfr +Debug05SimTest.json +Debug05SimTest.bin tlatools/org.lamport.tlatools/test-model/test.out .tlacache/ .Rproj.user diff ...
10
4
2
[{"id": "G0", "claim": "In resolveDependencies the semantic/level-check errors collected in the log are not checked, so an invalid module may still be registered in the external module table; check the log outcome after generation and level checking as done in IncrementalSemanticParseTests.java.", "category": "correctn...
null
tlaplus__tlaplus__1275
tlaplus/tlaplus
1,275
defect
0342d1c0bc80b803b53f1af61982e90d5eace2d0
bc7a19b68c74c6095785d76dc23ff76a8521a3f3
Halt (break) on Init and Next when Next is FALSE or the breakpoint condition for Init evaluates to TRUE
[![Video demo](https://img.youtube.com/vi/aTW87nTmAmQ/0.jpg)](https://www.youtube.com/watch?v=aTW87nTmAmQ)
diff --git a/tlatools/org.lamport.tlatools/src/tlc2/debug/TLCInitStatesStackFrame.java b/tlatools/org.lamport.tlatools/src/tlc2/debug/TLCInitStatesStackFrame.java index 4022299230..05c33a4365 100644 --- a/tlatools/org.lamport.tlatools/src/tlc2/debug/TLCInitStatesStackFrame.java +++ b/tlatools/org.lamport.tlatools/src/t...
2
2
2
[{"id": "G0", "claim": "Mutating the SetOfStates returned by fun.getStates() in TLCNextStatesStackFrame.matchesExpression to insert TLCState.Empty can cause unintended side effects on a potentially shared data structure; create a temporary Set or Stream including Empty instead of modifying the original.", "category": "...
null
tlaplus__tlaplus__1282
tlaplus/tlaplus
1,282
defect
9fef149f29a75e09ff8c160d42780db5663a16ea
7bd5e1bc79d07ac1f1a37f5d113f8a63a93acb84
Report SANY exceptions for invalid breakpoint, watch, or debug expressions.
Report SANY exceptions for invalid breakpoint, watch, or debug expressions. This change improves error reporting in the debugger by propagating SANY parsing and semantic analysis exceptions directly to the debugger frontend, rather than silently logging them to ToolIO.err. Previously, when users entered invalid T...
diff --git a/tlatools/org.lamport.tlatools/src/tla2sany/modanalyzer/SpecObj.java b/tlatools/org.lamport.tlatools/src/tla2sany/modanalyzer/SpecObj.java index 23a5c6ee97..51714336ab 100644 --- a/tlatools/org.lamport.tlatools/src/tla2sany/modanalyzer/SpecObj.java +++ b/tlatools/org.lamport.tlatools/src/tla2sany/modanalyze...
3
2
0
[{"id": "G0", "claim": "The test's module name \"DoesNotExit\" appears to be a typo for \"DoesNotExist\" (a module that does not exist), which affects the clarity of the test case.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change adds t...
null
tlaplus__tlaplus__1285
tlaplus/tlaplus
1,285
defect
f0fd12a9863d873d880d6b7f1f0e8b718e0e4cc2
c09d08f3383817331993875d9a441e6312445c56
Support replaying a trace with `-loadTrace` that was previously created with `-dumptrace`.
Support -loadTrace command-line parameter to replay previously dumped traces. This change introduces a new `-loadTrace <format> <filename>` command-line parameter that enables TLC to replay execution traces that were previously saved using the `-dumpTrace <format> <filename>`command. The implementation adds trace...
diff --git a/tlatools/org.lamport.tlatools/src/tla2sany/StandardModules/_JsonTrace.tla b/tlatools/org.lamport.tlatools/src/tla2sany/StandardModules/_JsonTrace.tla index d279c93e2f..0afa889407 100644 --- a/tlatools/org.lamport.tlatools/src/tla2sany/StandardModules/_JsonTrace.tla +++ b/tlatools/org.lamport.tlatools/src/t...
8
6
3
[{"id": "G0", "claim": "-loadTrace does not report an error when the user omits the format/file arguments: the branch falls through without printing a message or returning false, so the option is silently ignored; add an else branch mirroring -dumpTrace.", "category": "correctness", "verdict": "supported", "priority": ...
null
tlaplus__tlaplus__1287
tlaplus/tlaplus
1,287
defect
bb62e531cdaa17ae47224f5fae1f598a2e68673d
b1256d5247d725749d297fa9d1fa88f5db40e45a
TLC: Add x' \subseteq S support
As requested by @lorin. Closes #336. Implements support for expressions of the form `x \subseteq S` in the initial state and `x' \subseteq S` in the next-state relation (and ENABLED expressions). The implementation copies the OPCODE_in interpreter code for `x' \in S` expressions but evaluates `S` as `SUBSET S` (same...
diff --git a/tlatools/org.lamport.tlatools/src/tlc2/tool/impl/Tool.java b/tlatools/org.lamport.tlatools/src/tlc2/tool/impl/Tool.java index 76f82f3134..c265b150d9 100644 --- a/tlatools/org.lamport.tlatools/src/tlc2/tool/impl/Tool.java +++ b/tlatools/org.lamport.tlatools/src/tlc2/tool/impl/Tool.java @@ -780,6 +780,38 @@ ...
3
3
1
[{"id": "G0", "claim": "Call Tool#setSource on the SubsetValue values constructed in the new OPCODE_subseteq branches of getInitStates, getNextStates, and enabledApplImpl.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment indicating t...
null
tlaplus__tlaplus__1289
tlaplus/tlaplus
1,289
defect
b32f5d3669bdbd91d68c1325b5b9f1a9dafc79c1
dacdad07cc06bd8ca47986b09029fa9e88a8c2d4
Support loading traces with subset of variables in `_TLCTrace` and `_JsonTrace`.
Enhance `_TLCTrace` and `_JsonTrace` to serialize which variables are included in the trace, allowing users to provide trace logs that define only a subset of variables rather than requiring all variables. This improves flexibility when replaying traces via `-loadTrace` by comparing only the variables present in the lo...
diff --git a/tlatools/org.lamport.tlatools/src/tla2sany/StandardModules/_JsonTrace.tla b/tlatools/org.lamport.tlatools/src/tla2sany/StandardModules/_JsonTrace.tla index 61f50543b1..e6e36bff16 100644 --- a/tlatools/org.lamport.tlatools/src/tla2sany/StandardModules/_JsonTrace.tla +++ b/tlatools/org.lamport.tlatools/src/t...
2
1
0
[{"id": "G0", "claim": "The substring logic that strips the \"/\\\" or \"∧\" prefix in parseStateString works only by accident (via an indexOf ternary) and is confusing and fragile, and should be replaced with explicit startsWith branches that remove 2 characters for \"/\\\" and 1 for \"∧\".", "category": "maintainabil...
null
tlaplus__tlaplus__1304
tlaplus/tlaplus
1,304
defect
6fde5a9ea3967191118ce18b27878a9b4b24f77f
83b3a38a1b87c2c6507042960d9a3c9782afba0d
Bogus `Attempted to apply EXCEPT construct to ...` with `FcnLambdaValue` when checking liveness in simulation mode
https://github.com/tlaplus/tlaplus/issues/1302 Fundamentally, this PR fixes an issue where calling `FcnLambdaValue#toFcnRcd` not only mutates `FcnLambdaValue#fcnRcd` (which is intended), but also unintentionally mutates `FcnLambdaValue#excepts` as a side effect. The issue surfaced during liveness checking in simu...
diff --git a/tlatools/org.lamport.tlatools/src/tlc2/value/impl/FcnLambdaValue.java b/tlatools/org.lamport.tlatools/src/tlc2/value/impl/FcnLambdaValue.java index 72f90c35af..f9393ebfa8 100644 --- a/tlatools/org.lamport.tlatools/src/tlc2/value/impl/FcnLambdaValue.java +++ b/tlatools/org.lamport.tlatools/src/tlc2/value/im...
6
3
1
[{"id": "G0", "claim": "Copying and applying EXCEPTs while unconditionally resetting idx to 0 can lose a non-zero cursor on partially consumed EXCEPT paths and can misapply or ignore EXCEPT updates; copies should preserve ex.idx (e.g. via the ex.idx-preserving copy constructor).", "category": "correctness", "verdict": ...
null
tlaplus__tlaplus__1316
tlaplus/tlaplus
1,316
defect
631a9efab86b5f43695d337e59ec6ff268262c84
b53756caae52670fb6aa361985e3de5b70cc5039
Soundness & Completeness bugs caused by`FcnLambdaValue#toFcnRcd` conversion.
To determine whether issue https://github.com/tlaplus/tlaplus/issues/1302 should be classified with the highest severity: - [x] Reproduce the crash when model checking safety properties - [x] Find a formula (input) where TLC completes without crashing but returns an incorrect result - [x] Combine the previous two in...
diff --git a/tlatools/org.lamport.tlatools/src/tlc2/value/impl/FcnLambdaValue.java b/tlatools/org.lamport.tlatools/src/tlc2/value/impl/FcnLambdaValue.java index a8746f16e7..e42159098e 100644 --- a/tlatools/org.lamport.tlatools/src/tlc2/value/impl/FcnLambdaValue.java +++ b/tlatools/org.lamport.tlatools/src/tlc2/value/im...
2
1
1
[{"id": "G0", "claim": "Add a test that creates a FcnLambdaValue with an EXCEPT, calls toFcnRcd(), and then verifies that select() on the original function still reflects the EXCEPT and that a second toFcnRcd() is idempotent, to directly test the fix for the unintended mutation of the excepts field (issue #1302).", "ca...
null
tlaplus__tlaplus__1322
tlaplus/tlaplus
1,322
defect
932a781c97f35f8c5cb294f159cc89ab3396b60e
00a2cf1f24c5ecc61b01eafcbd1ac446796d71bc
simulate crash: java.lang.ClassCastException: TupleValue cannot be cast to class FcnRcdValue
https://github.com/tlaplus/tlaplus/issues/1191 https://github.com/tlaplus/tlaplus/issues/1302
diff --git a/tlatools/org.lamport.tlatools/test-model/Github1191.tla b/tlatools/org.lamport.tlatools/test-model/Github1191.tla new file mode 100644 index 0000000000..0ba79bea8b --- /dev/null +++ b/tlatools/org.lamport.tlatools/test-model/Github1191.tla @@ -0,0 +1,40 @@ +---- MODULE Github1191 ---- +EXTENDS Sequences + ...
1
1
0
[{"id": "G0", "claim": "The comment on line 3 of Github1191a.tla says Cardinality(P) = 1 triggers while P is defined as {\"A\", \"B\"} (cardinality 2), which is misleading for a regression test model; either change P to a singleton set if that is the intended trigger condition, or update the comment to reflect the actu...
null
tlaplus__tlaplus__1323
tlaplus/tlaplus
1,323
defect
c688722edb9cadc4bdf1bd44b561812ec79d1201
f9bf7c90d11053859db5147cf3dfb642444427e8
Allow variables as `PROPERTY` in Config
`SpecProcessor#processConfigProps` previously rejected state-level variable references (for example, `Prop == x` where x is a VARIABLE) with the error: > "cannot be used as a property" One might argue that TLC should generally reject state-level formulas when they appear as properties. However, a state-level form...
diff --git a/tlatools/org.lamport.tlatools/src/tlc2/tool/impl/SpecProcessor.java b/tlatools/org.lamport.tlatools/src/tlc2/tool/impl/SpecProcessor.java index 0462b12b0c..a47654e92e 100644 --- a/tlatools/org.lamport.tlatools/src/tlc2/tool/impl/SpecProcessor.java +++ b/tlatools/org.lamport.tlatools/src/tlc2/tool/impl/Spec...
3
3
0
[{"id": "G0", "claim": "The copyright year 2025 in the new test file Github715cTest.java is inconsistent with Github715Test.java's 2026, and should be 2026 for consistency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The copyright year 2025 i...
null
tlaplus__tlaplus__1326
tlaplus/tlaplus
1,326
defect
9276a94869fcec0095fd29a894be792e2b3a3eb0
e2ffb7f4f1532bca9dd281afeab6c98f8cae18ba
Ignore flaky DumpLoadTraceTest AliasSub auto-worker tests; add AliasSub2 tests.
Multi-worker BFS is not strictly level-ordered: a fast worker can advance to level `k+1` while a slow worker is still at level `k`, so predecessor chains may follow non-shortest paths (e.g., 9 levels instead of the minimum 7 for DieHard). The trace constraint is level-indexed (`trace[TLCGet("level")])`, so when the ...
diff --git a/tlatools/org.lamport.tlatools/test-model/DieHardAlias.tla b/tlatools/org.lamport.tlatools/test-model/DieHardAlias.tla index 35c2f8cd6a..54f07c30a1 100644 --- a/tlatools/org.lamport.tlatools/test-model/DieHardAlias.tla +++ b/tlatools/org.lamport.tlatools/test-model/DieHardAlias.tla @@ -8,6 +8,13 @@ AliasSub...
4
3
0
[{"id": "G0", "claim": "Correct the typo in the added comment: 'arec onstraint-rejected' should read 'are constraint-rejected'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the extra trailing '//' comment delimiter at the end of the line ...
null
tlaplus__tlaplus__1327
tlaplus/tlaplus
1,327
defect
32c479bb0416e93d13e637b6c338b0139355eb68
89a3be75b1246acca37806be438bf9e43af2265b
XMLExporter: don't dump exception on parse failure
Standardized exit codes and modularized exporter functions Before these changes, the XMLExporter would dump an ugly exception to the console when parsing the spec failed. Since the exporter will be used from TLAPM as its main parser, this is a poor user experience. These changes result in XMLExporter only printing S...
diff --git a/tlatools/org.lamport.tlatools/src/tla2sany/xml/XMLExporter.java b/tlatools/org.lamport.tlatools/src/tla2sany/xml/XMLExporter.java index fee6e84f35..4f85b3b9cf 100644 --- a/tlatools/org.lamport.tlatools/src/tla2sany/xml/XMLExporter.java +++ b/tlatools/org.lamport.tlatools/src/tla2sany/xml/XMLExporter.java @...
11
5
3
[{"id": "G0", "claim": "TestDecimalXMLExport calls XMLExporter.run(...) without redirecting ToolIO.out, so the full XML is printed to the real test stdout during CI; the reviewer asks to restore output capture or avoid calling run there.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "intro...
null
tlaplus__tlaplus__1335
tlaplus/tlaplus
1,335
defect
572093f445a89d79ae2ceaa1c8650ea81b99a30b
8dd54c6dfeb514cf9adaaf67b9584c4dbcb2bed8
BufferedDataInputStream#readString silently returns a NUL-padded partial string
Fix double-counting bug in BufferedDataInputStream#readString that silently returned corrupt data instead of throwing EOFException on truncated streams. The inner loop updated off and n as it copied bytes. But three lines after the loop recomputed the same delta and applied it a second time. When readString(n) hit E...
diff --git a/tlatools/org.lamport.tlatools/src/util/BufferedDataInputStream.java b/tlatools/org.lamport.tlatools/src/util/BufferedDataInputStream.java index c9c53cac9d..97eaf494c8 100644 --- a/tlatools/org.lamport.tlatools/src/util/BufferedDataInputStream.java +++ b/tlatools/org.lamport.tlatools/src/util/BufferedDataIn...
4
3
0
[{"id": "G0", "claim": "The test Javadoc saying the test \"currently fails\" becomes stale and misleading once the PR fixes the bug, and its hard-coded line-number references into another file are fragile; please rephrase it as a regression test.", "category": "documentation", "verdict": "supported", "priority": "P2", ...
null
tlaplus__tlaplus__1344
tlaplus/tlaplus
1,344
defect
ec1a488044787956f635db48ec8f5458d0b2602a
a55c67a3e77adc2640424077ed5bc578af212b44
Add -suppressMessages and -warningsAsErrors CLI flags to SANY
Add -suppressMessages and -warningsAsErrors CLI flags to SANY (phase 1 of #1186). Support of the fine-grained warning control in SANY: -suppressMessages comma-separated integer codes; silences those messages entirely (not printed, not a failure). -warningsAsErrors comma-separated integer warning codes; wh...
diff --git a/tlatools/org.lamport.tlatools/src/tla2sany/drivers/SANY.java b/tlatools/org.lamport.tlatools/src/tla2sany/drivers/SANY.java index d5fb43f7c5..b8e21220b8 100644 --- a/tlatools/org.lamport.tlatools/src/tla2sany/drivers/SANY.java +++ b/tlatools/org.lamport.tlatools/src/tla2sany/drivers/SANY.java @@ -5,13 +5,1...
28
25
5
[{"id": "G0", "claim": "The -suppressMessages usage text says \"integer codes\" although SANY/TLC message codes are never negative, so the word \"integer\" is unnecessary and should be removed.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The ne...
null
tlaplus__tlaplus__1350
tlaplus/tlaplus
1,350
defect
0a0bffbcb6dbdd0cff23a050375969d4647268cd
ebe81e246212fc19cd5c383b53730ad0f9078ff1
Implement lazy evaluation for operator arguments in Liveness.java
Implement lazy evaluation for operator arguments in Liveness.java add regression tests for GitHub issue #1161. Updated Liveness.java to use lazy evaluation via getVal for operator arguments, improving handling of state-level expressions. Added two regression tests (Github1161aTest and Github1161bTest) to verify prop...
diff --git a/tlatools/org.lamport.tlatools/src/tlc2/tool/liveness/Liveness.java b/tlatools/org.lamport.tlatools/src/tlc2/tool/liveness/Liveness.java index 022c77ecf2..46a62fa0ed 100644 --- a/tlatools/org.lamport.tlatools/src/tlc2/tool/liveness/Liveness.java +++ b/tlatools/org.lamport.tlatools/src/tlc2/tool/liveness/Liv...
5
3
1
[{"id": "G0", "claim": "In Github1161.tla the PropertyD comment says the case passes the abstract module's constant via abs!Op2, but the definition uses unqualified Op2, so it should use abs!Op2 or the comment should be adjusted.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"},...
null
tlaplus__tlaplus__1351
tlaplus/tlaplus
1,351
defect
cf62ffd63fad8e89773854a39376117c2247e799
ae54fe9d1c8e46ff3ff1a7a32cdf51285b689d90
Defer raising TLC_CONFIG_NO_SPEC_BUT_PROPERTY or TLC_CONFIG_NO_FAIRNESS_BUT_LIVE_PROPERTY until Liveness has processed the PROPERTIES and TLC can decide if violations are safety violations.
Defer raising TLC_CONFIG_NO_SPEC_BUT_PROPERTY or TLC_CONFIG_NO_FAIRNESS_BUT_LIVE_PROPERTY until Liveness has processed the PROPERTIES and TLC can decide if violations are safety violations. As a result, TLC no longer raises the warning when PROPERTIES violations are safety violations, i.e., finite prefixes caught by...
diff --git a/tlatools/org.lamport.tlatools/src/tlc2/output/MP.java b/tlatools/org.lamport.tlatools/src/tlc2/output/MP.java index 746c5acce9..f0b6998019 100644 --- a/tlatools/org.lamport.tlatools/src/tlc2/output/MP.java +++ b/tlatools/org.lamport.tlatools/src/tlc2/output/MP.java @@ -931,19 +931,18 @@ else if (parameters...
2
2
2
[{"id": "G0", "claim": "The Javadoc of hasEmptyPEMAndBoxFreePromises says it returns true when all PEMs are empty, but the implementation uses hasEmptyPEM(), which returns true when any PEM is empty, which can suppress the stuttering warning when only some disjuncts are safety-like; either update the logic to check eve...
null
tlaplus__tlaplus__1374
tlaplus/tlaplus
1,374
defect
becec3564816c48dc07b9ab64319c8f7e606376d
87b1bb94c3b0b256168e2f3be8dc064d8a6e09aa
Add -suppressMessages and -messagesAsErrors CLI flags to TLC
Continuation of https://github.com/tlaplus/tlaplus/pull/1360
diff --git a/tlatools/org.lamport.tlatools/src/tla2sany/drivers/SanySettings.java b/tlatools/org.lamport.tlatools/src/tla2sany/drivers/SanySettings.java index dacb3f3466..7243f50f63 100644 --- a/tlatools/org.lamport.tlatools/src/tla2sany/drivers/SanySettings.java +++ b/tlatools/org.lamport.tlatools/src/tla2sany/drivers...
4
1
0
[{"id": "G0", "claim": "In EC.KnownCodes' static initializer, IllegalAccessException is handled by printing a stack trace and continuing, which could silently leave KnownCodes.ALL incomplete and write to stderr; the reviewer prefers failing fast (e.g. throw new ExceptionInInitializerError(exc)).", "category": "correctn...
null
tlaplus__tlaplus__800
tlaplus/tlaplus
800
defect
6623511ecaebcd274d58a47ce93ad40528575c96
360d4287cccdb9c871f8080aa281330332ecceef
LazyValue refactor
This is a small(ish) refactor to the way that `LazyValue` works. It fixes #798, although I want to clarify that I'm not certain this is the right approach. I'm more interested in discussing whether this is a good direction to push. If we decide this is worth doing, I believe it is also compatible with the changes in #7...
diff --git a/tlatools/org.lamport.tlatools/src/tlc2/tool/impl/Tool.java b/tlatools/org.lamport.tlatools/src/tlc2/tool/impl/Tool.java index bb01b53792..1006997770 100644 --- a/tlatools/org.lamport.tlatools/src/tlc2/tool/impl/Tool.java +++ b/tlatools/org.lamport.tlatools/src/tlc2/tool/impl/Tool.java @@ -1,6 +1,6 @@ // C...
4
2
0
[{"id": "G0", "claim": "The full explanatory comment being removed from the LazyValue evaluation branch in Tool.java should be kept for posterity rather than trimmed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The initial benchmark results for...
null
tlaplus__tlaplus__825
tlaplus/tlaplus
825
defect
04c46d87c1d58c87ed779c088461bbe5ec837a4c
5e684fe3943670e0e280cea63ae43726cbcf0df9
Support cyclic redefinitions if `-Dtlc2.tool.impl.SpecProcessor.allowCyclicRedefinitions=true` is given
A cyclic redefinition RF is a formula that is defined from another formula F while also re-defining F: ```tla ---- MODULE ModuleWithF ---- F == /\ A /\ B /\ C ==== ---- MODULE Derived ----- EXTENDS ModuleWithF RF == /\ F /\ D ==== Config fi...
diff --git a/tlatools/org.lamport.tlatools/src/tla2sany/explorer/ExplorerVisitor.java b/tlatools/org.lamport.tlatools/src/tla2sany/explorer/ExplorerVisitor.java index bc714a92f9..27f90d97d4 100644 --- a/tlatools/org.lamport.tlatools/src/tla2sany/explorer/ExplorerVisitor.java +++ b/tlatools/org.lamport.tlatools/src/tla2...
3
2
2
[{"id": "G0", "claim": "Using configuration files to create recursive operators may change behavior under this PR, and TLC's backward compatibility should be maintained.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "substituteFor's visitor modifies...
null
tlaplus__tlaplus__903
tlaplus/tlaplus
903
defect
d1504b6dc0ed35e3d4d343a3d380d0f4fe4980e9
ea59123f3c1928143554386105c95039435658eb
Fix unit test error reporting and support `-Dthreads=N` parameter
The threads parameter limits parallelization so users can reserve part of their workstation for other tasks as the tests are running, although if that task is running TLC then it might interfere with the tests.
diff --git a/.github/scripts/parse-unit-test-output.py b/.github/scripts/parse-unit-test-output.py index 244582ddf6..49112d4371 100644 --- a/.github/scripts/parse-unit-test-output.py +++ b/.github/scripts/parse-unit-test-output.py @@ -83,8 +83,16 @@ def parallel_match_to_report(match): ] reports = sorted(report...
1
1
0
[{"id": "G0", "claim": "The new local variable requestedThreads is unnecessary and the thread count could be passed directly.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
tldr-pages__tldr-node-client__147
tldr-pages/tldr-node-client
147
defect
3f3e03289228c58abb8a3c17e9056f4fd45496dd
2d3e51d57e0a66500c22195f0a349a972372bd8b
Pass lint & test
## Description When I lint & test code from master branch, it fails. ## Checklist Please review this checklist before submitting a pull request. - [x] Code compiles correctly - [x] All tests passing (`npm run test:all`)
diff --git a/lib/index.js b/lib/index.js index c3a46837..eee1f0d9 100644 --- a/lib/index.js +++ b/lib/index.js @@ -49,13 +49,13 @@ function commands(done) { function commandsFor(platform, done) { getShortIndex((idx) => { let commands = Object.keys(idx) - .filter((cmd) => { - ...
1
1
0
[{"id": "G0", "claim": "The eslint-disable comment above the timeout change in test/cache.spec.js still says 'timeout of 5 secs' and should be updated to match the new 30-second timeout.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tldr-pages__tldr-node-client__206
tldr-pages/tldr-node-client
206
defect
2963e05c62cdd89217892f80261838213b77f940
57191cefaa3c1818c23994761feac3c498f7895b
Asynchronously build shortIndex
## Description Short index generation was made sync due to fact that cache crawler was implemented that way (using sync `fs` methods). This PR re-implements both in async manner thus not blocking event loop. This is actually 1st step of my ongoing effort to unstuck _"Creating index..."_ spinner :construction_worker...
diff --git a/lib/index.js b/lib/index.js index befd8af1..19d34e5a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -102,38 +102,38 @@ function readShortPagesIndex() { return fs.readJson(shortIndexFile) .catch(() => { // File is not present; we need to create the index. - let idx = buildShortPagesInde...
3
2
0
[{"id": "G0", "claim": "The catch in buildShortPagesIndex silently ignores the error, and the reviewer asks whether it makes sense to log the error there rather than swallow it.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The new async walk() s...
null
tldr-pages__tldr-node-client__210
tldr-pages/tldr-node-client
210
defect
7f72b572fb77aae57e1a6a1236e8f1fb580979e6
79ca84d1a009cd89db2aff411acc3606ea3ef469
Use random temp folder for remote zip extraction
## Description This resolves #208 by using on-fly generated temporary folder path plus doing necessary cleanup after cache has been updated. ## Checklist Please review this checklist before submitting a pull request. - [x] Code compiles correctly - [x] Created tests, if possible - [x] All tests passing (`...
diff --git a/lib/cache.js b/lib/cache.js index edd608a2..617fe019 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -39,9 +39,16 @@ exports.update = () => { return remote.download(); }) .then((tempFolder) => { - return fs.copy(tempFolder, CACHE_FOLDER); + return fs.copy(tempFolder.path, CACHE_F...
4
3
2
[{"id": "G0", "claim": "It is not immediately apparent why createTempFolder returns an object like this, so a comment should be added explaining it.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The target should be passed in as an argument to cr...
null
tldr-pages__tldr-node-client__421
tldr-pages/tldr-node-client
421
defect
fa2ad6a1632890f59a49176a14a653bc95daead0
02252936458c91a655d32f91d76a6ea7bd58dd1c
feat (3.4.0): add platform option, Android and BSD platforms
## Description This PR updates the `--os` and `-o` option to `--platform` and `-p`. This change would make the official client comply with the last client specification and #420 is expected to add support for the recent client specification 2.0. (Supersedes #337, thanks to the original authors and reviews for initia...
diff --git a/README.md b/README.md index 935135ad..84327c56 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,9 @@ npm install -g tldr To see tldr pages: - `tldr <command>` show examples for this command -- `tldr <command> --os=<platform>` show command page for the given platform (`linux`, `osx`, `sunos`, `window...
7
6
2
[{"id": "G0", "claim": "The PR should not fully drop the `-o` and `--os` options; keep them as undocumented `.alias`es of `-p`/`--platform` for backward compatibility, and possibly show a deprecation warning.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "...
null
tldr-pages__tldr-node-client__442
tldr-pages/tldr-node-client
442
defect
aae17a9a4c6a3aecc6a28b3971c77019894ee6e0
f775586fe158a634dd279387cd159a0d9dfffbe0
feat: add completion command
## Description I've implemented the auto-completion feature suggested in roadmap issue #342. A new `completion.js` file was created to generate and install auto-completion scripts for both bash and zsh shells. I've also added a `completion` command to `bin/tldr`. Images showing the feature in action are attach...
diff --git a/README.md b/README.md index a06260ae..54a6241b 100644 --- a/README.md +++ b/README.md @@ -120,55 +120,32 @@ you can set the configuration variable `skipUpdateWhenPageNotFound` to `true` (d ## Command-line Autocompletion -Currently we only support command-line autocompletion for zsh -and bash. Pull req...
3
3
0
[{"id": "G0", "claim": "The completion option should use the same flag syntax as the other options (with a short flag and/or a bracketed optional argument) instead of the bare positional-looking 'completion <shell>'.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
tldraw__tldraw__1447
tldraw/tldraw
1,447
defect
7578fff2b1799e568082a62e72d33a32c11b9f3a
c20015701320cfd44cb493aef3912066406e9ecc
feat: add support for locking shapes
Add support for locking shapes. How it works right now: - You can lock / unlock shapes from the context menu. - You can also lock shapes with `⇧⌘L` keyboard shortcut. - You cannot select locked shapes: clicking on the shape, double click to edit, select all, brush select,... should not work. - You cannot change props...
diff --git a/assets/translations/main.json b/assets/translations/main.json index eb096550d7d0..5b8f1b791316 100644 --- a/assets/translations/main.json +++ b/assets/translations/main.json @@ -77,6 +77,7 @@ "action.toggle-focus-mode": "Toggle focus mode", "action.toggle-grid.menu": "Show grid", "action.toggle-grid"...
6
3
0
[{"id": "G0", "claim": "The multi-shape toggleLock API may not be needed, since you can only unlock one shape at a time.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Deleting an unlocked group also deletes its locked children, whereas Miro ungroups the...
null
tldraw__tldraw__1487
tldraw/tldraw
1,487
defect
10bb677035d48bd911effb11d4ac57cd21bfca72
f20ed34d382d23ba882cfe5cf372c3dc2f9f864c
feat(presence): add support for cursor chat presence
This PR adds support for seeing **another user**'s chat messages. It's part 1 of two PRs relating to Cursor Chat. And it's needed for the much bigger part 2: https://github.com/tldraw/brivate/pull/1981 # Presence You can see another person's chat messages! ![2023-06-02 at 17 42 33 - Blush Capybara](https://github.c...
diff --git a/assets/translations/main.json b/assets/translations/main.json index 089e99e54473..2142a115dda3 100644 --- a/assets/translations/main.json +++ b/assets/translations/main.json @@ -46,6 +46,7 @@ "action.leave-shared-project": "Leave shared project", "action.new-project": "New project", "action.new-share...
1
1
0
[{"id": "G0", "claim": "If the chat placeholder text ships as a hardcoded CSS variable, it may no longer be localisable.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tldraw__tldraw__2004
tldraw/tldraw
2,004
defect
fb2f515b74b42640d251bd08ea68320840843703
b5c4d1128302207ba1aa26e9b0e14ef22ba2e4d8
fix(arrow): prevent zero-length arrow creation
Fixes an issue with creating arrows. Currently we create an arrow that has both `start` and `end` handles set to the same point. This causes `NaN` issues in some of our functions / svg rendering. After this change we only create the arrow after we start dragging, which ensures the start and the end handle won't have th...
diff --git a/packages/tldraw/src/lib/shapes/arrow/ArrowShapeUtil.tsx b/packages/tldraw/src/lib/shapes/arrow/ArrowShapeUtil.tsx index 2f3dc7215252..44b8acbbe1a8 100644 --- a/packages/tldraw/src/lib/shapes/arrow/ArrowShapeUtil.tsx +++ b/packages/tldraw/src/lib/shapes/arrow/ArrowShapeUtil.tsx @@ -78,7 +78,7 @@ export clas...
2
2
2
[{"id": "G0", "claim": "The change broke the tests that expect an arrow to be created immediately, and the author asks to update those tests or, if there is a deeper reason arrows worked that way, to instead keep immediate creation and fake the end handle to be slightly off the start handle.", "category": "correctness"...
null
tldraw__tldraw__2275
tldraw/tldraw
2,275
defect
e2ddbb16f669a05eadd197600a86ab8a4ee37ea0
763c6110d53b27660fab1077bc25715a20049963
feat(tldraw): add fit to content for frames
Adds Fit to content option for frames. This resizes the frames so that the whole content fits. It also adds 50px padding on all sides so that the content does not touch the frame's borders. https://github.com/tldraw/tldraw/assets/2523721/b2f86e31-7dfb-495f-ac31-f1e0125e0af1 https://github.com/tldraw/tldraw/assets/252...
diff --git a/assets/translations/main.json b/assets/translations/main.json index f8679b009a2e..58a58ee52cbd 100644 --- a/assets/translations/main.json +++ b/assets/translations/main.json @@ -36,6 +36,7 @@ "action.export-as-png": "Export as PNG", "action.export-as-svg.short": "SVG", "action.export-as-svg": "Export...
5
4
2
[{"id": "G0", "claim": "The action should report a 'fit-frame-to-content' tracking event instead of reusing the 'remove-frame' event name.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "fitFrameToContent will fail for nested frames, frames inside gr...
null
tldraw__tldraw__2841
tldraw/tldraw
2,841
defect
93c2ed615c61f09a3d4936c2ed06bcebd85cf363
57344d6d9ff2efc73f183dec748752b99053e67b
feat(editor): add handle-point snapping
Currently, when dragging line handles they'll snap to the outlines of other shapes, but not to their vertices. This can make it hard to snap precisely to certain key places, like the handles of other lines, or the corners of `geo` shapes. This diff adds a new snap type for handles - snapping to points: ![Kapture 2024...
diff --git a/packages/editor/api-report.md b/packages/editor/api-report.md index ed01948289ef..b4cf6fdf741b 100644 --- a/packages/editor/api-report.md +++ b/packages/editor/api-report.md @@ -158,9 +158,16 @@ export abstract class BaseBoxShapeUtil<Shape extends TLBaseBoxShape> extends Sha // (undocumented) get...
1
1
0
[{"id": "G0", "claim": "Since snap-point hits always take precedence over outline hits regardless of distance, the handle-snapping code could check snap points first and skip the outline (and additionalSegments) checking when a snap-point hit is found.", "category": "performance", "verdict": "supported", "priority": "P...
null
tldraw__tldraw__2913
tldraw/tldraw
2,913
defect
f5f9da4f64ec1b16379a2864f595e2e85e74947a
b824cc7a9ec283db13b2b94882211c6c9897354c
chore(dotcom): make Vercel URL rewrites precise
### The problem Right now we use a catchall path in Vercel routing config to rewrite all requests that don't match existing assets to `/index.html`, which is needed for client side routing to work. This, however, messes up 404 errors for truly non-existing files which won't be handled by the SPA, because they get redi...
diff --git a/apps/dotcom/scripts/build.ts b/apps/dotcom/scripts/build.ts index 85cacc75fd23..80bcd7635743 100644 --- a/apps/dotcom/scripts/build.ts +++ b/apps/dotcom/scripts/build.ts @@ -1,10 +1,12 @@ import glob from 'fast-glob' import { mkdirSync, writeFileSync } from 'fs' import { exec } from '../../../scripts/li...
3
3
2
[{"id": "G0", "claim": "A 404 fallback rule should be added to the Vercel routing so dotcom shows its own 404 page instead of Vercel's.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The SPA_ROUTE_FILTER regex definition should be simplified for rea...
null
tldraw__tldraw__2937
tldraw/tldraw
2,937
defect
fcf97958e8f4b71c89683c14d5baffae698d1ac5
c08327a1c84b3fd524fe84d8e1fa37bda39163de
chore(dotcom): derive vercel routes from react-router config
I had some free time at the end of the week so I investigated the idea of deriving the vercel routing config from the react-router config, then storing the derived vercel route info in a jest snapshot, and then loading the jest snapshot during the build script. Seems to work well! ### Change type - [x] `other` ###...
diff --git a/apps/dotcom/package.json b/apps/dotcom/package.json index 1f158738ab85..4c1e17f96325 100644 --- a/apps/dotcom/package.json +++ b/apps/dotcom/package.json @@ -38,6 +38,7 @@ "devDependencies": { "@jest/globals": "30.0.0-alpha.2", "@sentry/cli": "^2.25.0", + "@tldraw/validate": "workspace:*", "@ty...
5
4
0
[{"id": "G0", "claim": "A short comment should be left in the build script explaining to future maintainers what the route-loading code is doing.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The field name should consistently use 'Router' rather...
null
tldraw__tldraw__6614
tldraw/tldraw
6,614
defect
cb97f41de62bba0a865d43c18732207843d2fb7c
633617cb099fb2e316f3674e7444ae56e3b2c71a
feat(sync): support sending custom server messages to connected clients
Resolves #6565 Expands `TLSyncClient`, `TLSocketRoom` and `TLSyncRoom` to send custom messages to connected clients, as described in #6565. Clients can handle received messages by passing an `onCustomMessageReceived` callback to`useSync`. Unhandled messages are quietly discarded. Notes: - While I originally proposed ...
diff --git a/packages/sync-core/api-report.api.md b/packages/sync-core/api-report.api.md index 39028a062f12..ac12629f77ce 100644 --- a/packages/sync-core/api-report.api.md +++ b/packages/sync-core/api-report.api.md @@ -234,6 +234,9 @@ export interface TLConnectRequest { type: 'connect'; } +// @public +export ty...
4
3
3
[{"id": "G0", "claim": "The `custom` message `data` field in the protocol is typed as `Record<string, any>` while `sendCustomMessage` accepts `any`, letting non-record values be sent and creating a type safety inconsistency.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ...
null
tldraw__tldraw__6787
tldraw/tldraw
6,787
defect
442135c3f88bd75b0f702bf848a20f96c2e56af0
a9cec7a85b4c261618b0ed8e23eceb9ce2384146
fix(arrow): use pointingPreciseTimeout in DraggingHandle
This fixes #6767 – we still have some hard-coded arrow logic in the select tool which was not using the arrow shape util's configuration values around precision interactions. ### Change type - [x] `bugfix` ### Test plan 1. Create a shape... 2. - [x] Unit tests - [ ] End to end tests ### Release notes - Fixed a ...
diff --git a/packages/tldraw/src/lib/shapes/arrow/ArrowShapeTool.test.ts b/packages/tldraw/src/lib/shapes/arrow/ArrowShapeTool.test.ts index 01ffd91263e8..be5b3b3160f1 100644 --- a/packages/tldraw/src/lib/shapes/arrow/ArrowShapeTool.test.ts +++ b/packages/tldraw/src/lib/shapes/arrow/ArrowShapeTool.test.ts @@ -1,6 +1,8 ...
3
1
0
[{"id": "G0", "claim": "Access the arrow shape utility's options with proper typing (getShapeUtil<ArrowShapeUtil>) instead of the `any` casts used in resetExactTimeout.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider validating the timeo...
null
tldraw__tldraw__6830
tldraw/tldraw
6,830
defect
ca796f65c3a400bd0a087cd18cccf4753b7c3611
baa29129f86731cf4fd68909fb6c827b6022e0ad
feat(text): add Numpad Enter support for text shape editing
Fixes #6669 ### Problem Numpad Enter is ignored when wanting to edit text. ### Change - Add NumpadEnter to onKeyup function - Write tests for Enter, NumpadEnter ### Impact This PR adds Numpad Enter support for text editing in shapes. Users can now use the Numpad Enter key to edit text in shapes, arrows, and other el...
diff --git a/packages/tldraw/src/lib/shapes/text/TextShapeTool.test.ts b/packages/tldraw/src/lib/shapes/text/TextShapeTool.test.ts index e9c787a5b23a..aef34d2527fd 100644 --- a/packages/tldraw/src/lib/shapes/text/TextShapeTool.test.ts +++ b/packages/tldraw/src/lib/shapes/text/TextShapeTool.test.ts @@ -86,6 +86,80 @@ de...
1
1
0
[{"id": "G0", "claim": "The Enter handling in SelectTool Idle's onKeyUp should switch on `info.key` rather than `info.code`, and the same change should also be applied in SelectTool/childStates/Crop/children/Idle.ts.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
tldraw__tldraw__7543
tldraw/tldraw
7,543
defect
b5973f60022fbc4505f3f678ec276755c150bae1
9489129f09303b84b9e982af3a62b5a493235bf8
feat(editor): add configurable snap threshold option
This PR adds a configurable snap threshold option to the editor, allowing developers to customize the distance at which snapping occurs. Previously, the snap threshold was hardcoded to 8 screen pixels in the SnapManager. Closes #7498 ### Change type - [ ] `bugfix` - [ ] `improvement` - [x] `feature` - [x] `api` - [ ...
diff --git a/packages/editor/api-report.api.md b/packages/editor/api-report.api.md index 57c56aa37735..0122de5e85cc 100644 --- a/packages/editor/api-report.api.md +++ b/packages/editor/api-report.api.md @@ -615,6 +615,9 @@ export const DEFAULT_ANIMATION_OPTIONS: { // @internal (undocumented) export const DEFAULT_CAME...
2
2
1
[{"id": "G0", "claim": "The snap threshold should be part of the options argument (a constant in the options) rather than a dedicated TLEditorOptions constructor parameter with a getter and setter on Editor.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
tldraw__tldraw__7602
tldraw/tldraw
7,602
defect
16ccefc6c48fa1f179427ed263f91c8749c2509e
c1f72b375c26bb993aceb5d233013470f8aafef7
feat(editor): add zoomToFitPadding option to TldrawOptions
This PR adds a configurable `zoomToFitPadding` option to `TldrawOptions` that allows customizing the default padding used when zooming to fit content in the viewport. Previously the padding was hardcoded to 128 pixels. Now users can configure it via the options prop: ```tsx const options: Partial<TldrawOptions> = { ...
diff --git a/packages/editor/api-report.api.md b/packages/editor/api-report.api.md index 57c56aa37735..72a4797a5656 100644 --- a/packages/editor/api-report.api.md +++ b/packages/editor/api-report.api.md @@ -731,6 +731,7 @@ export const defaultTldrawOptions: { readonly tooltipDelayMs: 700; readonly uiCoarseDra...
1
1
0
[{"id": "G0", "claim": "The reviewer asks that the new `zoomToFitPadding` option be made optional in TldrawOptions, to make the API transition easier for users.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tldraw__tldraw__7638
tldraw/tldraw
7,638
defect
efeb6c085d8824d0777db6113b6aefbd787b682e
e4d050e62aabf5350806a7731965a0279ea8cd85
docs(editor): clarify getClipPath should return inner clip boundary
Fixes the issue where child shapes protrude beyond the stroke boundary in custom clipping shapes. Rather than adding complex polygon offset utilities, this PR takes the simpler approach of clarifying that `getClipPath` should return the **inner** clip boundary (already accounting for stroke width). Closes #7627 ### C...
diff --git a/apps/examples/src/examples/custom-clipping-shape/CircleClipShapeUtil.tsx b/apps/examples/src/examples/custom-clipping-shape/CircleClipShapeUtil.tsx index 29dfffcb5df1..f5b796e4e1c7 100644 --- a/apps/examples/src/examples/custom-clipping-shape/CircleClipShapeUtil.tsx +++ b/apps/examples/src/examples/custom-...
3
1
1
[{"id": "G0", "claim": "The STROKE_WIDTH constant in the test file should be 3, matching the value used in the example, otherwise it is fine.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The dynamic segment calculation Math.round((PI2 * clipRadius...
null
tldraw__tldraw__7649
tldraw/tldraw
7,649
defect
ad318c0538c6231f566b33ceedbc10cb4fe581ab
5d453d137c1e8326b599f6c89cfb4f2af37b314c
fix(tldraw): show back to content button when selected shapes are off-screen
Closes #7644 The "Back to content" button wasn't appearing when selected shapes were panned off-screen. This was because the condition checked `getCulledShapes()`, but selected shapes are intentionally excluded from culling (so they keep rendering even off-screen). This PR switches to `getNotVisibleShapes()` which c...
diff --git a/packages/tldraw/src/lib/ui/components/HelperButtons/BackToContent.tsx b/packages/tldraw/src/lib/ui/components/HelperButtons/BackToContent.tsx index 48f4472d5d6c..c4984bb3b432 100644 --- a/packages/tldraw/src/lib/ui/components/HelperButtons/BackToContent.tsx +++ b/packages/tldraw/src/lib/ui/components/Helpe...
1
1
1
[{"id": "G0", "claim": "The test's toBeDefined() assertions on screen.queryByTestId() always pass because queryByTestId returns null when no element is found and null !== undefined, making the assertions ineffective at catching regressions; they should use toBeTruthy(), not.toBeNull(), or toBeInTheDocument() instead.",...
null
tldraw__tldraw__7724
tldraw/tldraw
7,724
defect
7825f01737ffeeb585441536c85a8f6f442d7b47
ed00f526d9fd2907d5781f791202b10c43d5a9b3
perf(sync): squash pending push requests before sending
In order to reduce network traffic for solo mode users and improve sync efficiency, this PR refactors how push requests are accumulated and sent. https://github.com/user-attachments/assets/b18ef6f7-889d-4ab4-b537-a8588ab532a8 ## Summary - Accumulate changes into `unsentChanges` buffer instead of immediately cr...
diff --git a/packages/sync-core/src/lib/TLSyncClient.ts b/packages/sync-core/src/lib/TLSyncClient.ts index 7f7a3cd986e1..980d29a14efc 100644 --- a/packages/sync-core/src/lib/TLSyncClient.ts +++ b/packages/sync-core/src/lib/TLSyncClient.ts @@ -346,7 +346,12 @@ export class TLSyncClient<R extends UnknownRecord, S extends...
2
2
2
[{"id": "G0", "claim": "When squashing RecordsDiffs results in a no-op, the empty push request is marked sent=true but left in pendingPushRequests, so a later server response finds the never-sent empty request at the front of the queue and rebase() hits a clock mismatch error and connection reset; the empty request nee...
null
tldraw__tldraw__7933
tldraw/tldraw
7,933
defect
f43910f1c2b3458cf050d4cf84d2e33f0506f548
dc9de5c9aca48594c3dc824cbdb742093e6ddc8e
fix(utils): prevent false positive multiple instances warning in dev mode
In order to fix a false positive "multiple instances" warning that fires in Next.js dev mode, this PR deduplicates registrations in `registerTldrawLibraryVersion()`. When Next.js re-evaluates modules on page refresh, each tldraw package re-registers itself via `registerTldrawLibraryVersion()`. Since `globalThis.__TLDR...
diff --git a/packages/utils/src/lib/version.test.ts b/packages/utils/src/lib/version.test.ts index ce5114ba13a5..743f7e5349e7 100644 --- a/packages/utils/src/lib/version.test.ts +++ b/packages/utils/src/lib/version.test.ts @@ -294,19 +294,17 @@ describe('version utilities', () => { expect(mockConsoleLog).not.toHave...
1
1
1
[{"id": "G0", "claim": "Make the duplicate-registration skip also check that the environment is a Next.js dev environment, since skipping unconditionally might produce false negatives (hiding genuine multiple-instance warnings).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
tldraw__tldraw__7942
tldraw/tldraw
7,942
defect
ea9551e71e855401c48eb46c6091144e0bb46e28
75b6f7c5853653f91a76d89986e1287dcb2ac880
feat(editor): pass through clicks on transparent image pixels
Closes #7529 In order to allow clicks on transparent parts of PNG/WebP/GIF/AVIF images to pass through to shapes behind them, this PR adds an `ignoreHit()` mechanism to the geometry system and uses it to check image alpha data at the click point. https://github.com/user-attachments/assets/831ea7e8-fdbf-4211-9b29-3337...
diff --git a/packages/editor/api-report.api.md b/packages/editor/api-report.api.md index 052427b776ef..05f93ede4ea8 100644 --- a/packages/editor/api-report.api.md +++ b/packages/editor/api-report.api.md @@ -1759,6 +1759,7 @@ export abstract class Geometry2d { abstract nearestPoint(point: VecLike, _filters?: Geomet...
11
8
4
[{"id": "G0", "claim": "getGeometry reads alpha data cached under asset.props.src while preloading stores it under the resolved URL, so when the two differ the cache never hits and transparent pixels stay clickable.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G...
null
tldraw__tldraw__7949
tldraw/tldraw
7,949
defect
ea8833f5994b8aec50fcf653d517bcca0a6d39a9
57f300757cc356375152f29b459187aeb4b094ae
perf(resize): batch DOM measurements during multi-shape resize
In order to eliminate layout thrashing when resizing multiple geo shapes with text labels, this PR batches all label DOM measurements into a single pass per frame. https://github.com/user-attachments/assets/40f361f0-e619-4c75-9f64-7e302898d158 Previously, each geo shape's `onResize` independently measured its lab...
diff --git a/packages/editor/api-report.api.md b/packages/editor/api-report.api.md index 0e89b31ebc67..c446e82a85fc 100644 --- a/packages/editor/api-report.api.md +++ b/packages/editor/api-report.api.md @@ -3097,6 +3097,12 @@ export class TextManager { measureHtml(html: string, opts: TLMeasureTextOpts): BoxModel &...
8
8
3
[{"id": "G0", "claim": "The explanatory comments around the maxWidth computation should be kept rather than dropped when the measurement params were extracted into getGeoLabelMeasurementRequest.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The p...
null
tldraw__tldraw__8013
tldraw/tldraw
8,013
defect
b56b70f6a6308b35f08c8a0afd0d0335f8495b0a
5dcb5084faacee4ea16c2964ce364d681b979b11
refactor(sync): incremental Pierre persistence with per-record files
In order to enable granular git-level diffs in Pierre history, this PR rewrites Pierre persistence to store each tldraw record as an individual file and use the `TLSyncStorage` interface for incremental updates. **Pierre storage format**: Instead of a single `snapshot.json` blob, each commit now contains `meta.json` (...
diff --git a/apps/dotcom/sync-worker/package.json b/apps/dotcom/sync-worker/package.json index ff2415c97720..7b3f24c67e3b 100644 --- a/apps/dotcom/sync-worker/package.json +++ b/apps/dotcom/sync-worker/package.json @@ -23,7 +23,7 @@ }, "dependencies": { "@clerk/backend": "^1.23.7", - "@pierre/storage": "^0.1.1"...
6
5
3
[{"id": "G0", "claim": "The `as InMemorySyncStorage<TLRecord>` cast on the persistToPierre call hides a runtime type mismatch, so when a room's storage is SQLiteSyncStorage (sqlite_file_storage flag) persistToPierre throws at runtime and Pierre history silently stops working for those rooms.", "category": "correctness"...
null