You are not logged in.

#1 2012-04-13 05:32:07

wes
Member
Registered: 2011-03-05
Posts: 67

Vim + python users: anyone have problems with Vim patch 495?

Hello.  Since the recent upgrade to Vim 7.3.495, I cannot invoke python from
Vim.  In 7.3.475, everything worked fine.  Here is a minimal example.  From
within vim,

:python print "hello"

Results in:

Vim: Caught deadly signal SEGV
Vim: Finished.
Segmentation fault

I reverted to 475, and all is well.  Anyway, before I make a fuss, can anyone
else confirm this issue with the latest Vim +python setup?  Just wanted to
make sure it wasn't something me-specific.  Thanks.

Offline

#2 2012-04-13 07:05:11

FreeTheBee
Member
Registered: 2011-01-02
Posts: 125

Re: Vim + python users: anyone have problems with Vim patch 495?

I hadn't noticed yet, but it doesn't work on my system either . I just get a segmentation fault.

[edit]On my laptop it works without problems[/edit]

Last edited by FreeTheBee (2012-04-13 07:13:17)

Offline

#3 2012-04-13 07:11:50

Atragor
Member
Registered: 2009-02-28
Posts: 59

Re: Vim + python users: anyone have problems with Vim patch 495?

I can confirm - it segfaults on 'print', but python code that doesn't print anything seems to work, e.g.:

:python vim.current.buffer.append('test')

appends 'test' to current buffer.

upd: the same version compiled via ABS also didn't work.

Last edited by Atragor (2012-04-13 07:26:58)

Offline

#4 2012-04-13 07:22:01

wes
Member
Registered: 2011-03-05
Posts: 67

Re: Vim + python users: anyone have problems with Vim patch 495?

Cool.  Thanks guys.  I'll find the right place and submit a bug report then.

Offline

#5 2012-04-13 12:44:00

nineinchnick
Member
From: Bialystok, Poland
Registered: 2010-11-14
Posts: 3

Re: Vim + python users: anyone have problems with Vim patch 495?

Could you post a link to the bug report if/after you submit it? I would like to track progress on this.
I debug PHP with vim and xdebug and I hate to keep vim in IgnorePkg in pacman.conf.

EDIT: Found it on VIM mailing list.

Last edited by nineinchnick (2012-04-13 12:59:28)

Offline

#6 2012-04-13 15:53:27

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: Vim + python users: anyone have problems with Vim patch 495?

nineinchnick wrote:

Could you post a link to the bug report if/after you submit it? I would like to track progress on this.
I debug PHP with vim and xdebug and I hate to keep vim in IgnorePkg in pacman.conf.

EDIT: Found it on VIM mailing list.

For others: https://groups.google.com/d/topic/vim_d … discussion


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#7 2012-04-13 19:28:07

wes
Member
Registered: 2011-03-05
Posts: 67

Re: Vim + python users: anyone have problems with Vim patch 495?

Could you post a link to the bug report if/after you submit it?

Sorry you had to dig it up on your own-  I meant to post it last night.

Offline

#8 2012-04-13 20:46:27

new
Member
Registered: 2012-04-13
Posts: 1

Re: Vim + python users: anyone have problems with Vim patch 495?

I am having the same issue on x86_64. Using the old 475 package works. However, recompiling 475 from source has the same issue as 495.

Offline

#9 2012-04-13 21:35:50

dohko
Member
Registered: 2011-09-24
Posts: 19

Re: Vim + python users: anyone have problems with Vim patch 495?

I compiled vim with python support yesterday and couldn't for the love of jebus understand why it was crashing when using python. This explains it all. I'm just a little bit curious, how do you archers install vim with python support?

Offline

#10 2012-04-13 22:21:31

guotsuan
Member
Registered: 2011-12-23
Posts: 4

Re: Vim + python users: anyone have problems with Vim patch 495?

I install vim with python support by " pacman -S gvim"

dohko wrote:

I compiled vim with python support yesterday and couldn't for the love of jebus understand why it was crashing when using python. This explains it all. I'm just a little bit curious, how do you archers install vim with python support?

Offline

#11 2012-04-19 19:36:43

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: Vim + python users: anyone have problems with Vim patch 495?

I figured out a way to avoid the segfault, you will have to rebuild vim from abs and apply the following patch to the PKGBUILD:
https://gist.github.com/2423572

I'm guessing this has something to do with arch's and vim's buildflags somehow not playing well together.

Offline

#12 2012-04-19 20:30:53

Awebb
Member
Registered: 2010-05-06
Posts: 6,272

Re: Vim + python users: anyone have problems with Vim patch 495?

I can't invoke python at all, it says "Sorry, the command is not available in this version".

Uhm...?

Last edited by Awebb (2012-04-19 20:32:18)

Online

#13 2012-04-19 21:15:22

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: Vim + python users: anyone have problems with Vim patch 495?

You need to use gvim. vim doesn't have python (or any other interpreter support except perl).

edit: I meant the package gvim

Last edited by tomd123 (2012-04-19 21:15:57)

Offline

#14 2012-04-19 22:59:48

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: Vim + python users: anyone have problems with Vim patch 495?

Even better, remove -O2 from CFLAGS and the crash doesn't happen. I'm guessing this has something to do with gcc 4.7.0 possibly

Edit: crashes with -O1 also..

Last edited by tomd123 (2012-04-19 23:16:18)

Offline

#15 2012-04-20 04:30:55

saline
Member
Registered: 2010-02-20
Posts: 86

Re: Vim + python users: anyone have problems with Vim patch 495?

tomd123 wrote:

I figured out a way to avoid the segfault, you will have to rebuild vim from abs and apply the following patch to the PKGBUILD:
https://gist.github.com/2423572

I'm guessing this has something to do with arch's and vim's buildflags somehow not playing well together.

This works with patch 496 and fixes python 3 support for me.  Thanks a lot.

Offline

#16 2012-04-20 12:35:22

FreeTheBee
Member
Registered: 2011-01-02
Posts: 125

Re: Vim + python users: anyone have problems with Vim patch 495?

Today's upgrade to vim 7.3.495-2 fixed this issue for me.

Offline

Board footer

Powered by FluxBB