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

Zettlr fails to modify Windows files. #5180

Closed
2 of 5 tasks
jxerome opened this issue May 23, 2024 · 2 comments
Closed
2 of 5 tasks

Zettlr fails to modify Windows files. #5180

jxerome opened this issue May 23, 2024 · 2 comments
Labels
bug A bug that affects the functionality of Zettlr.

Comments

@jxerome
Copy link
Contributor

jxerome commented May 23, 2024

Description

When the markdown files use Windows end of lines <CR><LF>, the modification of the file fails with a "Document out-of-sync" error.
331602000-36dda9b9-8027-45be-866a-6465c96dc919

See more details in discussion #5166

If Zettlr don't produce files with Windows end of files, there are many reasons an .md file can have such line terminaison on Windows:

  • Modification of the file by another editor.
  • Git introduce <CR><LF> on file checkout (that means that the whole workspace becomes impossible to edit.)

Reproducing

  1. Use Windows.
  2. Checkout a workspace from git or write a .md file with another editor.
  3. Ensure that the end of file is
  4. Open the file on Zettlr, try to modify it 💥
  5. Close Zettlr.
  6. Change the file with the other editor to makes lines end with .
  7. Open the file in Zettlr.
  8. Try to modify the file ✅

Zettlr Version

Stable (most recent version)

Specify version

3.1.1

Installation Method

From the Website or GitHub

Your Platform

  • Windows
  • macOS
  • Linux

Architecture

  • Intel 64bit
  • ARM 64bit

Operating System Version

Windows 11

Additional Information

No response

@jxerome jxerome added the bug A bug that affects the functionality of Zettlr. label May 23, 2024
@andriyyatsykiv
Copy link

I am also having this issue, with the same system details as you except for Win10. This makes Zettlr impossible to use in conjunction with any markdown published to github, which may cover quite a few projects.

@nathanlesage
Copy link
Member

Good news: I spent some time today to fix that issue. I don't know why I did what I did (apologies) but the nightly that is currently in the making and should be available soon at https://nightly.zettlr.com should make working with windows line endings usable again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug that affects the functionality of Zettlr.
Projects
None yet
Development

No branches or pull requests

3 participants