Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#1,014 4 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@seeM 已经在做这个了。

开始于 2026年6月17日。

评估

这个 Issue 还没有评估数据。

描述

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.

主要语言
TypeScript
星标
655
派生
64
平均合并
8 小时 45 分钟
30 天内合并 PR
36

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

quarto-dev/quarto 的其他 Issue

查看 quarto-dev/quarto 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。