Comments (9)
Looks like Vim 7.3+ruby is seriously fucked up, see this: https://wincent.com/issues/1617
Lusty Juggler/Explorer is mentioned there.
from lusty.
Thanks for the report. It's difficult for me to investigate a fix to this, as I can't reproduce the bug. For now I'd suggest that if Vim 7.3 + Ruby is giving you issues, temporarily downgrade to Vim 7.2? Hopefully they'll fix this upstream soon.
from lusty.
Hi, according to a post on vim_dev, adding --disable-largefile
when compiling will be OK. But I find it not enough for my vim. Perl support should also be disabled for Lusty-explorer to work without crashes (God knows why it jumps to Perl-related functions when running ruby code).
from lusty.
I see this error with vim 7.3 and 7.3.143. Perhaps this will help you reproduce it:
- start vim
- load two files into two buffers
- :mksession! ~/.vim/vimsession
- quit vim
- vim -S ~/.vim/vimsession
This reproduces the issue for me every time.
Interestingly enough, I can get it to work by putting this in my .vimrc:
:source ~/.vim/vimsession
However, doing this means I can't directly edit a file as loading the session puts me into the last file I was editing, not the one I gave as a vim param.
It's not too bad as I can just \lb to edit the file I gave as a param, but it does slow me down.
from lusty.
Hi Mark, thanks. Alas, I'm still unable to reproduce with these steps. What platform are you running on, and what version of Ruby does your Vim use?
from lusty.
Hmmm. Well let's see.
~$ ruby --version
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
My plugin dir:
:plugin$ ls
AlignMapsPlugin.vim cecutil.vim fugitive.vim taglist-plus.vim
AlignPlugin.vim clojure.vim info.vim
CSApprox.vim code_complete.vim lusty-explorer.vim
bufexplorer.vim color_sample_pack.vim lusty-juggler.vim
I've written and still maintain a plugin for something internal so I may be able to investigate if you were willing to give some guidance.
Here are some simpler steps that I can use to cause the problem:
- cd ~
- vi
- \lb
undefined method full_name' for nil:NilClass (eval):382:in
compute_buffer_entries'
(eval):381:in each' (eval):381:in
compute_buffer_entries'
(eval):632:in run' (eval):382 (eval):231:in
profile'
(eval):382
NOTE: the fail path is only triggered if I have this in my .vimrc:
au vimEnter * source ~/.vim/vimsession
I can also trigger the fail path if I comment out the 'au' line, and after vim has started type: source ~/.vim/vimsession
Something about the vim session seems to be causing trouble. Any idea?
Thanks!
from lusty.
Ran into this also on MacVim 7.3 (53) installed using brew:
undefined method full_name' for nil:NilClass (eval):392:in
compute_buffer_entries'
(eval):391:in each' (eval):391:in
compute_buffer_entries'
(eval):642:in run' (eval):8 (eval):241:in
profile'
(eval):8
Reproduce:
- open any file
- mksession ~/foo.vim
- close and open vim
- source ~/foo.vim
- :LustyBufferExplorer throws error. :LustyJuggler reports "No other buffers". :buffers lists currently open file.
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
from lusty.
Thanks, I can reproduce this. Interestingly, looks like it occurs in Vim 7.2 and 7.3 but not 7.1.
from lusty.
Probably not many folks using Ruby 1.8 or these older versions of Vim. Closing for now, but feel free to re-open.
from lusty.
Related Issues (20)
- LustyJuggler dumps all my key maps when started HOT 17
- LustyBufferGrep does not load all buffers HOT 2
- needs_script is slow sometimes (in MacVim?) HOT 1
- cannot load such file -- rubygems.rb vim (7.4.979) (OSX) HOT 6
- Encoding issue HOT 10
- ::Fixnum is deprecated HOT 3
- ruby incompatible library HOT 1
- Ruby not detected HOT 4
- unkown encoding name - latin1 HOT 3
- bignum too big to convert into `long' (MacVim) HOT 2
- OSX Mountain Lion 10.8.1 Abort trap: 6 / __stack_chk_fail error HOT 2
- Error on switching buffers HOT 3
- Allow listing of not-yet-loaded buffers HOT 1
- Problems using if : is remapped HOT 1
- problem when the file path has spaces HOT 1
- Problem with files of the same name HOT 5
- LustyExplorer stays open, clobbers buffer, unable to quit vim w/stacktrace HOT 7
- Screenshot please? HOT 1
- Setting notimeout makes keys d and g malfunction.
- 'No other buffers' when there is only one listed buffer
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 lusty.