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

Error on startup: "Unknown option argument: "--servername" #173

Open
pdbradley opened this issue Jun 26, 2014 · 8 comments
Open

Error on startup: "Unknown option argument: "--servername" #173

pdbradley opened this issue Jun 26, 2014 · 8 comments

Comments

@pdbradley
Copy link

Danchoi;

Where is your donate button? This looks to be a wonderful tool. If only I could get it running. Here is what I'm seeing. I tried different versions of ruby / vim and even ran vmail on a vanilla .vimrc to see if there was something in my own that was causing an issue. Same error every time.

Philips-Mac-mini% vmail
Starting vmail 2.9.0
Setting VMAIL_BROWSER to 'open'
Setting VMAIL_HTML_PART_READER to 'elinks -dump'
Changing working directory to /Users/philip/.vmail/default
Using config file: /Users/philip/.vmailrc
Using contacts file: vmail-contacts.txt
Starting vmail imap client for [email protected]
INBOX polling disabled.
Working directory: /Users/philip/.vmail/default
Checking vmail.db version... OK
Connecting to database
Starting Vmail::ImapClient in dir /Users/philip/.vmail/default
Starting gmail service at druby://philips-mac-mini.local:52255
Mailbox: INBOX
Query: ["all"]
Query String: all
DRB_URI=druby://philips-mac-mini.local:52255 VMAIL_CONTACTS_FILE=vmail-contacts.txt VMAIL_MAILBOX=INBOX VMAIL_QUERY="all" /usr/bin/vim --servername VMAIL:[email protected] -S /Users/philip/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/vmail-2.9.0/lib/vmail.vim -c '' vmailbuffer
Using buffer file: vmailbuffer
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 24 2013 18:58:47)
Unknown option argument: "--servername"
More info with: "vim -h"
Closing imap connection
Bye

@notalex
Copy link
Collaborator

notalex commented Jun 26, 2014

@pdbradley vim must be compiled with the +clientserver feature for Vmail to work. This was a recent change and I will add to the instructions soon. To check if vim has the feature, run vim --version and check for the +clientserver flag.

@pdbradley
Copy link
Author

Well, I do have that flag set, actually. Any other ideas?

On Thu, Jun 26, 2014 at 10:42 AM, Alex [email protected] wrote:

@pdbradley https://github.com/pdbradley vim must be compiled with the
+clientserver feature for Vmail to work. This was a recent change and I
will add to the instructions soon. To check if vim has the feature, run vim
--version and check for the +clientserver flag.


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

@notalex
Copy link
Collaborator

notalex commented Jun 26, 2014

Does the command vim --servername bradley open a vim instance on your machine?

@notalex
Copy link
Collaborator

notalex commented Jun 26, 2014

On non X11 machines you need to compile Vim with some additional X11 packages. More details here.

@pdbradley
Copy link
Author

It does indeed. % vim --servername bradley
opens an empty vim session

On Thu, Jun 26, 2014 at 12:03 PM, Alex [email protected] wrote:

On non X11 machines you need to compile Vim with some additional X11
packages. More details here
http://unix.stackexchange.com/questions/23589/how-to-install-light-weight-vim-and-to-be-able-to-efficiently-load-files-into-on#answer-23601
.


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

@lzap
Copy link
Contributor

lzap commented Jul 25, 2014

Fixed in

#180

@masashik
Copy link

Additionally, +clientserver is discussed in stackoverflow too. http://stackoverflow.com/questions/10231223/compile-vim-7-3-with-clientserver-feature-on-mac-os-x
I personally took the following steps to include +clientserver (tested on OS X 10.11.2).

    brew uninstall --force vim
    sudo brew install vim --with-client-server
    brew install Caskroom/cask/xquartz
    brew link --overwrite vim

@minimul
Copy link

minimul commented May 25, 2016

I just used MacVim to get around this in OSX 10.7.5:

VMAIL_VIM=mvim vmail

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

5 participants