quarto-emacs icon indicating copy to clipboard operation
quarto-emacs copied to clipboard

Support for Windows?

Open kwstat opened this issue 2 years ago • 5 comments

I guess this package is not yet supporting windows? For example, when I load the package I find that the value of quarto-command is nil.

kwstat avatar Jul 29 '22 16:07 kwstat

I don't personally use windows so I can't attest either way, but I certainly believe you. I would very much appreciate a community PR on this!

cscheid avatar Jul 30 '22 15:07 cscheid

Just a confirmation; I have no problems whatsoever on Windows 11!

mlindsk avatar Jul 30 '22 17:07 mlindsk

For some reason, RStudio is not adding quarto to the PATH for me. Here's what I did: Open RStudio, then open a command shell terminal (NOT a git terminal) and type where quarto. This gave me:

C:/Users/wrightkevi/AppData/Local/Programs/RStudio/bin/quarto/bin/quarto.cmd

Then I modified the quarto-poly-markdown-exporter function in quarto-mode.el by adding the full path to quarto and adding %i for the input file.

;; the following is the original line of code
;; "quarto render --to=%t --output=%o"))
;; the following is the new line of code
"C:/Users/wrightkevi/AppData/Local/Programs/RStudio/bin/quarto/bin/quarto.cmd render %i --to=%t --output=%o"))

Probably I should have just modified the PATH, but note also the inclusion of %i. Without %i I was getting an error that this was not a quarto project.

kwstat avatar Aug 10 '22 17:08 kwstat

@kwstat Let me make sure I have this right: your installation of quarto is the one included in RStudio. Is that right? In that case, RStudio definitely does not add quarto to your path -- and it shouldn't.

But that's not a quarto-emacs bug either, I think it's just that you need to set your PATH environment variable appropriately.

cscheid avatar Aug 10 '22 18:08 cscheid

Byte-compiling and loading .emacs fails with (require 'quarto-mode), and returns the message ".emacs:91:1:Error: Symbol’s function definition is void: defvar-1". Quarto is installed and my path includes c:\Program Files\Quarto\bin. quarto-mode.elc is located in .emacs.d/site-lisp and .emacs.d/quarto-mode-20221005.1632. Yet it seems that emacs is not finding quarto-mode.elc. Any suggestions?

sgutreuter avatar Jan 09 '24 20:01 sgutreuter