Skip to content

Using quarto over ssh via tramp #20

Open
@aramirezreyes

Description

@aramirezreyes

I think this project is basically unmaintained but this is worth a shot.

I work on a cluster editing a .qmd file via tramp (let's say C-x C-f /ssh:dev_node:testingr/explore_tracks.qmd).

1.- If I try to do quarto-preview I get a blank buffer with nothing showing.
2.- Inspecting the variable quarto-command I see that its value is nil. This is because emacs is looking for quarto in my local machine instead of dev_node and I do not have installed it.
3.- If I install quarto in my local machine and try M-x quarto-preview again, I get:

ERROR: /ssh:dev_node:/home/aramirezreyes/testingr/explore_tracks.qmd not found

Error: /ssh:dev_node:/home/aramirezreyes/testingr/explore_tracks.qmd not found
    at Command.fn (file:///Applications/quarto/bin/quarto.js:103602:15)
    at async Command.execute (file:///Applications/quarto/bin/quarto.js:8437:13)
    at async quarto (file:///Applications/quarto/bin/quarto.js:127545:5)
    at async file:///Applications/quarto/bin/quarto.js:127563:9

Process quarto-preview-/ssh:dev_node:/home/aramirezreyes/testingr/explore_tracks.qmd exited abnormally with code 1

This is because my local quarto cannot find the remote file.

How could I get this setup to work? Any pointers to implement it if it is currently not working?

As an additional data point. The quarto extension for vscode works just fine over ssh so I guess it could be done.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions