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

Incorrect windows handling of line wraps #41

Closed
herecydev opened this issue Jul 29, 2019 · 12 comments · Fixed by #42
Closed

Incorrect windows handling of line wraps #41

herecydev opened this issue Jul 29, 2019 · 12 comments · Fixed by #42

Comments

@herecydev
Copy link
Contributor

herecydev commented Jul 29, 2019

In this line of code you are clearly trying to cater for some specific windows issue. However this is not the case:

image

Causes:

image

Hopefully you can see the premature line wrap that's occurring.

Can you please rethink why the addition was made here. I have seen on 4 different windows machines the same incorrect behavior.

@sindresorhus
Copy link
Owner

Can you please rethink why the addition was made here.

You can do that too. "git blame" it.

@herecydev
Copy link
Contributor Author

I linked the thread where the change was originally discussed, and the PR is here. What I'm trying to get across is that this doesn't appear to be correct anymore.

@sindresorhus
Copy link
Owner

Just because you cannot reproduce doesn’t mean it’s not a problem anymore. I think some more investigation is needed.

@herecydev
Copy link
Contributor Author

Not for a second claiming it's the one true solution for all windows versions. But I have done as much due dilligence by trying on several machines with different windows versions. What further steps can I help with so we can progress?

@herecydev
Copy link
Contributor Author

herecydev commented Aug 7, 2019

I've tried to recreate the original issue on the following node versions:

4.9.1 (unable to understand destructuring so breaks)
6.17.1
8.16.0
10.16.12
12.6.0

on Windows 10 (release: 1903)

And all of them exhibit the correct behavior with the windows specific logic removed. Can @Jameskmonger shed any further light on the original issue & versions to recreate?

@Jameskmonger
Copy link
Contributor

@herecydev This is the original issue:

#21 (comment)

I will try to reproduce this on Windows 10 v1903 later

@Jameskmonger
Copy link
Contributor

I don't have v1903, but I'm on v1803 and can see that after deleting the windows-specific code the issue doesn't present itself anymore.

@herecydev
Copy link
Contributor Author

Thanks for the info! I found the original issue but had no idea what version of Windows you were using at the time that exhibited the problem. Is it possible it was < Windows 10?

@Jameskmonger
Copy link
Contributor

@herecydev It was definitely Windows 10 that had the issue, but obviously a version from 2 years ago.

@herecydev
Copy link
Contributor Author

@Jameskmonger Thanks very much! @sindresorhus is this enough info to make something actionable?

@Jameskmonger
Copy link
Contributor

@herecydev If removing the Windows-specific code fixes your issue, and it doesn't reintroduce my old issue on relatively-recent versions of Windows, I think a PR just removing that windows-specific code will work

@herecydev
Copy link
Contributor Author

@Jameskmonger I've already put that together here

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 a pull request may close this issue.

3 participants