Skip to content

Conversation

@RetricSu
Copy link
Collaborator

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds Windows-specific documentation to help users work around a known issue with mock tests in generated projects. The workaround involves manually installing the native ckb-debugger binary and disabling the WASM debugger until an upstream fix is applied.

Changes:

  • Added comprehensive Windows user instructions for setting up ckb-debugger manually
  • Included step-by-step installation guide with PATH configuration
  • Documented how to disable WASM debugger in mock test files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

```
- The `-c` option is optional, if not provided, the contract name defaults to `hello-world`.

**Note for Windows Users:**
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

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

Inconsistent capitalization: This line uses "Windows Users" (capital U) while line 58 of the same file uses "Windows users" (lowercase u). For consistency with the existing note, this should be "Windows users".

Copilot uses AI. Check for mistakes.
Comment on lines +164 to +166
- Comment out or delete the `verifier.setWasmDebuggerEnabled(true)` line:
```typescript
// When using native ckb-debugger, comment out or delete the following line:
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

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

The comment in the code example is slightly inconsistent with the actual template code. The template files at lines 32-33 of both .mock.test.ts.template and .mock.test.js.template show the comment "if you are using the native ckb-debugger, you can delete the following line." However, this documentation says "When using native ckb-debugger, comment out or delete the following line". Consider aligning the wording more closely with the template, or updating the templates to match this documentation.

Suggested change
- Comment out or delete the `verifier.setWasmDebuggerEnabled(true)` line:
```typescript
// When using native ckb-debugger, comment out or delete the following line:
- Delete the `verifier.setWasmDebuggerEnabled(true)` line:
```typescript
// if you are using the native ckb-debugger, you can delete the following line:

Copilot uses AI. Check for mistakes.
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