megaannum / vimside

Vim Scala IDE (VimSIde) built upon ENSIME
150 stars 18 forks source link

Can't start vimside #24

Open newhoggy opened 10 years ago

newhoggy commented 10 years ago

Hi,

I get the following error when trying start ensime using \vs

Starting Ensime Engine ... Error detected while processing function vimside#command#StartEnsime..vimside#command#ensime#Start..vimside#StartEnsime..vimside#PreStart: line 16: E605: Exception not caught: Option Load Errors: ['Not a directory: ''''']

Thanks for your help.

newhoggy commented 10 years ago

Actually, I configured .vim/bundle/vimside/data/vimside/options_user.vim to point to ensime (after downloading and installing it) and it is working now.

It didn't work out of the box, I guess because I installed using pathogen and it could locate the ensime under bundle directory.

Thanks!

megaannum commented 10 years ago

What were you trying to communicate by sending this email? The contents is simply the file "example_options_user.vim". No options were enabled (un-commented), so it does nothing. Also, unless you copy it to the file "options_user.vim", it will not be read. Consider reading the comment at the top of the file.

On 10/05/2013 02:09 AM, newhoggy wrote:

"

" This file, example_options_user.vim will NOT be read by the Vimside " code. " To adjust option values, copy this file to a file called 'options_user.vim' " in the same dirctory (or into a directory "data/vimside/" in the " runtime-path (see :runtimepath), " and then make changes. A file with this name will only be sourced once " even if it appears in multiple location, local directory and runtime path.

"

" full path to this file let s:full_path=expand(':p')

" full path to this file's directory let s:full_dir=fnamemodify(s:full_path, ':h')

function! g:VimsideOptionsUserLoad(owner) let owner = a:owner

"-------------- " Enable logging " call owner.Set("ensime-log-enabled", 1) " call owner.Set("vimside-log-enabled", 1) "--------------

"-------------- " Output logs and ensime port file to local dir " If you start Vim is some project sub-directory, this will place " things in that directory (which may not be what you want). " call owner.Set("vimside-use-cwd-as-output-dir", 0) "--------------

"-------------- " Also load project specific options " call owner.Set("vimside-project-options-enabled", 1) " call owner.Set("vimside-project-options-file-name", "options_project.vim") "--------------

"-------------- " Defined Java versions: '1.5', '1.6', '1.7' " Defined Scala versions: '2.9.2', '2.10.0' " Minor version numbers not needed " Scala version MUST match 'ensime-dist-dir' used. " call owner.Set("vimside-java-version", "1.6") " call owner.Set("vimside-scala-version", "2.9.2") "--------------

"-------------- " Where is Ensime installed " call owner.Set("ensime-install-path", $HOME . "/.vim/vim-addons/ensime") " call owner.Set("ensime-install-path", $HOME . "/vimfiles/vim-addons/ensime")

" Which build version of Ensime to use. " Must be directory under 'ensime-install-path' directory " call owner.Set("ensime-dist-dir", "ensime_2.9.2-0.9.8.9") " call owner.Set("ensime-dist-dir", "ensime_2.10.0-0.9.8.9")

" Or, full path to Ensime build version " call owner.Set("ensime-dist-path", "SOME_PATH_TO_ENSIME_BUILD_DIR") "--------------

"-------------- " The Ensime Config information is in a file called 'ensime_config.vim' " call owner.Set("ensime-config-file-name", "ensime_config.vim") "--------------

"-------------- " To run against one of your own projects " The Ensime Config information is in a file called '/ensime' " Emacs Ensime calls the file '.ensime' - you can call it " whatever you want as long as you set its name here. " call owner.Set("ensime-config-file-name", "/ensime") "--------------

"-------------- " Vimside uses Forms library " call owner.Set("forms-use", 1) "--------------

"-------------- " Open source brower in its own tab " call owner.Set("tailor-forms-sourcebrowser-open-in-tab", 1) "--------------

"-------------- " Hover Options " call owner.Set("vimside-hover-balloon-enabled", 1) " call owner.Set("vimside-hover-term-balloon-enabled", 1) " call owner.Set("tailor-hover-term-balloon-fg", "red") " call owner.Set("tailor-hover-term-balloon-bg", "white") " " The following Hover Options should normally not be changed " call owner.Set("tailor-hover-updatetime", 600) " one character and hover move triggered " call owner.Set("tailor-hover-max-char-mcounter", 0) " call owner.Set("tailor-hover-cmdline-job-time", 300) " call owner.Set("tailor-hover-term-job-time", 300) "--------------

"-------------- " Selection using 'highlight' or 'visual' " call owner.Set("tailor-expand-selection-information", 'visual') "--------------

"-------------- " Search options " call owner.Set("tailor-symbol-search-do-incremental", 0) " call owner.Set("tailor-symbol-search-close-empty-display", 1) " call owner.Set("tailor-symbol-search-maximum-return", 50) "--------------

"-------------- " Re-order which unix browser command to try first " call owner.Set("tailor-browser-unix-commands", ['firefox', 'xdg-open', 'opera']) "--------------

"-------------- " Typecheck file on write " call owner.Set('tailor-type-check-file-on-write', 0) "--------------

"-------------- " Refactor rename, extract local and extract metod " call owner.Set('tailor-refactor-rename-pattern-enable', 1) " call owner.Set('tailor-refactor-rename-pattern', '[^ =:;()[]]+') " call owner.Set('tailor-refactor-extract-local-pattern-enable', 1) " call owner.Set('tailor-refactor-extract-local-pattern', '[^ =:;()[]]+') " call owner.Set('tailor-refactor-extract-method-pattern-enable', 1) " call owner.Set('tailor-refactor-extract-method-pattern', '[^ =:;()[]]+') "--------------

" call owner.Set("tailor-symbol-at-point-location-same-file", "same_window.vim") " call owner.Set("tailor-symbol-at-point-location-same-file", "split_window.vim") " call owner.Set("tailor-symbol-at-point-location-same-file", "vsplit_window.vim")

" call owner.Set("tailor-symbol-at-point-location-diff-file", "same_window.vim") " call owner.Set("tailor-symbol-at-point-location-diff-file", "split_window.vim") " call owner.Set("tailor-symbol-at-point-location-diff-file", "vsplit_window.vim") " call owner.Set("tailor-symbol-at-point-location-diff-file", "tab")

" call owner.Set("tailor-uses-of-symbol-at-point-location", "same_window") " call owner.Set("tailor-uses-of-symbol-at-point-location", "split_window") " call owner.Set("tailor-uses-of-symbol-at-point-location", "vsplit_window") " call owner.Set("tailor-uses-of-symbol-at-point-location", "tab")

" call owner.Set("tailor-repl-config-location", "same_window") " call owner.Set("tailor-repl-config-location", "split_window") " call owner.Set("tailor-repl-config-location", "vsplit_window") " call owner.Set("tailor-repl-config-location", "tab") " " call owner.Set("tailor-sbt-config-location", "same_window") " call owner.Set("tailor-sbt-config-location", "split_window") " call owner.Set("tailor-sbt-config-location", "vsplit_window") " call owner.Set("tailor-sbt-config-location", "tab") " " call owner.Set("tailor-sbt-use-signs", "0")

" call owner.Set("tailor-show-errors-and-warnings-use-signs", '0') " call owner.Set("tailor-full-typecheck-finished-use-signs", '0') " call owner.Set("tailor-uses-of-symbol-at-point-use-signs", '0')

"-------------- " Sign Option tailoring " " call owner.Set('sign-quickfix-error-linehl', 'Error') " call owner.Set('sign-quickfix-error-text', 'E>') " call owner.Set('sign-quickfix-error-texthl', 'Todo') " call owner.Set('sign-quickfix-warn-linehl', 'StatusLine') " call owner.Set('sign-quickfix-warn-text', 'W>') " call owner.Set('sign-quickfix-warn-texthl', 'Todo') " " call owner.Set('sign-quickfix-info-linehl', 'DiffAdd') " call owner.Set('sign-quickfix-info-text', 'I>') " call owner.Set('sign-quickfix-info-texthl', 'TODO') " " call owner.Set('sign-quickfix-marker-linehl', 'Search') " call owner.Set('sign-quickfix-marker-text', 'M>') " call owner.Set('sign-quickfix-marker-texthl', 'Ignore') " " call owner.Set('sign-locationlist-info-linehl', 'DiffAdd') " call owner.Set('sign-locationlist-info-text', 'I>') " call owner.Set('sign-locationlist-info-texthl', 'TODO') " " call owner.Set('sign-locationlist-marker-linehl', 'Search') " call owner.Set('sign-locationlist-marker-text', 'M>') " call owner.Set('sign-locationlist-marker-texthl', 'Ignore') " " call owner.Set('sign-debug-active-linehl', 'DiffText') " call owner.Set('sign-debug-active-text', 'A>') " call owner.Set('sign-debug-active-texthl', 'SpellCap') " " call owner.Set('sign-debug-pending-linehl', 'DiffAdd') " call owner.Set('sign-debug-pending-text', 'P>') " call owner.Set('sign-debug-pending-texthl', 'DiffDelete') " " call owner.Set('sign-debug-marker-linehl', 'Search') " call owner.Set('sign-debug-marker-text', 'M>') " call owner.Set('sign-debug-marker-texthl', 'Ignore') "--------------

endfunction

— Reply to this email directly or view it on GitHub https://github.com/megaannum/vimside/issues/24#issuecomment-25744817.

Quis custodiet ipsos custodes

megaannum commented 10 years ago

You don't seem to have configured Vimside. With the current release, Vimside first looks for a file called "vimside.properties" in the $HOME/.vim/data/vimside directory.

My vimside.properties file has:

tailor.browser.unix.commands=['firefox', 'xdg-open', 'opera'] vimside.project.properties.enabled=1 vimside.project.properties.file.name='project.properties' tailor.uses.of.symbol.at.point.location="split_window" tailor.repl.config.location=split_window

Then in the example directory, $HOME/.vim/data/vimside/projects/simple

I have a project.properties file (which I defined in the vimside.properties file) which has:

--------------

Enable logging

ensime.log.enabled=1 vimside.log.enabled=1

--------------

--------------

Defined Java versions: '1.5', '1.6', '1.7'

Defined Scala versions: '2.9.2', '2.10.0'

Minor version numbers not needed

Scala version MUST match 'ensime.dist.dir' used.

vimside.java.version="1.7" vimside.scala.version="2.10.0"

--------------

--------------

Which build version of Ensime to use.

ensime.dist.dir="ensime_2.10.0-0.9.8.9"

--------------

--------------

The Ensime Config information is in a file called 'ensime_config.vim'

ensime.config.file.name=ensime_config.vim

--------------

--------------

Vimside uses Forms library

forms.use=1

--------------

--------------

Hover Options

vimside.hover.balloon.enabled=0 vimside.hover.term.balloon.enabled=0

--------------

You have to make sure all of the settings agree with whats in your environment, e.g., Scala,Java and Ensime version, do you have the "forms" plugin installed (not needed to run Vimside), etc.

On 10/05/2013 02:14 AM, newhoggy wrote:

INFO: vimside#options#manager: s:full_path=/Users/joky/.vim/bundle/vimside/autoload/vimside/options/manager.vim INFO: vimside#options#manager: s:full_dir=/Users/joky/.vim/bundle/vimside/autoload/vimside/options INFO: vimside#options#manager: s:data_vimside_dir=/Users/joky/.vim/bundle/vimside/data/vimside/ INFO: vimside#options#manager#Load: TOP INFO: vimside#options#manager#LoadUser: TOP INFO: vimside#options#manager#LoadUser: UserOptionsFile l:tmpfile=/Users/joky/.vim/bundle/vimside/data/vimside//options_user.vim INFO: vimside#options#manager#LoadUser: UserOptionsFile sourcing=/Users/joky/.vim/bundle/vimside/data/vimside//options_user.vim INFO: vimside#options#manager#LoadUser: UserPropertiesFile l:tmpfile=/Users/joky/.vim/bundle/vimside/data/vimside//vimside.properties INFO: vimside#options#manager#LoadUser: UserPropertiesFile l:files=[] INFO: vimside#options#manager#LoadUser: BOTTOM INFO: vimside#options#manager#LoadProject: TOP INFO: vimside#options#manager#LoadProject: look_local=0 INFO: vimside#options#manager#LoadProject: look_local=1 INFO: vimside#options#manager#LoadProject: ProjectPropertiesFile l:file_name=project.properties INFO: vimside#options#manager#LoadProject: ProjectPropertiesFile dir=/Users/joky/GoCatch/gcs2 INFO: vimside#options#manager#LoadProject: ProjectPropertiesFile l:tmp_file=/Users/joky/GoCatch/gcs2/project.properties INFO: vimside#options#manager#LoadProject: ProjectPropertiesFile up one dir=/Users/joky/GoCatch INFO: vimside#options#manager#LoadProject: ProjectPropertiesFile l:tmp_file=/Users/joky/GoCatch/project.properties INFO: vimside#options#manager#LoadProject: ProjectPropertiesFile up one dir=/Users/joky INFO: vimside#options#manager#LoadProject: ProjectPropertiesFile l:tmp_file=/Users/joky/project.properties INFO: vimside#options#manager#LoadProject: ProjectPropertiesFile up one dir=/Users INFO: vimside#options#manager#LoadProject: ProjectPropertiesFile l:tmp_file=/Users/project.properties INFO: vimside#options#manager#LoadProject: ProjectPropertiesFile up one dir=/ INFO: vimside#options#manager#LoadProject: BOTTOM INFO: vimside#options#manager#Load: ensime-config-file-name=.ensime INFO: vimside#options#manager#Load: dir=/Users/joky/GoCatch/gcs2 INFO: vimside#options#manager#Load: l:tmp_config_file=/Users/joky/GoCatch/gcs2/.ensime INFO: vimside#options#manager#Load: l:ensime_config_file=/Users/joky/GoCatch/gcs2/.ensime INFO: vimside#options#manager#Load: l:ensime_config_dir=/Users/joky/GoCatch/gcs2 INFO: vimside#options#manager#Load: got_ensime_dir=0j

— Reply to this email directly or view it on GitHub https://github.com/megaannum/vimside/issues/24#issuecomment-25744888.

Quis custodiet ipsos custodes

svenski commented 10 years ago

FYI, I had the same issues as newhoggy, using pathogen.