spacemacs
spacemacs copied to clipboard
'No useful browser' when trying to use fymd on MacOS
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
Hmm might be a bug @syl20bnr my-flymd-browser-function
probably needs MacOs option. :thinking:
Same here
@vv111y can you plz SPC
h
I
here ?
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
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
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!
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 , thank you, it works.
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!
+1
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!
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.
No, I tell a lie. Because the file is on the local filesystem, browse-url-default-macosx-browser
does not work.
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!