I generally start an editing session in the source directory, not the root project
directory. Currently, the :Envim command looks for the .ensime file in the
current directory. With this patch to VimHelpers.py :
def getEnsimeConfigFile():
if not os.path.isfile(configFile):
# todo: set a variable and add a function so to be able to restart connection-info
echoe("Ensime configuration file (%s) doest not exist" % (configFile))
return None
return configFile
It will start looking in the current directory and then if not found walk up the
parent directories looking for the .ensime file.
I've never written any python so there might be a better way to do this so
this is a proof of concept patch only (but it seems to work).
I generally start an editing session in the source directory, not the root project directory. Currently, the :Envim command looks for the .ensime file in the current directory. With this patch to VimHelpers.py : def getEnsimeConfigFile():
configFile = os.getcwd() + '/' + '.ensime'
It will start looking in the current directory and then if not found walk up the parent directories looking for the .ensime file. I've never written any python so there might be a better way to do this so this is a proof of concept patch only (but it seems to work).