XVimProject / XVim

Xcode plugin for Vim keybindings
MIT License
5.16k stars 596 forks source link

Just use `J' to merge lines, even there is no more line to merge, just press `J', then Xcode crashed. #136

Closed SimonRen closed 12 years ago

SimonRen commented 12 years ago

Just use J' to merge lines, even there is no more line to merge, just pressJ', then Xcode crashed.

With Xcode 4.3.2

JugglerShu commented 12 years ago

Can you give me some more hints? I could not reproduce it.

What I did was input 'J' at the last line of the file. I also tried some edge case line cursor at EOF or cursor at last character of the file.

tomlu commented 12 years ago

I can't reproduce it either. I'm going to assume the crash was caused by something other than the bug description. Keep 'em coming though.

SimonRen commented 12 years ago

4/14/12 2:40:25.130 PM Xcode: [Trace]-[XVimEvaluator eval:ofXVim:] [Line 50] Calling SELECTOR k: 4/14/12 2:40:25.130 PM Xcode: [Trace]-[XVimMotionEvaluator _motionFixedFrom:To:Type:] [Line 56] from:256 to:231 type:1 4/14/12 2:40:25.748 PM Xcode: [Debug]Obj:0x402e5b260 keyDown : keyCode:38 characters:J charsIgnoreMod:J cASCII:74 4/14/12 2:40:25.748 PM Xcode: [Trace]-[XVimEvaluator eval:ofXVim:] [Line 50] Calling SELECTOR J: 4/14/12 2:40:25.794 PM Xcode: [Debug]Obj:0x402e5b260 keyDown : keyCode:38 characters:J charsIgnoreMod:J cASCII:74 4/14/12 2:40:25.794 PM Xcode: [Trace]-[XVimEvaluator eval:ofXVim:] [Line 50] Calling SELECTOR J: 4/14/12 2:40:25.812 PM Xcode: [Debug]Obj:0x402e5b260 keyDown : keyCode:38 characters:J charsIgnoreMod:J cASCII:74 4/14/12 2:40:25.812 PM Xcode: [Trace]-[XVimEvaluator eval:ofXVim:] [Line 50] Calling SELECTOR J: 4/14/12 2:40:25.831 PM Xcode: [Debug]Obj:0x402e5b260 keyDown : keyCode:38 characters:J charsIgnoreMod:J cASCII:74 4/14/12 2:40:25.832 PM Xcode: [Trace]-[XVimEvaluator eval:ofXVim:] [Line 50] Calling SELECTOR J: 4/14/12 2:40:25.849 PM Xcode: [Debug]Obj:0x402e5b260 keyDown : keyCode:38 characters:J charsIgnoreMod:J cASCII:74 4/14/12 2:40:25.849 PM Xcode: [Trace]-[XVimEvaluator eval:ofXVim:] [Line 50] Calling SELECTOR J: 4/14/12 2:40:25.864 PM Xcode: [Debug]Obj:0x402e5b260 keyDown : keyCode:38 characters:J charsIgnoreMod:J cASCII:74 4/14/12 2:40:25.864 PM Xcode: [Trace]-[XVimEvaluator eval:ofXVim:] [Line 50] Calling SELECTOR J: 4/14/12 2:40:25.868 PM Xcode: [Debug]Obj:0x402e5b260 keyDown : keyCode:38 characters:J charsIgnoreMod:J cASCII:74 4/14/12 2:40:25.869 PM Xcode: [Trace]-[XVimEvaluator eval:ofXVim:] [Line 50] Calling SELECTOR J: 4/14/12 2:40:25.869 PM Xcode: *\ Assertion failure in -[DVTSourceTextView endOfLine:], /Users/shu/Develop/XVim/XVim/NSTextView+VimMotion.m:352

SimonRen commented 12 years ago

Seems that it's a debug version? Or maybe something wrong with my system.

tomlu commented 12 years ago

Could you attach the text document you're using to reproduce this?

On Sat, Apr 14, 2012 at 4:42 PM, SimonRen < reply@reply.github.com

wrote:

Seems that it's a debug version? Or maybe something wrong with my system.


Reply to this email directly or view it on GitHub: https://github.com/JugglerShu/XVim/issues/136#issuecomment-5129352

SimonRen commented 12 years ago

Here is the file. I start press 'J' from the 'NSLog( @"abc" );' at line 15, and press 'J' as fast as I can.

On Apr 14, 2012, at 3:35 PM, tomlu wrote:

Could you attach the text document you're using to reproduce this?

On Sat, Apr 14, 2012 at 4:42 PM, SimonRen < reply@reply.github.com

wrote:

Seems that it's a debug version? Or maybe something wrong with my system.


Reply to this email directly or view it on GitHub: https://github.com/JugglerShu/XVim/issues/136#issuecomment-5129352


Reply to this email directly or view it on GitHub: https://github.com/JugglerShu/XVim/issues/136#issuecomment-5129540

SimonRen commented 12 years ago

I'm sorry that, I don't know how to attach files. Is this link useful?

https://gist.github.com/2383733

tomlu commented 12 years ago

Thanks for that. I've tried it and I still can't reproduce it. If you are not running git HEAD, could you compile and run the latest version?