facelessuser / MarkdownPreview

Markdown preview and build plugin for Sublime Text https://facelessuser.github.io/MarkdownPreview/
Other
405 stars 53 forks source link

Markdown Preview Unable to Launch Browser #85

Closed Salamendrine closed 4 years ago

Salamendrine commented 5 years ago

Hey, I am trying to use MarkdownPreview to build .md file on macOS with freshly installed package. The settings of MarkdownPreview is

{
    "enable_autoreload": true,
    "browser": "default",
    "enable_highlight": true
}

The problem is that every time when I try to preview in default browser (Safari), though the status bar says that "Markdown Preview launched in default browser", there is nothing actually happening in my browser. I tried to change the browser to others like /Applications/Safari.app or /Applications/Google Chrome.app but it gives cannot execute "/Applications/Safari.app". I also tried to remove and install again the package, but it does not help. It seems that no one before have encountered this exact problem and I wonder if anyone could help me out.

facelessuser commented 5 years ago

I'll take a look and see if I can reproduce sometime soon. I've never had issues with this, but I'll see.

raffeyang commented 5 years ago

Same Problem Here

facelessuser commented 5 years ago

@Jax0rz details? Is it also macOS etc.

raffeyang commented 5 years ago

@Jax0rz details? Is it also macOS etc.

macOS Catalina with Safari browser

raffeyang commented 4 years ago

I solved this problem:

{
     "browser": "/Applications/Safari.app/Contents/MacOS"
}
facelessuser commented 4 years ago

Interesting, I'll have to look into to why it couldn't detect it, or at least properly open when using default.

NofelYaseen commented 4 years ago

I solved this problem:

{
     "browser": "/Applications/Safari.app/Contents/MacOS"
}

Does not work for me. I get the error, cannot execute "/Applications/Safari.app/Contents/MacOS" Please check your markdown preview settings.

birkin commented 4 years ago

After upgrading to MacOS Catalina, my browser stopped launching, though the status bar said it had. The solution that worked for me, via Sublime Text -> Preferences -> Package Settings -> Markdown Preview:

{ "browser": "/Applications/Safari.app/Contents/MacOS/Safari" } or...

{ "browser": "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser" }

I quit and re-opened Sublime Text after each settings update, though that may not have been necessary.


facelessuser commented 4 years ago

Yeah, my mac is too old :cry:. My wife's though is new enough that I can upgrade it to Catalina, if she let's me.

Something seems to have changed, and I'm not sure what. Until I get around to trying it out on a Catalina install, I can't investigate.

NofelYaseen commented 4 years ago

After upgrading to MacOS Catalina, my browser stopped launching, though the status bar said it had. The solution that worked for me, via Sublime Text -> Preferences -> Package Settings -> Markdown Preview:

{ "browser": "/Applications/Safari.app/Contents/MacOS/Safari" } or...

{ "browser": "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser" }

I quit and re-opened Sublime Text after each settings update, though that may not have been necessary.

This worked!

facelessuser commented 4 years ago

2.2.5 fixes an issue with Catalina. Detecting the default browser should work again. Closing this as a duplicate of #92.