Giter Club home page Giter Club logo

Comments (9)

ku1ik avatar ku1ik commented on September 21, 2024

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.

sjbach avatar sjbach commented on September 21, 2024

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.

lilydjwg avatar lilydjwg commented on September 21, 2024

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.

MarkSwanson avatar MarkSwanson commented on September 21, 2024

I see this error with vim 7.3 and 7.3.143. Perhaps this will help you reproduce it:

  1. start vim
  2. load two files into two buffers
  3. :mksession! ~/.vim/vimsession
  4. quit vim
  5. 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.

sjbach avatar sjbach commented on September 21, 2024

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.

MarkSwanson avatar MarkSwanson commented on September 21, 2024

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:

  1. cd ~
  2. vi
  3. \lb

undefined method full_name' for nil:NilClass (eval):382:incompute_buffer_entries'
(eval):381:in each' (eval):381:incompute_buffer_entries'
(eval):632:in run' (eval):382 (eval):231:inprofile'
(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.

mixman avatar mixman commented on September 21, 2024

Ran into this also on MacVim 7.3 (53) installed using brew:

undefined method full_name' for nil:NilClass (eval):392:incompute_buffer_entries'
(eval):391:in each' (eval):391:incompute_buffer_entries'
(eval):642:in run' (eval):8 (eval):241:inprofile'
(eval):8

Reproduce:

  1. open any file
  2. mksession ~/foo.vim
  3. close and open vim
  4. source ~/foo.vim
  5. :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.

sjbach avatar sjbach commented on September 21, 2024

Thanks, I can reproduce this. Interestingly, looks like it occurs in Vim 7.2 and 7.3 but not 7.1.

from lusty.

sjbach avatar sjbach commented on September 21, 2024

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)

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.