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

not work on Mac OSX Mavericks #41

Closed
dalang opened this issue Oct 28, 2013 · 16 comments
Closed

not work on Mac OSX Mavericks #41

dalang opened this issue Oct 28, 2013 · 16 comments

Comments

@dalang
Copy link

dalang commented Oct 28, 2013

It works well on my Mac when it runs Mac OSX Mountain Lion. After update to Mavericks, vim-instant-markdown not work proper.

It will still open a new tab with uri: http://localhost:8090/ each time I open a markdown file in vi. But the new tab displays nothing.

I have tried to reinstall vim-instant-markdown, including rubygem and npm. But nothing changes.


Here is my environment:
OS: Marvericks
ruby: 1.9.3
npm: 1.2.2
rubygem: 1.8.23

@suan
Copy link
Collaborator

suan commented Oct 31, 2013

I just upgraded to Mavericks myself, using the system Ruby (2.0.0p247), system Rubygems (2.0.3), and npm version 1.2.21 I installed the plugin and its dependencies and everything seems to work for me...

@dalang
Copy link
Author

dalang commented Nov 3, 2013

I found the solution in #24 . After adding set shell=bash\ -i in my vimrc, everything works fine again. In addition, I use rbenv to manage my ruby versions.
It's odd because when my Mac was on Mountain Lion, my vimrc without set shell=bash\ -i have no problem in using vim-instant-markdown. I do not know why I have to update my vimrc when on Mavericks.

@suan
Copy link
Collaborator

suan commented Nov 3, 2013

Is your default shell not bash? If that's the case I think vim generally recommends to include the set shell command in your vimrc for maximum plugin compatibility

Sent from my iPhone

On Nov 3, 2013, at 9:30 AM, dalang notifications@github.com wrote:

I found the solution in #24 . After adding set shell=bash\ -i in my vimrc, everything works fine again. In addition, I use rbenv to manage my ruby versions.
It's odd because when my Mac was on Mountain Lion, my vimrc without set shell=bash\ -i have no problem in using vim-instant-markdown. I do not know why I have to update my vimrc when on Mavericks.


Reply to this email directly or view it on GitHub.

@dalang
Copy link
Author

dalang commented Nov 4, 2013

Thanks for your recommendation. Yes I use zsh as my default shell. Maybe you can add this info to the README FAQ

dalang
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Monday, November 4, 2013 at 12:27 AM, suan wrote:

Is your default shell not bash? If that's the case I think vim generally recommends to include the set shell command in your vimrc for maximum plugin compatibility

Sent from my iPhone

On Nov 3, 2013, at 9:30 AM, dalang <notifications@github.com (mailto:notifications@github.com)> wrote:

I found the solution in #24 . After adding set shell=bash\ -i in my vimrc, everything works fine again. In addition, I use rbenv to manage my ruby versions.
It's odd because when my Mac was on Mountain Lion, my vimrc without set shell=bash\ -i have no problem in using vim-instant-markdown. I do not know why I have to update my vimrc when on Mavericks.


Reply to this email directly or view it on GitHub.


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

@jelera
Copy link

jelera commented Dec 6, 2013

It works 100% with stock Ruby 2.0 in Mavericks and homebrew's node install, and my default shell is zsh, with this said, there are no traces of rvm setup in .bashrc, .zshrc, .profile.

@mquinnv
Copy link

mquinnv commented Jan 26, 2014

i'm running fish on mavericks. had a bunch of weird permissions errors on /var/private/folders. adding the set shell=bash\ -i fixed it and everything is working great.

@suan
Copy link
Collaborator

suan commented Jan 26, 2014

Hmmm, I wonder if changing this line in instant-markdown-d to #!/usr/bin/env bash would remove the need for the set shell line. @mquinnv or @dalang, would you mind trying to change that line, remove the set shell line in your .vimrc, and see whether it works? You could also try changing it to #!/usr/bin/env node

@mquinnv
Copy link

mquinnv commented Jan 26, 2014

no luck. tried both bash and node. same behavior:

Error detected while processing function <SNR>27_pushMarkdown..<SNR>27_startDaemon..<SNR>27_system: line 4: E484: Can't open file /var/folders/d1/l0h68xfs1yb_hhb5qjf3r55r0000gq/T/v7S8hAF/1 Error detected while processing function <SNR>27_refreshView..<SNR>27_system: line 4: E484: Can't open file /var/folders/d1/l0h68xfs1yb_hhb5qjf3r55r0000gq/T/v7S8hAF/3

@suan
Copy link
Collaborator

suan commented Jan 27, 2014

I've updated the FAQ with this suggestion for future reference - closing since original issue seems to be resolved.

@suan suan closed this as completed Jan 27, 2014
@dalang
Copy link
Author

dalang commented Jan 27, 2014

I have just tried, not work on my mac neither.

dalang
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Monday, January 27, 2014 at 2:19 AM, Michael Ventura wrote:

no luck. tried both bash and node. same behavior:
Error detected while processing function 27_pushMarkdown..27_startDaemon..27_system:
line 4:
E484: Can't open file /var/folders/d1/l0h68xfs1yb_hhb5qjf3r55r0000gq/T/v7S8hAF/1
Error detected while processing function 27_refreshView..27_system:
line 4:
E484: Can't open file /var/folders/d1/l0h68xfs1yb_hhb5qjf3r55r0000gq/T/v7S8hAF/3


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

@bguest
Copy link

bguest commented Feb 17, 2014

+1, I'm running OSX 10.9 with zsh & rvm, installed npm using homebrew. I tried setting the default shell to bash using set shell=bash\ -i It doesn't work. Even if it did work, I don't think I would be satisfied as I've got other dependencies on zsh.

@danxshap
Copy link

I'm on OS X 10.9.1, npm 1.3.11, ruby 2.0.0p247, rubygems 2.0.3. Not using rvm & i use bash.

i added set shell=bash\ -i to vimrc

only seeing a blank browser window =\

@davidmh
Copy link

davidmh commented May 16, 2014

If you want to keep using another shell in vim, you can set shell to bash only for markdown files, with:

au FileType markdown setl shell=bash\ -i

@lynndylanhurley
Copy link

I've followed all of the instructions and I'm still getting a blank browser window. What is the best way to debug this problem?

@danxshap
Copy link

@lynndylanhurley see my more recent comment in #31

I actually needed to remove set shell=bash\ -i and then re-install all dependencies. Not sure what was causing problems before but I'm good now. Hope it works for you too.

@damionvega
Copy link

Upgraded to Mavericks and was getting the blank browser window also. This worked for me:

Uninstall:

npm uninstall -g instant-markdown-d
sudo gem uninstall redcarpet
sudo gem uninstall pygments.rb

if you're using RVM, use gem install and NOT sudo gem install

Fix owner and group to fix permissions to install without sudo:

sudo chown -R mbp:staff ~/.rvm
sudo chown -R mbp:staff ~/.gem

Reinstall dependencies:

gem install redcarpet pygments.rb
npm install -g instant-markdown-d

Did not include set shell=bash\ -i
Finally, restart your computer

Specs:
OSX 10.9.4
NPM 1.4.20
Ruby 2.0.0p247 (using RVM)

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

9 participants