From b7fee30f0acd724d4a39e4cbc461685328843a85 Mon Sep 17 00:00:00 2001 From: Karl Harris Date: Tue, 15 May 2012 23:15:11 +2000 Subject: [PATCH] Re: [ANN] New awesome vim plug-in using Ruby bindings --- f0/2be25cf1c43b5da10d692b7d517cd33f3049ff | 221 ++++++++++++++++++++++ 1 file changed, 221 insertions(+) create mode 100644 f0/2be25cf1c43b5da10d692b7d517cd33f3049ff diff --git a/f0/2be25cf1c43b5da10d692b7d517cd33f3049ff b/f0/2be25cf1c43b5da10d692b7d517cd33f3049ff new file mode 100644 index 000000000..3594051fa --- /dev/null +++ b/f0/2be25cf1c43b5da10d692b7d517cd33f3049ff @@ -0,0 +1,221 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id E3C41431FBC + for ; Mon, 14 May 2012 20:15:15 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.202 +X-Spam-Level: +X-Spam-Status: No, score=0.202 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, + RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id sgKz7onAfntv for ; + Mon, 14 May 2012 20:15:13 -0700 (PDT) +Received: from mail-qa0-f46.google.com (mail-qa0-f46.google.com + [209.85.216.46]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 6DB72431FAE + for ; Mon, 14 May 2012 20:15:13 -0700 (PDT) +Received: by qadb17 with SMTP id b17so4214071qad.5 + for ; Mon, 14 May 2012 20:15:11 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=mime-version:in-reply-to:references:date:message-id:subject:from:to + :cc:content-type; + bh=3Q/RB4zCpyFXkt3QoAzr3yuSr2Niqs3o969KcebMpqA=; + b=teq3xbOT2bzblC58FS9ElThAU5FF5sEzf420+KZzOF67uJ03OG4nULE3tqqHbfhYpI + EsT5cSKgONZImxtNcqio8rgzgwQ0k6D1L//gek151i9Xdi5Ta6vt33BUYtj+HjnDTH4n + r1difHGlCLPgX+gwp6jV1oHNyuDkIUo8L5LduMOYB0N3rHblkvrzKN22RYUqfL3DTbET + U0J38uWl2Bla/wN/BubrhPkyMIgp1CYuWeQNHsLUmpibs4hkdicWaDIzrIWRBMOQDb3n + Rg74UFRKPBeg99jHFWF6t7ig4o/QeEm1WY7m0hw5fDElAKvx7jXvhyH9p+YPaxISixGU + KXKg== +MIME-Version: 1.0 +Received: by 10.229.102.73 with SMTP id f9mr5288514qco.103.1337051711394; Mon, + 14 May 2012 20:15:11 -0700 (PDT) +Received: by 10.229.40.15 with HTTP; Mon, 14 May 2012 20:15:11 -0700 (PDT) +In-Reply-To: + +References: + + + + + <4f9c74ab68286_450548f4be452313@hasse.mail> + +Date: Mon, 14 May 2012 23:15:11 -0400 +Message-ID: + +Subject: Re: [ANN] New awesome vim plug-in using Ruby bindings +From: Karl Harris +To: Felipe Contreras +Content-Type: multipart/alternative; boundary=002354471dd84dd38504c00a9cf5 +Cc: notmuch@notmuchmail.org +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 15 May 2012 03:15:16 -0000 + +--002354471dd84dd38504c00a9cf5 +Content-Type: text/plain; charset=ISO-8859-1 + +I am trying the notmuch-vim-ruby plugin for the first time. Previously, I +had been using the vim plugin that comes with notmuch. + +If I type :NotMuchR in vim, I get the following error messages: +------------------ +Error detected while processing function 19_NotMuchR: +line 304: +LoadError: /usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/notmuch.so: undefined +symbol: _ZTVN10__cxxabiv117__class_type_infoE - +/usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/no +tmuch.so +Error detected while processing function +19_NotMuchR..19_folders..19_new_buffer: +line 6: +NoMethodError: undefined method `push' for nil:NilClass +Error detected while processing function 19_NotMuchR..19_folders: +line 2: +NoMethodError: undefined method `folders_render' for main:Object +------------- + +Can anyone point me in the direction of where to start troubleshooting +this? In the past, I have had issues in other ruby applications that dealt +with ruby versions. Could this be an issue? + +TIA + +On Mon, May 14, 2012 at 2:24 PM, Felipe Contreras < +felipe.contreras@gmail.com> wrote: + +> On Sun, Apr 29, 2012 at 12:52 AM, Alex Ghitza wrote: +> > Felipe Contreras wrote: +> >> > vim -c ':NotMuchR' +> >> > +> >> > all I get is an error message: +> >> > +> >> > Error detected while processing command line: +> >> > E492: Not an editor command: :NotMuchR +> >> +> >> I don't know if you did anything special to get the normal plug-in to +> >> work. Maybe you are doing 'source ~/.vim/plugin/notmuch.vim' directly +> >> in your .vimrc, if so, you can try to do the same with notmuch vim +> >> ruby. What I have is 'filetype plugin on'. +> > +> > After banging my head against the wall a bit more, I realised what +> > should have been obvious from the beginning: I need to have vim built +> > with ruby support. So after grabbing the vim source and +> > +> > ./configure --enable-rubyinterp +> > +> > I am now happily writing this from notmuch-ruby. As obvious as this +> > should have been, do you think it deserves a short sentence at the top +> > of the == install == section of your README? +> +> All right, done :) +> +> -- +> Felipe Contreras +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> http://notmuchmail.org/mailman/listinfo/notmuch +> + + + +-- +Karl Harris + +--002354471dd84dd38504c00a9cf5 +Content-Type: text/html; charset=ISO-8859-1 +Content-Transfer-Encoding: quoted-printable + +I am trying the notmuch-vim-ruby plugin for the first time.=A0 Previously, = +I had been using the vim plugin that comes with notmuch.

If I type := +NotMuchR in vim, I get the following error messages:
------------------<= +br> + +Error detected while processing function <SNR>19_NotMuchR:
line=A0= + 304:
LoadError: /usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/notmuch.so: = +undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE - /usr/lib/ruby/sit= +e_ruby/1.9.1/x86_64-linux/no
+ +tmuch.so
Error detected while processing function <SNR>19_NotMuchR= +..<SNR>19_folders..<SNR>19_new_buffer:
line=A0=A0=A0 6:
N= +oMethodError: undefined method `push' for nil:NilClass
Error detecte= +d while processing function <SNR>19_NotMuchR..<SNR>19_folders:<= +br> + +line=A0=A0=A0 2:
NoMethodError: undefined method `folders_render' fo= +r main:Object
-------------

Can anyone point me in the direction = +of where to start troubleshooting this?=A0 In the past, I have had issues i= +n other ruby applications that dealt with ruby versions.=A0 Could this be a= +n issue?
+ +
TIA

On Mon, May 14, 2012 at 2:24 PM, = +Felipe Contreras <felipe.contreras@gmail.com> wrote= +:
+ +
On Sun, Apr 29, 2012 at 12:52 AM, Alex = +Ghitza <aghitza@g= +mail.com> wrote:
+ + +> Felipe Contreras wrote:
+>> > vim -c ':NotMuchR'
+>> >
+>> > all I get is an error message:
+>> >
+>> > Error detected while processing command line:
+>> > E492: Not an editor command: :NotMuchR
+>>
+>> I don't know if you did anything special to get the normal plu= +g-in to
+>> work. Maybe you are doing 'source ~/.vim/plugin/notmuch.vim= +9; directly
+>> in your .vimrc, if so, you can try to do the same with notmuch vim= +
+>> ruby. What I have is 'filetype plugin on'.
+>
+> After banging my head against the wall a bit more, I realised what
+> should have been obvious from the beginning: I need to have vim built<= +br> +> with ruby support. =A0So after grabbing the vim source and
+>
+> =A0 =A0./configure --enable-rubyinterp
+>
+> I am now happily writing this from notmuch-ruby. =A0As obvious as this= +
+> should have been, do you think it deserves a short sentence at the top= +
+> of the =3D=3D install =3D=3D section of your README?
+
+
All right, done :)
+
+--
+Felipe Contreras
+
_______________________________________________
+notmuch mailing list
+notmuch@notmuc= +hmail.org
+http://notmuchmail.org/mailman/listinfo/notmuch
+



--
Karl Harris= +

+ +--002354471dd84dd38504c00a9cf5-- -- 2.26.2