Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

VS Code Preview not working if path contains special characters

Đang mở
#1,102 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
70/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript, vscode

Hướng nghiên cứu

Start at the VS Code “Quarto: Preview” command and trace how the .qmd path becomes the quarto preview process argument. Reproduce with a folder such as name;with@symbols, then verify the path is passed as one argument and the preview renders successfully.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug vscode
Bug description

If the path to the .qmd contains special character, e.g., ~/temp/name;with@symbols, Quarto Preview does not work because it doesn't escape the characters.

Steps to reproduce
  1. Create a folder with special characters, e.g., mkdir "name;with@symbols".
  2. Open this folder in VS Code (File → Open Folder) and create a .qmd file. The content doesn't matter, here's a minimal document:
---
title: "Untitled"
format: html
---

Test.
  1. Save the .qmd and run "Quarto: Preview"
Actual behavior

I get an error because the special characters are not escaped:

~/temp/name;with@symbols ❯ quarto preview /Users/clemens/temp/name;with@symbols/Untitled-1.qmd --no-browser --no-watch-inputs
ERROR: /Users/clemens/temp/name not found
Expected behavior

The preview should render successfully even if the path contains special characters. The solution is pretty straightforward, just escape special characters, or even easier, enclose the path argument in double quotes.

~/temp/name;with@symbols ❯ quarto preview "/Users/clemens/temp/name;with@symbols/Untitled-1.qmd" --no-browser --no-watch-inputs
Your environment
  • IDE: VSCode
  • OS: macOS Tahoe 26.6.2
  • Quarto version: 1.10.18
Ngôn ngữ chính
TypeScript
Star
652
Fork
64
Merge trung bình
8 giờ 45 phút
Pull request đã merge (30 ngày)
36

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của quarto-dev/quarto

Tất cả issue của quarto-dev/quarto

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.