Error Detected While Processing Ruby.vim
Sign in Pricing Blog Support Search GitHub This repository Watch 74 Star 1,490 Fork 264 vim-ruby/vim-ruby Code Issues 55 Pull requests 2 Projects 0 Wiki Pulse Graphs New issue Ruby ftplugin error on opening #202 Closed rcorre opened this Issue Feb 11, 2014 · 19 comments Projects None yet Labels ftplugin Milestone No milestone Assignees No one assigned 6 participants rcorre commented Feb 11, 2014 After updating vim (v7.4, patch 1-135) a few days ago, the ruby ftplugin fails to load. I get the following errors: "test.rb" [New File] Error detected while processing function
Sign in Pricing Blog Support Search GitHub This repository Watch 74 Star 1,490 Fork 264 vim-ruby/vim-ruby Code Issues 55 Pull requests 2 Projects 0 Wiki Pulse Graphs New issue missing :endif in ruby.vim #166 Closed Netherdrake opened this Issue Jul 27, 2013 · 5 comments Projects None yet Labels ftplugin Milestone No milestone Assignees No one assigned 4 participants Netherdrake commented Jul 27, 2013 Whenever I try to open ruby files, I get this error: "~/Documents/ruby/maker/app/models/user.rb" 9L, 356C
Error detected while processing function
line 17:
E484: Can't open file /tmp/v5pMHit/1
Error detected https://github.com/vim-ruby/vim-ruby/issues/202 while processing /home/jan/.vim/bundle/vim-ruby/ftplugin/ruby.vim:
line 122:
E171: Missing :endif
Press ENTER or type command to continue I installed this plugin via Vundler, and I have latest github version. I'm on Arch Linux, and the /tmp/* is created by Vim when I try to open some file. Netherdrake commented Jul 27, 2013 I figured, this issue only exists them using Vim from Tmux. Otherwise its good. Netherdrake https://github.com/vim-ruby/vim-ruby/issues/166 commented Jul 27, 2013 Furthermore, I discovered this issue only exists when using Tmux with default-shell option set to /bin/fish (using Fish shell). However when Tmux is configured to use Bash shell, and than Fish shell is loaded manually, and than Vim is opened from Fish shell within Tmux it works fine. So this issue only really exists when Tmux is configured to use Fish shell as default. Any ideas on how to fix it? tpope added a commit that referenced this issue Jul 29, 2013 tpope … Closes #166 255cd93 Vim-Ruby member tpope commented Jul 29, 2013 In general, if you're using fish, you should set shell=/bin/bash in your vimrc, as Vim requires a POSIX compatible shell for all external command execution. However, since vim-ruby ships with Vim, we probably shouldn't blow up just because of a broken configuration. Could you try the fish branch and see if that silences the error? Netherdrake commented Jul 29, 2013 Thanks tpope, I made it so if $TMUX is set vim sets shell to /bin/bash. Now the crash is gone. Love your plugins btw. Netherdrake cl
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings http://stackoverflow.com/questions/4294116/problem-with-vims-ruby-plugin and policies of this site About Us Learn more about Stack https://www.mail-archive.com/fish-users@lists.sourceforge.net/msg01424.html Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; error detected it only takes a minute: Sign up Problem with Vim's Ruby plugin up vote 12 down vote favorite 3 I have just installed Vim and when ever I go to open in ruby file I get these errors: Error detected while processing C:\Program files (x86)\Vim\vimfiles\ftplugin\ruby.vim line: 76 Encoding::ConverterNotFoundError: code converter not found (UTF-16LE to ASCII-8bit) line: 93 E121 :Undefined varaible: error detected while s:ruby_path E15: Invalid expression: s:ruby_path line: 76 NameError: uninitialized constant Gem::Quickloader line: 93 I have Ruby 192 installed and I get this error even if I update ruby vim files. These are the two lines those errors are referring to if it helps: line 76: ruby VIM::command( 'let s:ruby_path = "%s"' % ($: + begin; require %q{rubygems}; Gem.all_load_paths.sort.uniq; rescue LoadError; []; end).join(%q{,}) ) line 93: let &l:path = s:ruby_path ruby vim plugins share|improve this question edited Nov 27 '10 at 21:52 Reese Moore 7,86231427 asked Nov 27 '10 at 21:50 Alex 6113 add a comment| 6 Answers 6 active oldest votes up vote 15 down vote Note that instead of editing ruby.vim file you can just add let g:ruby_path = ':C:\ruby192\bin' in your _vimrc file (or equivalent for your platform). That way you won't need to keep re-editing ruby.vim when you update it. share|improve this answer answered Jan 3 '11 at 15:14 mr_stru 1514 Any idea what VIM uses this for? I switch back and forth between 1.8.7 and 1.9.3 so that's why I'm intereste
detected while processing: /usr/share/vim/vim70/ftplugin/perl.vim line 46: E484: Can't open file /tmp/v916556/0 Opening a ruby script I get: Error detected while processing: /usr/share/vim/vim70/ftplugin/ruby.vim line 73: E484: Can't open file /tmp/v916556/0 Additionally, I cannot open compressed txt files (.zip or .gz) within an interactive vim session (e.g. :help) nor from the command line (e.g. vim /usr/share/vim/vim70/doc/version4.txt.gz): " Info: $Id: ruby.vim,v 1.7 2006/05/05 21:14:00 vimboss Exp $ " URL: http://vim-ruby.rubyforge.org " Anon CVS: See above site " Release Coordinator: Doug Kearns <[EMAIL PROTECTED]> " ---------------------------------------------------------------------------- " " Original matchit support thanks to Ned Konz. See his ftplugin/ruby.vim at " http://bike-nomad.com/vim/ruby.vim. " ---------------------------------------------------------------------------- " Only do this when not done yet for this buffer if (exists("b:did_ftplugin")) finish endif let b:did_ftplugin = 1 let s:cpo_save = &cpo set cpo&vim " Matchit support if exists("loaded_matchit") && !exists("b:match_words") let b:match_ignorecase = 0 " TODO: improve optional do loops let b:match_words = \ '\%(' . \ '\%(\%(\.\|\:\:\)\s*\|\:\)\@' . \ '\|' . \ '\%(\%(^\|\.\.\.\=\|[\,;=([<>~\*/%!&^|+-]\)\s*\)\@<=\%(if\|unless\|until\|while\)\>' . \ '\)' . \ ':' . \ '\%(' . \ '\%(\%(\.\|\:\:\)\s*\|\:\)\@' . \ '\|' . \ '\%(\%(^\|;\)\s*\)\@<=\