Ticket #70 (new defect)

Opened 2 months ago

Last modified 2 months ago

TWServer XX gives an error

Reported by: vimtracuser Assigned to: michael
Priority: major Milestone:
Component: General Version:
Keywords: Cc: JensNeuhalfen@gmx.de

Description

I am using MacVim?, which in turn includes

VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Sep 26 2008 20:27:39)
MacOS X (unix) version
Included patches: 1-22

When I call

TWServer PG I get the follwing error:

Traceback (most recent call last):
  File "<string>", line 1, in ?
NameError: name 'trac' is not defined

Any idea?

Change History

11/20/08 13:42:51 changed by michael

Note: I haven't tested this plugin on version 7.2 of vim, only terminal 7.0 and gvim 7.1

the trac variable should be defined by the trac_init() function at the bottom of the trac.vim file. Either that function is not being called or theres some namespace/scope issue that needs to be resolved. So try this...

Assuming there are no other error messages on startup.

    :python trac_init()
    :python print trac
    <__main__.Trac instance at 0xb72fccac>

There might be change of the python interpreters scope so perhaps try this

 :python global foo_bar
 :python foo_bar = 42
 :python print foo_bar
 42

Other than that I'm not sure. Please update if you find anything out.