Skip to content
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

Potential error in Ensime Startup Command - autoload/vimside.vim #17

Open
vladimir-tsvetkov opened this issue Mar 30, 2013 · 4 comments

Comments

@vladimir-tsvetkov
Copy link

I'm getting an error on line
288 and I have changed it into:

execute "silent !" . cmd . " > " . l:logfile . " 2>&1 &"

Now the ENSIME_LOG file gets filled with logging data from ensime.

@megaannum
Copy link
Owner

What shell are you using?

On 03/30/2013 01:42 PM, npacemo wrote:

I'm getting an error on line
288
https://github.com/megaannum/vimside/blob/master/autoload/vimside.vim#L288
and I have changed it into:

|execute "silent !" . cmd . " > " . l:logfile . " 2>&1 &"
|

Now the ENSIME_LOG file gets filled with logging data from ensime.


Reply to this email directly or view it on GitHub
#17.

Quis custodiet ipsos custodes

@vladimir-tsvetkov
Copy link
Author

$ ps -p $$
  PID TTY           TIME CMD
52370 ttys000    0:00.05 /opt/local/bin/bash -l
$ bash -version
GNU bash, version 4.2.39(2)-release (i386-apple-darwin10.8.0)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: Mac OS X 10.6.8 (10K549)
      Kernel Version: Darwin 10.8.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Secure Virtual Memory: Enabled

@megaannum
Copy link
Owner

Very interesting.
I too use bash (version 4.2.39(1))
Your suggested change is the more standard way, while
the original is, I believe, deprecated. But, that
still does not explain why it generated an error
for you.
In addition, your issue does bring up a good, more
general, point, how to pipe executable output to
a log file in a shell-script independent manner from
within Vim-script; not everyone uses bash.
I suspect the solution will be to uses the vimproc
plugin which does have such a general solution.

On 03/31/2013 06:40 AM, npacemo wrote:

|$ ps -p $$
PID TTY TIME CMD
52370 ttys000 0:00.05 /opt/local/bin/bash -l
$ bash -version
GNU bash, version 4.2.39(2)-release (i386-apple-darwin10.8.0)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ system_profiler SPSoftwareDataType
Software:

 System Software Overview:

   System Version: Mac OS X 10.6.8 (10K549)
   Kernel Version: Darwin 10.8.0
   Boot Volume: Macintosh HD
   Boot Mode: Normal
   Secure Virtual Memory: Enabled

|
|


Reply to this email directly or view it on GitHub
#17 (comment).

Quis custodiet ipsos custodes

@pjrt
Copy link

pjrt commented Apr 25, 2013

I was getting this error too until I upgraded my bash (version 4.2.42(2)-release (i386-apple-darwin11.4.2))

Might be a dumb suggestion but make sure you are actually using the new bash. After updating, you have to add the new bash to your shells file, make that bash your user's shell, and then restart.

Even though doing "bash -version" shows the "new" bash, you are not actually using it.

http://www.macshadows.com/kb/index.php?title=Upgrading_bash_on_Mac_OS_X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants