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

Using "vim_server_script = vim" doesn't work correctly #7

Open
pietrushnic opened this issue Sep 23, 2011 · 5 comments
Open

Using "vim_server_script = vim" doesn't work correctly #7

pietrushnic opened this issue Sep 23, 2011 · 5 comments

Comments

@pietrushnic
Copy link

I try to use vimpdb on remote system through ssh connection . My ~/.vimpdbrc:
[vimpdb]
vim_client_script = vim
vim_server_script = vim
server_name = VIM
port = 6666

I set breakpoint in one of my project files and run project main file, when execution hit breakpoint new vim was launched but there is no code to debugging only vim welcome screen. When I try to quit vim using :q after short delay I got this python trace (I changed paths):

Runtime Exception caugth 'VIM' server name not available in server list:

Traceback (most recent call last):
File "src/main.py", line 62, in
exitStatus = app.RunApp(sys.argv)
File "/path/to/my/project/src/application.py", line 308, in RunApp
import vimpdb; vimpdb.set_trace()
File "/path/to/home/dir/lib/python2.7/site-packages/vimpdb-0.4.5-py2.7.egg/vimpdb/debugger.py", line 213, in set_trace
instance = make_instance()
File "/path/to/home/dir/lib/python2.7/site-packages/vimpdb-0.4.5-py2.7.egg/vimpdb/debugger.py", line 201, in make_instance
configuration = config.getConfiguration()
File "/path/to/home/dir/lib/python2.7/site-packages/vimpdb-0.4.5-py2.7.egg/vimpdb/config.py", line 105, in getConfiguration
Detector(config).check_serverlist()
File "/path/to/home/dir/lib/python2.7/site-packages/vimpdb-0.4.5-py2.7.egg/vimpdb/config.py", line 285, in check_serverlist
raise ValueError(msg % (self.server_name, serverlist))
ValueError: 'VIM' server name not available in server list:

Looks like server didn't start correctly. Is it possible to use vim editor (not gvim) as client and server with vimpdb module ?
My vimpdb module was installed in my $HOME directory /path/to/home/dir.

@awsong
Copy link

awsong commented Aug 29, 2013

Got the same issue. Did you resolve this problem?

@lemonzi
Copy link

lemonzi commented Jan 27, 2016

Same here. After manually opening a vim server named VIM, I got the same as in #14.

@jontrainor
Copy link

jontrainor commented Feb 13, 2017

l had something similar to this. vimpdb was spinning up a vim server named VIM1 even when I specified the server should be called VIM in the vimpdbrc file. I worked around that quirk by just specifying a unique server name in the vimpdbrc like this and it fixed this issue for me.

 [vimpdb]
 vim_client_script = mvim
 vim_server_script = mvim --servername VIMPDB-SERVER
 server_name = VIMPDB-SERVER
 port = 6666

@gotcha
Copy link
Owner

gotcha commented Feb 19, 2017

@jontrainor Would you mind adding some documentation ?

@jontrainor
Copy link

I would be happy to but I think this might be a very specific case. I actually have no idea what is stealing the default "VIM" server name on my machine. What I could do is change the defaults to specify a unique server name like "VIMPDB-SERVER" to avoid this issue all together. What do you think about that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants