From 2b8ee37bf55f83db85da7436efbc46c325850af0 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Fri, 25 Oct 2013 13:11:13 -0700 Subject: [PATCH] ycmd uses a random free port when running vim-free Previously the default was 6666, which was temporary. --- python/ycm/server/ycmd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/ycm/server/ycmd.py b/python/ycm/server/ycmd.py index 07d34d68..c45fb871 100755 --- a/python/ycm/server/ycmd.py +++ b/python/ycm/server/ycmd.py @@ -51,7 +51,8 @@ def Main(): parser = argparse.ArgumentParser() parser.add_argument( '--host', type = str, default = 'localhost', help = 'server hostname') - parser.add_argument( '--port', type = int, default = 6666, + # Default of 0 will make the OS pick a free port for us + parser.add_argument( '--port', type = int, default = 0, help = 'server port') parser.add_argument( '--log', type = str, default = 'info', help = 'log level, one of '