My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 12: error when quit vim
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by jaxiinofea, Nov 02, 2008
What steps will reproduce the problem?
1. invoke pysmell in vim;
2a. unsave file, and quit vim;
2b. save file, and quit vim;

What is the expected output? What do you see instead?
i got:
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.5/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib/python2.5/logging/__init__.py", line 1354, in shutdown
    h.flush()
  File "/usr/lib/python2.5/logging/__init__.py", line 731, in flush
    self.stream.flush()
AttributeError: flush
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.5/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib/python2.5/logging/__init__.py", line 1354, in shutdown
    h.flush()
  File "/usr/lib/python2.5/logging/__init__.py", line 731, in flush
    self.stream.flush()
AttributeError: flush

What version of the product are you using? On what operating system?
I use pysmell-0.7. My box is ubuntu 8.10, vim is installed default, version
number is 7.1.314.

Comment 1 by orestis, Nov 03, 2008
This doesn't look like a pysmell bug - more like a Vim-python integration bug. PySmell doesn't register any 
atexit functions. Could you try removing pysmell.vim from your plugins, and do any kind of python invocation 
from inside Vim? Something like:

:python import sys; print sys.path

And see if you get the same behaviour?

I would then try

:python import pysmell

And quit, just to see if it's a side effect I don't know about...
Sign in to add a comment

Hosted by Google Code