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

Wrongly detected spelling mistake resolves when command is re-run #194

Closed
cmichi opened this issue Jul 20, 2021 · 5 comments
Closed

Wrongly detected spelling mistake resolves when command is re-run #194

cmichi opened this issue Jul 20, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@cmichi
Copy link

cmichi commented Jul 20, 2021

Describe the bug

This run failed: https://gitlab.parity.io/parity/ink/-/jobs/1021515 with this error:

error: spellcheck(Hunspell)
    --> /builds/parity/ink/crates/lang/ir/src/ir/item_impl/callable.rs:185
[2021-07-20T09:04:18Z INFO  cargo_spellcheck::action] ❌ /builds/parity/ink/crates/lang/ir/src/ir/item_impl/callable.rs : 1
 185 |  - the callable's identifier `i`
     |        ^^^^^^^^^^
     |   Possible spelling mistake found.

The dictionary contains callable/MS though.

I re-ran the job and it succeeded on that retry: https://gitlab.parity.io/parity/ink/-/jobs/1021549.

Expected behavior

Runs of cargo spellcheck should be idempotent.

Please complete the following information:

  • System: Ubuntu 20.04 LTS
  • Obtained: cargo install
  • Version: 0.8.10
    The command executed is
$ cargo spellcheck check -vvv --cfg=.config/cargo_spellcheck.toml --checkers hunspell --code 1

Maybe the -vvv provides more information now for you to debug this? We added the verbosity flags after prior occurrences of this error contained too little information.

@cmichi cmichi added the bug Something isn't working label Jul 20, 2021
@drahnr
Copy link
Owner

drahnr commented Jul 20, 2021

The detail of the bugreport is awesome, I have one small request: tack another -v into the execution, which will add a whole lot of debug output (but unlike trace still keep it tractable). Currently I can't do much since the output is essentially showing the rules being loaded and that's it.

I think that's the main TODO here, better balance of info, debug, and trace logs

@drahnr
Copy link
Owner

drahnr commented Jul 20, 2021

Note that with v0.8.10 the -r flag works as expected, so the bash-base for loops are not necessary anymore.

@cmichi
Copy link
Author

cmichi commented Aug 3, 2021

I just encountered this issue again:

The word is in the dictionary here.

@drahnr
Copy link
Owner

drahnr commented Aug 3, 2021

Thank you! This proves that callable.rs is picked up by both runs, and is processed by both runs which falsifies my initial suspicion. This points pretty much into a hunspell-rs wrapping bug, a hunspell usage bug or an internal hunspell bug.

@drahnr
Copy link
Owner

drahnr commented Oct 13, 2021

So it seems this was caused by -r flag which follows mod foo; declarations. With the changes in paritytech/polkadot#3992 this should be resolved for good. Re-open if that assumption turns out to be wrong.

@drahnr drahnr closed this as completed Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants