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

Pyrefly does not resolve installed modules against the workspace venv in cell diagnostic vdocs

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

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

@seeM đang làm issue này rồi.

Từ ngày 17/6/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug vscode

A user ran into this issue with cell diagnostics.

Sharing a repro in case it's useful:

  1. Positron with a project that has a .venv containing dependencies not installed in the system/global Python (e.g., polars).
  2. System Python on PATH = Homebrew (here [email protected]), without polars.
  3. Open a .qmd with a cell that does import polars.

What I see: Pyrefly flags "Cannot find module 'polars'" and appears to resolve against the global Python rather than the project .venv.
python.defaultInterpreterPath, the interpreter picker, and QUARTO_PYTHON didn't change it.
Positron's own Pyrefly resolves the .venv fine, seems specific to the cell-diagnostics path.

Downgrading to 1.132.0 fixes it.

Ngôn ngữ chính
TypeScript
Star
655
Fork
64
Merge trung bình
21 giờ
Pull request đã merge (30 ngày)
45

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.