spacemacs icon indicating copy to clipboard operation
spacemacs copied to clipboard

'No useful browser' when trying to use fymd on MacOS

Open joaquinlpereyra-ml opened this issue 7 years ago • 14 comments

Description :octocat:

'No useful browser' when trying to use fymd on MacOS

Reproduction guide :beetle:

  • Start Emacs on MacOs
  • Set up 'chrome' layer and 'markdown' layer
  • Try to use flymd when on a markdown file

Observed behaviour: :eyes: :broken_heart: No useful broswer displayed, even when I set up an alias on .zprofile to point 'google-chrome-stable' to the specific binary on mac os.

Expected behaviour: :heart: :smile: A real-time preview of the markdown would open with support for Github flavored markdown :)

System Info :computer:

  • OS: darwin
  • Emacs: 25.2.1
  • Spacemacs: 0.200.9
  • Spacemacs branch: master (rev. 8e1af14)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(html python helm java auto-completion osx emacs-lisp git
      (markdown :variables markdown-live-preview-engine 'vmd)
      org chrome spell-checking syntax-checking)
  • System configuration features: JPEG NOTIFY ACL LIBXML2 TOOLKIT_SCROLL_BARS NS

joaquinlpereyra-ml avatar Apr 25 '17 13:04 joaquinlpereyra-ml

Hmm might be a bug @syl20bnr my-flymd-browser-function probably needs MacOs option. :thinking:

JAremko avatar May 24 '17 14:05 JAremko

Same here

vv111y avatar Jun 08 '17 15:06 vv111y

@vv111y can you plz SPC h I here ?

JAremko avatar Jun 08 '17 16:06 JAremko

Same here :-(

@JAremko Here is mine:

Description :octocat:

'No useful browser' when trying to use fymd on MacOS Sierra

Reproduction guide :beetle:

  • Start Emacs
  • Set up 'chrome' layer and 'markdown' layer
  • Try to use flymd (SPC a F) on a markdown file

Observed behaviour: :eyes: :broken_heart: Error : "No useful broswer displayed", and nothing shows up :-( (even though I have chrome and chromium installed (with homebrew))

Expected behaviour: :heart: :smile: A real-time preview of the markdown file should open in Chrome/Chromium :-)

System Info :computer:

  • OS: darwin
  • Emacs: 25.2.1
  • Spacemacs: 0.200.9
  • Spacemacs branch: master (rev. 8e1af14)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(python ocaml haskell agda html helm auto-completion better-defaults emacs-lisp git
        (markdown :variables markdown-live-preview-engine 'vmd)
        (spell-checking :variables spell-checking-enable-auto-dictionary t spell-checking-enable-by-default t enable-flyspell-auto-completion t)
        (syntax-checking :variables syntax-checking-enable-tooltips t syntax-checking-enable-by-default t)
        coq javascript
        (osx :variables osx-use-option-as-meta nil)
        c-c++ themes-megapack latex graphviz csv ipython-notebook version-control
        (colors :variables colors-colorize-identifiers 'all colors-enable-nyan-cat-progress-bar nil)
        xkcd bibtex deft pandoc chrome)
  • System configuration features: NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS

youqad avatar Jul 02 '17 13:07 youqad

Sorry @JAremko ! I knew there was a response to do and I couldn't find it, this got lost. Below is mine (thanks @youqad for responding).

System Info :computer:

  • OS: darwin
  • Emacs: 25.2.1
  • Spacemacs: 0.200.9
  • Spacemacs branch: develop (rev. ebc6ba01)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(csv
 (auto-completion :variables auto-completion-enable-help-tooltip t auto-completion-enable-sort-by-usage t)
 ansible better-defaults bibtex chrome clojure command-log common-lisp cscope deft docker emacs-lisp erc ess fasd finance git github go haskell html ibuffer imenu-list ipython-notebook java javascript
 (latex :variables latex-enable-folding t latex-enable-auto-fill t latex-build-command "LatexMk")
 lua
 (markdown :variables markdown-live-preview-engine 'vmd)
 nim
 (osx :variables osx-use-option-as-meta t)
 (org :variables org-enable-github-support t org-enable-reveal-js-support t org-enable-bootstrap-support t org-startup-indented t org-startup-folded t)
 pandoc pdf-tools php python ranger scala search-engine
 (spell-checking :variables spell-checking-enable-by-default nil)
 sql syntax-checking
 (shell :variables shell-default-height 30 shell-default-position 'right)
 themes-megapack tmux vagrant version-control zotero)
  • System configuration features: JPEG RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES

vv111y avatar Jul 03 '17 18:07 vv111y

System Info :computer:

  • OS: darwin
  • Emacs: 25.2.1
  • Spacemacs: 0.200.9
  • Spacemacs branch: master (rev. 8e1af145)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(auto-completion better-defaults c-c++ gtags cscope python java emacs-lisp git markdown org
                 (shell :variables shell-default-height 30 shell-default-position 'bottom)
                 syntax-checking version-control html javascript chrome)
  • System configuration features: JPEG RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES

I also face same problem!

longlinht avatar Jul 05 '17 02:07 longlinht

As a workaround, in your spacemacs layers config, you can set the chrome-exec-path layer variable:

(chrome :variables chrome-exec-path "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome")

(assuming you're using a standard install of Google Chrome)

...but you'll then run into the issue described in the flymd docs: https://github.com/mola-T/flymd/blob/master/browser.md .

tripplilley avatar Sep 21 '17 10:09 tripplilley

@tripplilley , thank you, it works.

longlinht avatar Sep 28 '17 06:09 longlinht

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

github-actions[bot] avatar Feb 28 '20 21:02 github-actions[bot]

+1

swapnilsm avatar Mar 21 '20 09:03 swapnilsm

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

github-actions[bot] avatar Mar 22 '21 21:03 github-actions[bot]

I think having flymd as part of chrome is the real problem here; it is really related to Markdown.

Ideally flymd would be part of the markdown layer, and on MacOS it would default to calling the function browse-url-default-macosx-browser which seems to do the right thing.

akumria avatar Jul 28 '21 17:07 akumria

No, I tell a lie. Because the file is on the local filesystem, browse-url-default-macosx-browser does not work.

akumria avatar Jul 28 '21 17:07 akumria

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

github-actions[bot] avatar May 01 '24 16:05 github-actions[bot]