Disabling web server when using quarto preview

Open
#7,178 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
cli

Research direction

Start in src/command/preview/cmd.ts, especially the bottom where noServe is passed only for project inputs. Compare the documented behavior in quarto preview help with the single-file path and reproduce with quarto preview --no-serve. Done means the documented option disables the local preview web server for a single file as well.

Written by the indexing model from the issue text.

Description

bug preview
Bug description

Running quarto preview <file> --no-serve does not disable running the local preview web server as specified in quarto preview help.

At the bottom of src/command/preview/cmd.ts, the noServe option only gets passed when the input is a project, rather than a single file. I'm not sure what the intended behaviour is, especially since there's no man pages?

Bug found on Linux x86_64 with quarto-cli 1.3.450

Steps to reproduce

No response

Expected behavior

No response

Actual behavior

No response

Your environment

No response

Quarto check output

No response

Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quarto-dev/quarto-cli

All issues in quarto-dev/quarto-cli

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.