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

find_spans() of CheckableChunk only checks for linefeed as newline. #124

Open
KuabeM opened this issue Nov 9, 2020 · 6 comments
Open

find_spans() of CheckableChunk only checks for linefeed as newline. #124

KuabeM opened this issue Nov 9, 2020 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@KuabeM
Copy link
Collaborator

KuabeM commented Nov 9, 2020

Describe the bug

Method find_spans() in chunk.rs only recgonizes a linefeed as newlines, but should also acknowledge CRLF and friends. See FIXME in chunk.rs:219.

To Reproduce

Steps to reproduce the behaviour:

  1. A file containing \r\n as newline
  2. Run cargo spellcheck on that file
  3. find_spans() will be broken

Expected behavior

Everything works on files with \r\n as expected.

Please complete the following information:**

  • System: Arch Linux
  • Obtained: git
  • Version: cargo-spellcheck 0.4.7-alpha.0
@KuabeM KuabeM added the bug Something isn't working label Nov 9, 2020
@drahnr drahnr changed the title find_spans() of CheckablChunk only checks for linefeed as newline. find_spans() of CheckableChunk only checks for linefeed as newline. Nov 15, 2020
@KuabeM
Copy link
Collaborator Author

KuabeM commented Dec 23, 2020

I'm investigating this in branch korbinian-fix-find-spans, I've just pushed a first guess (which isn't working 😞) plus a unit test. I'll open a PR if I found a proper solution.

@drahnr
Copy link
Owner

drahnr commented Apr 19, 2021

Ping 🙃

@KuabeM
Copy link
Collaborator Author

KuabeM commented Apr 19, 2021

Hopsa, I guess I should have a look again :D thanks for the reminder!

@drahnr
Copy link
Owner

drahnr commented Apr 19, 2021

No worries, also #137 ;) - might be easier to do it at all at once

@drahnr
Copy link
Owner

drahnr commented May 6, 2021

Any roadblocks I could help with?

@KuabeM
Copy link
Collaborator Author

KuabeM commented May 7, 2021

Nope, just me not having enough time. As you suggested I'm actually doing #137. It makes more sense to rewrite the whole thing

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