Skip to content

quarto_preview_stop fails to stop preview server #304

Description

@jabenninghoff

Running quarto_preview_stop() fails to stop the running Quarto preview server, at least on macOS with RStudio.

Steps to Reproduce

  1. In RStudio, create a new Quarto Website project
  2. Run quarto::quarto_preview()
  3. Run quarto::quarto_preview_stop()

Expected Behavior

The Quarto preview server should be terminated.

Actual Behavior

The quarto preview server continues to run until R is restarted, as edits are reflected in the viewer and by running ps from the command line:

% ps -ax | grep quarto   
12253 ??         0:00.01 bash /Applications/quarto/bin/quarto preview /Users/jabenninghoff/GitHub/quarto-test --port 4942 --no-browse
12263 ??         0:01.35 /Applications/quarto/bin/tools/aarch64/deno run --unstable-ffi --unstable-kv --no-config --no-lock --cached-only --allow-all --no-check --v8-flags=--enable-experimental-regexp-engine,--max-old-space-size=8192,--max-heap-size=8192,--stack-trace-limit=100 /Applications/quarto/bin/quarto.js preview /Users/jabenninghoff/GitHub/quarto-test --port 4942 --no-browse
12399 ttys000    0:00.00 grep quarto

After restarting R in RStudio:

% ps -ax | grep quarto                                    
12733 ttys000    0:00.00 grep quarto

Activity

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

Metadata

Metadata

Assignees

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