Skip to content

Tools usage pages#245

Open
pataei wants to merge 15 commits intomainfrom
pm-21417/manpages
Open

Tools usage pages#245
pataei wants to merge 15 commits intomainfrom
pm-21417/manpages

Conversation

@pataei
Copy link
Copy Markdown
Contributor

@pataei pataei commented Mar 23, 2026

Addresses #62.

Removes old out of date files.

Adds usage pages for formatter, fixup, and dev tool.

Adds --update-Uint-range to help text of fixup.

Adds --line-length to fixup.

pataei added 3 commits March 23, 2026 12:13
Signed-off-by: pataei <paris.ataei@gmail.com>
Signed-off-by: pataei <paris.ataei@gmail.com>
Signed-off-by: pataei <paris.ataei@gmail.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 23, 2026

Plugin Test Results

 1 files   3 suites   1s ⏱️
21 tests 21 ✅ 0 💤 0 ❌
23 runs  23 ✅ 0 💤 0 ❌

Results for commit a74fa77.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 23, 2026

Compactc E2E Tests Results

2 825 tests   2 825 ✅  6m 50s ⏱️
    1 suites      0 💤
    1 files        0 ❌

Results for commit a74fa77.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 23, 2026

Flaky Rate

Overall Flakiness 0.00%    ±0

No current tests have flaky rates to display ✨

Github Test Reporter by CTRF 💚


Flaky Rate

Overall Flakiness 0.00%    ±0

No current tests have flaky rates to display ✨

Github Test Reporter by CTRF 💚


Flaky Rate

Overall Flakiness 0.00%    ±0

No current tests have flaky rates to display ✨

Github Test Reporter by CTRF 💚


Flaky Rate

Overall Flakiness 0.00%    ±0

No current tests have flaky rates to display ✨

Github Test Reporter by CTRF 💚

pataei added 2 commits March 23, 2026 20:08
Signed-off-by: pataei <paris.ataei@gmail.com>
@pataei pataei marked this pull request as ready for review March 24, 2026 02:14
@pataei pataei requested review from a team as code owners March 24, 2026 02:14
pataei added 4 commits March 24, 2026 09:28
Signed-off-by: pataei <paris.ataei@gmail.com>
Signed-off-by: pataei <paris.ataei@gmail.com>
Signed-off-by: pataei <paris.ataei@gmail.com>
@pataei pataei requested a review from dybvig March 24, 2026 18:23
Signed-off-by: pataei <paris.ataei@gmail.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 25, 2026

Plugin Test Summary

 1 files   3 suites   1s ⏱️
21 tests 21 ✅ 0 💤 0 ❌
23 runs  23 ✅ 0 💤 0 ❌

Results for commit f8d7cc8.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 25, 2026

Compactc E2E Test Summary

    1 files  ±    0      1 suites   - 47   5m 50s ⏱️ + 3m 21s
2 827 tests +2 360  2 827 ✅ +2 366  0 💤  - 6  0 ❌ ±0 
2 827 runs  +2 349  2 827 ✅ +2 355  0 💤  - 6  0 ❌ ±0 

Results for commit f8d7cc8. ± Comparison against base commit 90d3f41.

