Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Add an error message for the case fsautocomplete.exe is not built #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ftplugin/fsharpvim.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down