microsoft / microsoft/vscode-python-environments
Unable to set python interpreter when workspace not trusted, but also no trust popup
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 138
- 派生
- 62
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 35
描述
I teach in a data science program, and over the past two weeks have had to work with ~60 students on environment management, and I have to say it's been more painful this year than ever before.
One major issue I kept finding is students would try to change their default interpreter (or active interpreter) to a working miniforge3 installation, and the change just wouldn't stick. No error messages, no popups, nothing. The change would appear in the user settings JSON, but Python wouldn't respect it and would just stick to using the os-bundled version of Python.
I did eventually figure out I could get around this by:
- In VS Code, use `open folder` to open the student's user directory.
- This would cause a "trust this workspace?" bar to pop up.
- If I clicked manage and trust, *then* I would regain the ability to select interpreters.
This happened on mac and windows, and all with new installs done during the past two week or so.
If this is a desired behavior (I don't really get what "trusted workspace" is trying to protect), then it shouldn't be a silent failure — there should be an informative popup with instructions on correcting the problem.
If it isn't desired, it should definitely be fixed — it's really hurting the onboarding process for new users.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在 macOS 或 Windows 上不受信任的工作区中重现解释器选择,然后比较信任工作区前后的行为。完成的标准是解释器更改按预期工作,或者用户收到信息充分的说明和恢复指示,而不是遇到无提示失败。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python, typescript, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100