This pull request removes 467 and adds 2827 tests. Note that renamed tests count towards both.
src/tests/bugs/compiler.bugs.e2e.test.ts ‑ [Bugs] Compiler > '[MFG-413] should compile and not thro…'
src/tests/bugs/compiler.bugs.e2e.test.ts ‑ [Bugs] Compiler > '[PM-12371] should compile and not thr…'
src/tests/bugs/compiler.bugs.e2e.test.ts ‑ [Bugs] Compiler > '[PM-15405] should compile and not thr…'
src/tests/bugs/compiler.bugs.e2e.test.ts ‑ [Bugs] Compiler > '[PM-15733] should compile and not thr…'
src/tests/bugs/compiler.bugs.e2e.test.ts ‑ [Bugs] Compiler > '[PM-15826] should compile and not thr…'
src/tests/bugs/compiler.bugs.e2e.test.ts ‑ [Bugs] Compiler > '[PM-16040] should compile and not thr…'
src/tests/bugs/compiler.bugs.e2e.test.ts ‑ [Bugs] Compiler > '[PM-16059] should compile and not thr…'
src/tests/bugs/compiler.bugs.e2e.test.ts ‑ [Bugs] Compiler > '[PM-16447] should compile and not thr…'
src/tests/bugs/compiler.bugs.e2e.test.ts ‑ [Bugs] Compiler > '[PM-16853] should compile and not thr…'
src/tests/bugs/compiler.bugs.e2e.test.ts ‑ [Bugs] Compiler > '[PM-16999] should return an error if …'
…
src/tests/extracted.e2e.test.ts ‑ [E2E] Extracted unit tests for compiler > should be able to compile extracted contract: '/home/runner/work/_temp/nix-shell.RmaYTM/temp-test-8oiBKZ/contract_0.compact'
src/tests/extracted.e2e.test.ts ‑ [E2E] Extracted unit tests for compiler > should be able to compile extracted contract: '/home/runner/work/_temp/nix-shell.RmaYTM/temp-test-8oiBKZ/contract_1.compact'
src/tests/extracted.e2e.test.ts ‑ [E2E] Extracted unit tests for compiler > should be able to compile extracted contract: '/home/runner/work/_temp/nix-shell.RmaYTM/temp-test-8oiBKZ/contract_10.compact'
src/tests/extracted.e2e.test.ts ‑ [E2E] Extracted unit tests for compiler > should be able to compile extracted contract: '/home/runner/work/_temp/nix-shell.RmaYTM/temp-test-8oiBKZ/contract_100.compact'
src/tests/extracted.e2e.test.ts ‑ [E2E] Extracted unit tests for compiler > should be able to compile extracted contract: '/home/runner/work/_temp/nix-shell.RmaYTM/temp-test-8oiBKZ/contract_1000.compact'
src/tests/extracted.e2e.test.ts ‑ [E2E] Extracted unit tests for compiler > should be able to compile extracted contract: '/home/runner/work/_temp/nix-shell.RmaYTM/temp-test-8oiBKZ/contract_1001.compact'
src/tests/extracted.e2e.test.ts ‑ [E2E] Extracted unit tests for compiler > should be able to compile extracted contract: '/home/runner/work/_temp/nix-shell.RmaYTM/temp-test-8oiBKZ/contract_1002.compact'
src/tests/extracted.e2e.test.ts ‑ [E2E] Extracted unit tests for compiler > should be able to compile extracted contract: '/home/runner/work/_temp/nix-shell.RmaYTM/temp-test-8oiBKZ/contract_1003.compact'
src/tests/extracted.e2e.test.ts ‑ [E2E] Extracted unit tests for compiler > should be able to compile extracted contract: '/home/runner/work/_temp/nix-shell.RmaYTM/temp-test-8oiBKZ/contract_1004.compact'
src/tests/extracted.e2e.test.ts ‑ [E2E] Extracted unit tests for compiler > should be able to compile extracted contract: '/home/runner/work/_temp/nix-shell.RmaYTM/temp-test-8oiBKZ/contract_1005.compact'
…

♻️ This comment has been updated with latest results.

pataei added 2 commits March 25, 2026 12:23
…e-length, update changelog

Signed-off-by: pataei <paris.ataei@gmail.com>
Signed-off-by: pataei <paris.ataei@gmail.com>

where **0.26.0** is the installed version and **0.28.0** is the latest available
version of the Compact toolchain. The command **update** can be used to update
to this version. **aarch64-darwin** spits out the chosen binary of the Compact
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"spits out" is slang and should be replaced with something less informal. I don't know what to suggest because I don't know what this is trying to say.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it to displays.

toolchain for your machine's architecture.

The options in OPTIONS can be used with this command. **--directory
_directorypath_** and **--version** behave the same as not using a command
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I understand what this is trying to say, but it's certainly not clear. I suggest just saying that the help option gives help for this command.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revised it.

The Compact command-line tool provides a set of utilities for Compact smart
contract development.

SYNOPSYS
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"SYNOPSYS" => "SYNOPSIS.

this misspelling appears several times below as well.

Also, to be consistent, "SYNOPSIS" should be "Synopsis" or the later ones should be changed to match the case of this one.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The one that is in all caps is the subtitle whereas the ones that aren't all caps aren't. I fixed the typo.

COMPILE
=======

Synopsys: **compact** **compile** _+version_ _option_ _sourcepath_ _targetpath_
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So only one option is allowed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, good catch.

This command compiles the Compact source program in _sourcepath_ using the
specified Compact toolchain version _version_ if it exits. If a version is not
specified the default version of the Compact toolchain installed is picked. The
_option_ can be one of the flags accepted by the Compact compiler and the
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, only one option is allowed?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, --help doesn't actually give the compiler's help, and unless a version is specified, --version doesn't actually given the compiler's version, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected the option issue. Line 285 explicitly discusses compact compile --help vs compact compile +version --help.

pataei added 2 commits March 27, 2026 11:30
Signed-off-by: pataei <paris.ataei@gmail.com>
Copy link
Copy Markdown
Contributor

@dybvig dybvig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants