diff --git a/ftplugin/fsharpvim.py b/ftplugin/fsharpvim.py index db0335a..8f76f9f 100644 --- a/ftplugin/fsharpvim.py +++ b/ftplugin/fsharpvim.py @@ -66,7 +66,11 @@ def __init__(self, dir, debug = False): else: self.logfile = None - command = ['mono', dir + '/bin/fsautocomplete.exe'] + fsautocomplete = dir + '/bin/fsautocomplete.exe' + if not path.exists(fsautocomplete): + msg = 'fsautocomplete.exe is not found: Did you build it with "make fsautocomplete"?' + raise FileNotFoundError(msg) + command = ['mono', fsautocomplete] opts = { 'stdin': PIPE, 'stdout': PIPE, 'stderr': PIPE, 'universal_newlines': True } hidewin.addopt(opts) try: