Pandoc error on file import/drag to
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
+1
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
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/MarkTextI 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/MacOSmarktextAs 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
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.