Comments (8)
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.
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.
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.
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.
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.
Most files are saved correctly as the last line states.
from ctrlsf.vim.
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.
Thank hou for great plugin! It is awesome!
from ctrlsf.vim.
Related Issues (20)
- Question: about a hack in the source code HOT 1
- preview window positioning HOT 6
- Error in ctrlsf#fs#FindProjectRoot HOT 4
- Keymap to open file in a vertical split HOT 2
- Question: Can I map or default the compact style to use quickfix list? HOT 1
- 查找时提示winlayout未定义 HOT 5
- How to specify search path? HOT 3
- *.hpp can't be find as default HOT 2
- Which regex engine? HOT 1
- "free(): invalid pointer" when doing async searches with neovim HOT 2
- Make filename not editable HOT 2
- async chops off first character when editing many files HOT 1
- preview with mouse
- Is it possible to search sentences rather than just a single word? HOT 2
- ctrlsf_backend keeps miserror HOT 3
- Question: is it possible to customize search for a word?
- How can I replace all occurence of the searched keyword? HOT 3
- Sync CtrlSF compact window when navigating via quickfix HOT 4
- Error detected while processing - Invalid argument HOT 1
- Feature request/query: how to pass a list of files to grep through? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctrlsf.vim.