Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when quit vim #8

Open
rohdef opened this issue Oct 24, 2011 · 0 comments
Open

error when quit vim #8

rohdef opened this issue Oct 24, 2011 · 0 comments

Comments

@rohdef
Copy link
Owner

rohdef commented Oct 24, 2011

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 project member orestis, Nov 3, 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant