Giter VIP home page Giter VIP logo

Comments (8)

dyng avatar dyng commented on May 26, 2024

There are several reasons can mess up CtrlSF's saving. I need more information to debug.

Please update to latest version, and turn on debug mode by let g:ctrlsf_debug_mode = 1.

Keep an eye on message of InconsistentContent, which contains hints about which line has been changed externally, content of that line in memory and on disk. Please check what's wrong with them.

If you can't figure out what is going wrong, report here. And also with your system's information, like

  • os
  • vim's version
  • backend (ag or ack?), its version

from ctrlsf.vim.

tex avatar tex commented on May 26, 2024

I found the reason. It is about different line endings. That ^M thing when Windows file is opened in Linux... Not sure how to fix it... Do you think it is a good idea to add option to ignore whitespace changes in InconsistenContent check?

from ctrlsf.vim.

dyng avatar dyng commented on May 26, 2024

Thank you for your helpful bug report, I have fixed this bug in #59 .

It will be soon merged into master as v1.2.

from ctrlsf.vim.

dyng avatar dyng commented on May 26, 2024

The fix has been merged into master.

I'll close this issue. But if you find the fix has not actually fixed, feel free to reopen this.

from ctrlsf.vim.

tex avatar tex commented on May 26, 2024

I tried it on rather large number of files:

Chyba při zpracování function ctrlsf#Save..ctrlsf#edit#Save..156_SaveFile..156_VerifyConsistent:
řádek 6:
E684: list index out of range: 84
E15: Chybný výraz: line.content !=# a:on_disk[ln-1]
Chyba při zpracování function ctrlsf#Save..ctrlsf#edit#Save..156_SaveFile..156_WriteParagraph:
řádek 34:
E684: list index out of range: 84
Chyba při zpracování function ctrlsf#Save..ctrlsf#edit#Save..156_SaveFile..156_VerifyConsistent:
řádek 6:
E684: list index out of range: 61
E15: Chybný výraz: line.content !=# a:on_disk[ln-1]
Chyba při zpracování function ctrlsf#Save..ctrlsf#edit#Save..156_SaveFile..156_WriteParagraph:
řádek 34:
E684: list index out of range: 61
23 files are saved.

from ctrlsf.vim.

tex avatar tex commented on May 26, 2024

Most files are saved correctly as the last line states.

from ctrlsf.vim.

dyng avatar dyng commented on May 26, 2024

It's a known issue related to ag, which I have reported to ag project:

ggreer/the_silver_searcher#685

But if it's hard to be fixed in ag upstream, the only way is to workaround it in CtrlSF. I'll create a new issue about it. Thank you for your report.

from ctrlsf.vim.

tex avatar tex commented on May 26, 2024

Thank hou for great plugin! It is awesome!

from ctrlsf.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.