marktext icon indicating copy to clipboard operation
marktext copied to clipboard

Pandoc error on file import/drag to

Open tamet83 opened this issue 4 years ago • 5 comments

Hello,

I'm facing the same issue with my install of Mark Text on my MacBook Air m1. I installed it with brew install --cask mark-text I have also installed pandoc:

matteo@IT-LAPTOP-039 ~ % which pandoc
/opt/homebrew/bin/pandoc

The pandoc PATH is inside homebrew PATH

matteo@IT-LAPTOP-039 ~ % echo $PATH
/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin

But i tried anyway to add it in this way:

matteo@IT-LAPTOP-039 ~ % echo $PATH
/Users/matteo/opt/homebrew/bin/pandoc:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin

I can't open MarkText from terminal:

matteo@IT-LAPTOP-039 ~ % marktext
zsh: command not found: marktext

I tried to add also Mark Text path

/Users/matteo/Applications/Mark Text.app/Contents/MacOS/Mark Text:/Users/matteo/opt/homebrew/bin/pandoc:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin

But I receive the same error about marktext command. So I can't try any of the solutions you provided before.

What kind of information do you need to help me?

Originally posted by @tamet83 in https://github.com/marktext/marktext/issues/1392#issuecomment-990958061

tamet83 avatar Dec 10 '21 13:12 tamet83

+1

CapaoAzul avatar Apr 06 '22 11:04 CapaoAzul

I was having the same problem launching MarkText from a shell session on macOS. I was able to launch it using the full path. bash-3.2$ /Applications/MarkText.app/Contents/MacOS/MarkText

I was also able to add the binaries parent folder to my path to launch MarkText from any working directory. export PATH='/Applications/MarkText.app/Contents/MacOS marktext

As in the #1392, I am able to import files successfully when launched through the shell. I am still unable to import documents when directly launching the application, receiving the "Install pandoc before you want to import files" error message when attempted.

borari avatar Apr 25 '22 13:04 borari

+1

Sebavid avatar Jun 07 '22 10:06 Sebavid

I was having the same problem launching MarkText from a shell session on macOS. I was able to launch it using the full path. bash-3.2$ /Applications/MarkText.app/Contents/MacOS/MarkText

I was also able to add the binaries parent folder to my path to launch MarkText from any working directory. export PATH='/Applications/MarkText.app/Contents/MacOS marktext

As in the #1392, I am able to import files successfully when launched through the shell. I am still unable to import documents when directly launching the application, receiving the "Install pandoc before you want to import files" error message when attempted. +1

dalianzhu avatar May 30 '23 02:05 dalianzhu

Marktext could do what Zenity does: add the pandoc binary to /Applications/MarkText.app/Contents/MacOS. That won't solve the problem of how pandoc is launched or exec'd from Marktext but it would certainly make it foolproof.

ghost avatar Apr 17 '24 14:04 ghost