New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to start using vimside #23
Comments
First, enable logging call owner.Set("ensime-log-enabled", 1) and see whats in the log file. On 07/27/2013 11:48 PM, Cheong Chung Onn wrote:
Quis custodiet ipsos custodes |
Hi Richard, I enabled logging as per your suggestion. Also I ran the start ensime command manually - vimside#StartEnsime(). Ensime does not seems to able to find the Ensime server port file. Below is the output from vim, VIMSIDE_LOG file and a snippet of options_user.vim I looked through the past issue #18 which reported a similar situation however the problem disappears after he enabled logging. I am using the Simple project $HOME/.vim/bundle/vimside/data/vimside/projects/simple. Thanks for looking into my problem. Error from VimStarting Ensime Engine ... VIMSIDE_LOGINFO: 20130729-111050: vimside#StartEnsime after vimside#PreStart Snippet of options_user.vim file" ============================================================================ " full path to this file " full path to this file's directory function! g:VimsideOptionsUserLoad(owner) "-------------- "-------------- "-------------- "-------------- "-------------- " Which build version of Ensime to use. " Or, full path to Ensime build version "-------------- |
Vimside calls the Ensime start script called Try to start the Ensime server by had, i.e.:
and see if the port file is created. Also, in the plugin/vimside.vim file near the bottom let g:Vimside_Enable_Pre_Initialization_Logging = 0 If you change this to: let g:Vimside_Enable_Pre_Initialization_Logging = 1 then a log file called "VIMSIDE_EARLY_LOG" is Richard On 07/28/2013 10:17 PM, Cheong Chung Onn wrote:
Quis custodiet ipsos custodes |
HI Richard, Thanks for the tip. Please find my response below. On Jul 30, 2013, at 7:47 AM, Richard Emberson wrote:
I need to run the server in the installed folder instead of the bin folder else I will get an error. I managed to start the server and the _ensime_port file is created in the simple project folder, here is the command - bin/server /Users/chungonn/.vim/bundle/vimside/data/vimside/projects/simple/_ensime_port Output from the consoleStarting up Ensime... I think that my options_user.vim is not properly set, here is my options_user.vim file setup. I have to invoke the ensime server using bin/server, how do I set that in the options_user.vim file? "-------------- "-------------- " Which build version of Ensime to use. " Or, full path to Ensime build version "-------------- "--------------
Will try this later. Thanks for the help. Much appreciated. Regards |
Hi Richard, Here's the VIM_EARLY_LOG file. Btw, I am now starting ensime using "\vs", I commented out as I believe is because of the conflict in MacVIM key mapping. INFO: vimside#options#manager: s:full_path=/Users/chungonn/.vim/bundle/vimside/autoload/vimside/options/manager.vim On Jul 30, 2013, at 7:47 AM, Richard Emberson wrote:
|
Can you compare the output from Ensime when you Vimside give Ensime a certain time before it When Vimside announces that Ensime did not start There is a property "ensime-port-file-max-wait" which Richard On 07/29/2013 05:21 PM, Cheong Chung Onn wrote:
Quis custodiet ipsos custodes |
Hi Richard, When I start the server manually, I can see the _ensime_port file created immediately on the project folder and I can see the "Server" process running. However, I am not able to start the server from VIM, also I have increased the wait time to 15 secs. I added a 2 diagnostic messages in autoload/vimside.vim to print out the command for invoking Ensime server and waiting for the Ensime server (see output below). The command seeks ok, and I tried to execute it manually in a terminal and it works, however it does not seems to be able to invoke within VIM. Below is the output from the VIM console Starting Ensime Engine ... |
Try this. Enter the following on the command line: :execute 'silent ! cd See if Ensime starts. cd /Users/chungonn/.vim/vim-addons/ensime/ensime_2.10.0-0.9.8.9 && The port file argument should NOT be in qoutes! Richard On 07/29/2013 11:01 PM, Cheong Chung Onn wrote:
Quis custodiet ipsos custodes |
Hi Richard, Thanks for helping out on this. I followed your instructions and it seems that the ensime server can't write to the file :!cd /Users/chungonn/.vim/vim-addons/ensime/ensime_2.10.0-0.9.8.9 && ./bin/server /User/chungonn/.vim/bundle/vimside/data/vimside/projects/simple/_ensime_port shell returned 255 On Jul 30, 2013, at 8:21 PM, Richard Emberson wrote:
|
Hi Richard, Goto ensime running, please find the output below. There was a typo in the script earlier. :!cd /Users/chungonn/.vim/vim-addons/ensime/ensime_2.10.0-0.9.8.9 && ./bin/server /Users/chungonn/.vim/bundle/vimside/data/vimside/projects/simple/_ensime_port On Jul 30, 2013, at 8:21 PM, Richard Emberson wrote:
|
Hi Richard, I tried remove shellEscape(portfile) and it removed the single quote from the portfile path, however it still could not start the ensime server. However, if i manually invoke this path in either VIM and in the terminal it works. Regards On Jul 30, 2013, at 8:21 PM, Richard Emberson wrote:
|
Hi Richard, I found the source of the problem. It is because of the syntax error in the autoloa/vimside.vim script in line 394, see below. It should be &> instead of &>>
Regards On Jul 30, 2013, at 8:21 PM, Richard Emberson wrote:
|
What shell do you use? echo "hi" &>> XXX works with bash. On 07/30/2013 07:56 AM, Cheong Chung Onn wrote:
Quis custodiet ipsos custodes |
Am using bash. I suppose Macvim spawns a bash shell. I will confirm it later Sent from Samsung Galaxy Note -------- Original message -------- What shell do you use? echo "hi" &>> XXX works with bash. On 07/30/2013 07:56 AM, Cheong Chung Onn wrote:
Quis custodiet ipsos custodes |
I ran within macvim - using => read !echo "hi" &>> XXX and I got this. HTH /bin/bash: -c: line 0: syntax error near unexpected token shell returned 2 E485: Can't read file /var/folders/xr/74pt47tx18g1f0kdtv575yl40000gp/T/vAIxaXS/1 On Jul 31, 2013, at 7:04 AM, Richard Emberson wrote:
|
The intent is to append to the existing log file On 07/30/2013 04:48 PM, Cheong Chung Onn wrote:
Quis custodiet ipsos custodes |
I did thought about having a switch to accommodate 'macvim' problem however I managed to find this which has the same problem i encountered and with the solution :) http://stackoverflow.com/questions/876239/bash-redirect-and-append-both-stdout-and-stderr On Jul 31, 2013, at 7:56 AM, Richard Emberson wrote:
|
I am surprised that my bash is version 3.2.48(1)-release and that is the problem... I am using OSX Lion upgraded from Snow Leopard On Jul 31, 2013, at 7:56 AM, Richard Emberson wrote:
|
Hi Richard, I am trying to upgrade my bash to version 4.2 now. I suggest you stay with your current implementation and put a cautionary note to this issue. Regards On Jul 31, 2013, at 7:56 AM, Richard Emberson wrote:
|
@chungonn , I don't think that's necessary. Rather, the And yes, Mac OS is notorious for having older unix tools. Homebrew helps, but upgrading bash is not something most people are going to want to do. It would hurt vimside adoption to require bash 4.x. BTW, |
Yes I have upgraded to bash 4.2. I have suggested that a cautionary note be placed to alert the unwary ones esp. those using macvim. On Jul 31, 2013, at 10:01 AM, justinmk wrote:
|
Again, upgrading to bash 4.x is not necessary. See my previous comment. It just requires that bash 3.x-compatible syntax be used in vimside's code. |
Hi,
I have used SublimeText2 (ST2)with Ensime briefly sometime back. Currently I am using Eclipse ScalaIDE to do my development. However I am keen to try using vimside.
I understand while using ST2, the ensime workflow is as such - start the Ensime server, then create an ensime configuration for the project that I'm working on. I may have the sequence wrong though. Also I have very basic knowledge using Vim, and hence the I did struggle going through Vim help docs.
My environment is MacVim, java 7, scala 2.10.2. I used NeoBundle to installed Vimside dependencies. I have setup option_user.vim file.
I tried to test the simple project but failed, the problem is I do not know how to start ensime.
I found the key mapping in the file plugin/vimside.vim, I tried using both 'command-x' keys and '\vs' keys but neither start ensime.
" Start Vimside
" M-x ensime
if has("gui_running")
nmap :call vimside#command#StartEnsime()
else
nmap vs :call vimside#command#StartEnsime()
endif
" Stop Vimside
nmap vS :call vimside#command#StopEnsime()
Any help to point me to the right direction is greatly appreciated
The text was updated successfully, but these errors were encountered: