From be113051b2d3c98f64175750400da1aee09df975 Mon Sep 17 00:00:00 2001 From: Paolo Viotti Date: Sun, 22 Nov 2020 12:24:13 +0000 Subject: [PATCH] fix: allow spaces in fsi path, to support dotnet cli fsi --- ftplugin/fsi.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ftplugin/fsi.py b/ftplugin/fsi.py index 05db717..98b976b 100644 --- a/ftplugin/fsi.py +++ b/ftplugin/fsi.py @@ -18,7 +18,10 @@ def __init__(self, fsi_path, is_debug = False): #self.logfiledir = tempfile.gettempdir() + "/log.txt" #self.logfile = open(self.logfiledir, "w") id = 'vim-' + str(uuid.uuid4()) - command = [fsi_path, '--fsi-server:%s' % id, '--nologo'] + if " " in fsi_path.strip(): + command = fsi_path.split() + ['--fsi-server:%s' % id, '--nologo'] + else: + command = [fsi_path, '--fsi-server:%s' % id, '--nologo'] opts = { 'stdin': PIPE, 'stdout': PIPE, 'stderr': PIPE, 'shell': False, 'universal_newlines': True } hidewin.addopt(opts)