Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Windows? #11

Open
kwstat opened this issue Jul 29, 2022 · 5 comments
Open

Support for Windows? #11

kwstat opened this issue Jul 29, 2022 · 5 comments

Comments

@kwstat
Copy link
Contributor

kwstat commented Jul 29, 2022

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.

@cscheid
Copy link
Contributor

cscheid commented Jul 30, 2022

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!

@mlindsk
Copy link

mlindsk commented Jul 30, 2022

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

@kwstat
Copy link
Contributor Author

kwstat commented Aug 10, 2022

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.

@cscheid
Copy link
Contributor

cscheid commented Aug 10, 2022

@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.

@sgutreuter
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants