danchoi / vmail

a vim interface for gmail
http://danielchoi.com/software/vmail.html
MIT License
785 stars 59 forks source link

vmail on mac with homebrew Vim 7.4 hangs #175

Open pmagwene opened 10 years ago

pmagwene commented 10 years ago

I've compiled command line Vim 7.4 with HomeBrew, along with the "--with-client-server" switch as described here: https://github.com/danchoi/vmail/issues/173

However, when Vmail start up it shows the following message and never updates:

Vmail 2.9.0
Please wait while I fetch your messages.

The same vmail setup works just fine with MacVim when using the export VMAIL_VIM=mvim setting.

I'm using Ruby 2.1, installed via rvm on OS X 10.8.5.

Any ideas what might be going on?

pmagwene commented 10 years ago

vmail 2.8.7 with Homebrew Vim 7.4 shows the same issue.

However, reverting to system Vim (7.3) and vmail 2.8.7, than everything works as expected.

notalex commented 10 years ago

It would help if you can provide the debug output. This wiki page can help with capturing the debug information.

pmagwene commented 10 years ago

Upgraded to vmail 2.9.2. Same problem as before.

Here's the debug output. Doesn't look particularly informative, and it seems to be succeeding in open the mailbox, it just never get's past the wait message and it doesn't let me select mails boxes or anything:

D, [2014-07-21T11:32:19.547121 #46114] DEBUG -- : loading mailboxes...
D, [2014-07-21T11:32:19.630948 #46114] DEBUG -- : Loaded mailboxes: ["INBOX", "Personal", "Receipts", "Travel", "Work", "[Gmail]/All Mail", "[Gmail]/Drafts", "[Gmail]/Important", "[Gmail]/Sent Mail", "[Gmail]/Spam", "[Gmail]/Starred", "[Gmail]/Trash"]
D, [2014-07-21T11:32:19.631194 #46114] DEBUG -- : Setting aliases to {"sent"=>"[Gmail]/Sent Mail", "all"=>"[Gmail]/All Mail", "starred"=>"[Gmail]/Starred", "important"=>"[Gmail]/Important", "drafts"=>"[Gmail]/Drafts", "spam"=>"[Gmail]/Spam", "trash"=>"[Gmail]/Trash"}
D, [2014-07-21T11:32:19.832508 #46114] DEBUG -- : Selecting mailbox "INBOX"
D, [2014-07-21T11:32:20.133428 #46114] DEBUG -- : RUBY0003 OK [READ-WRITE] INBOX selected. (Success)

D, [2014-07-21T11:32:20.133701 #46114] DEBUG -- : Done
D, [2014-07-21T11:32:20.140733 #46114] DEBUG -- : Getting mailbox status
D, [2014-07-21T11:32:20.140846 #46114] DEBUG -- : Getting highest message id
D, [2014-07-21T11:32:20.217816 #46114] DEBUG -- : Highest seqno: 1
mturquette commented 9 years ago

Just ran into this myself while getting vmail working on my MBP. First you figured out the mvim part which is good, but you might still be getting hit by #85 . Try adding the following to your ~/.vmailrc:

drb_uri: druby://localhost:3009