Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unmatched Number of Words vs. Actual Entries in spellcheck.dic #7061

Open
drink7036290 opened this issue Jan 2, 2025 · 0 comments · May be fixed by #7062
Open

Unmatched Number of Words vs. Actual Entries in spellcheck.dic #7061

drink7036290 opened this issue Jan 2, 2025 · 0 comments · May be fixed by #7062
Labels
A-tokio Area: The main tokio crate C-bug Category: This is a bug.

Comments

@drink7036290
Copy link

Version
List the versions of all tokio crates you are using. The easiest way to get
this information is using cargo tree subcommand:

cargo tree | grep tokio

benches v0.0.0 (/home/marshalllee/projects/rust/tokio/benches)
└── tokio v1.42.0 (/home/marshalllee/projects/rust/tokio/tokio)
└── tokio-macros v2.4.0 (proc-macro) (/home/marshalllee/projects/rust/tokio/tokio-macros)
└── tokio v1.42.0 (/home/marshalllee/projects/rust/tokio/tokio)
└── tokio-macros v2.4.0 (proc-macro) (/home/marshalllee/projects/rust/tokio/tokio-macros) ()
├── tokio-stream v0.1.17 (/home/marshalllee/projects/rust/tokio/tokio-stream)
│ └── tokio v1.42.0 (/home/marshalllee/projects/rust/tokio/tokio) (
)
│ ├── tokio v1.42.0 (/home/marshalllee/projects/rust/tokio/tokio) ()
│ └── tokio-test v0.4.4 (/home/marshalllee/projects/rust/tokio/tokio-test)
│ ├── tokio v1.42.0 (/home/marshalllee/projects/rust/tokio/tokio) (
)
│ └── tokio-stream v0.1.17 (/home/marshalllee/projects/rust/tokio/tokio-stream) ()
│ └── tokio v1.42.0 (/home/marshalllee/projects/rust/tokio/tokio) (
)
└── tokio-test v0.4.4 (/home/marshalllee/projects/rust/tokio/tokio-test) ()
├── tokio-stream v0.1.17 (/home/marshalllee/projects/rust/tokio/tokio-stream) (
)
└── tokio-test v0.4.4 (/home/marshalllee/projects/rust/tokio/tokio-test) ()
├── tokio-stream v0.1.17 (/home/marshalllee/projects/rust/tokio/tokio-stream) (
)
└── tokio-util v0.7.13 (/home/marshalllee/projects/rust/tokio/tokio-util)
└── tokio v1.42.0 (/home/marshalllee/projects/rust/tokio/tokio) ()
├── tokio v1.42.0 (/home/marshalllee/projects/rust/tokio/tokio) (
)
├── tokio-stream v0.1.17 (/home/marshalllee/projects/rust/tokio/tokio-stream) ()
└── tokio-test v0.4.4 (/home/marshalllee/projects/rust/tokio/tokio-test) (
)
examples v0.0.0 (/home/marshalllee/projects/rust/tokio/examples)
├── tokio v1.42.0 (/home/marshalllee/projects/rust/tokio/tokio) ()
├── tokio-stream v0.1.17 (/home/marshalllee/projects/rust/tokio/tokio-stream) (
)
├── tokio-util v0.7.13 (/home/marshalllee/projects/rust/tokio/tokio-util) ()
stress-test v0.1.0 (/home/marshalllee/projects/rust/tokio/stress-test)
└── tokio v1.42.0 (/home/marshalllee/projects/rust/tokio/tokio) (
)
tests-build v0.1.0 (/home/marshalllee/projects/rust/tokio/tests-build)
tests-integration v0.1.0 (/home/marshalllee/projects/rust/tokio/tests-integration)
└── tokio v1.42.0 (/home/marshalllee/projects/rust/tokio/tokio) ()
tokio v1.42.0 (/home/marshalllee/projects/rust/tokio/tokio) (
)
tokio v1.42.0 (/home/marshalllee/projects/rust/tokio/tokio) ()
tokio-macros v2.4.0 (proc-macro) (/home/marshalllee/projects/rust/tokio/tokio-macros) (
)
tokio-stream v0.1.17 (/home/marshalllee/projects/rust/tokio/tokio-stream) ()
tokio-test v0.4.4 (/home/marshalllee/projects/rust/tokio/tokio-test) (
)
tokio-util v0.7.13 (/home/marshalllee/projects/rust/tokio/tokio-util) (*)

Platform
The output of uname -a (UNIX), or version and 32 or 64-bit (Windows)

Linux marshalllee-Z270X-UD3 6.8.0-36-generic #36-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 10 10:49:14 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Description
Enter your issue details here.
One way to structure the description:

[short summary of the bug]
There is a mismatch between the number indicated on the first line of spellcheck.dic and the actual number of dictionary entries in the file.

I tried this code:

[code sample that causes the bug]
N/A (no specific code snippet triggers this issue)

The command "cargo spellcheck --code 1" still completes without any errors or warnings.

I expected to see this happen: [explanation]
// spellcheck.dic
1 | 299 // Correct count
2 | &
3 | +
...
298 | wakeup
299 | wakeups
300 | workstealing
301 | // Empty line here

First line: 299
Lines 2 to 300: Actual entries (299 lines)
Line 301: Empty line

Instead, this happened: [explanation]
// spellcheck.dic
1 | 298 // Incorrect count
2 | &
3 | +
...
298 | wakeup
299 | wakeups
300 | workstealing
// No empty line here

First line: 298
Lines 2 to 300: Actual entries (299 lines)
Missing empty line at the end

@drink7036290 drink7036290 added A-tokio Area: The main tokio crate C-bug Category: This is a bug. labels Jan 2, 2025
@drink7036290 drink7036290 linked a pull request Jan 2, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-bug Category: This is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant