[Bug]: Preview opens the repository folder's URL instead of the workspace's with {{folder}}
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 领域
- desktop
调研方向
Start by tracing how the Preview pane loads its URL for a newly created workspace and how it expands {{folder}} from polyscope.json; compare that value with the repository root folder and workspace name in the reproduction. The issue does not name source files or tests, so locate the preview configuration and URL expansion entry points first. Done means Preview opens https://turbo-yak.test for this setup, and a regression check covers the case.
由索引模型根据 Issue 内容生成。
描述
Platform
macOS
Operating system version
macOS 27.0.1
System architecture
ARM64 (M1, M2, etc)
PolyScope Version
0.29.0
Bug description
In a workspace named turbo-yak, clicking Preview opens https://people.test. I expected https://turbo-yak.test. people is the name of the repository's root folder. I never typed or visited people.test in the preview pane.
polyscope.json in the repo root:
{ "preview": { "url": "https://{{folder}}.test" } }
The setup script runs herd link and herd secure, so https://turbo-yak.test serves the workspace. It returns HTTP 200 in an external browser. There is no polyscope.local.json, and I could not find a preview field in the repository settings.
Expected: Preview opens https://turbo-yak.test, as the help text says {{folder}} is the worktree folder name.
Question: does the Preview pane remember a URL for the repository, and where does it read it from for a new workspace?
Steps to reproduce
- Put
{ "preview": { "url": "https://{{folder}}.test" } }inpolyscope.jsonat the repo root (repo folder namedpeople). - Use a setup script that runs
herd linkandherd securein the workspace. - Create a new workspace (it was named
turbo-yak). - Click Preview. It opens
https://people.test.
Relevant log output
None.
- 主要语言
- 没有语言数据
- 星标
- 20
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
beyondcode/polyscope-community 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 4/5 3-5 天 新手友好度 22/100
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 45/100
查看 beyondcode/polyscope-community 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
throneproj/Throne#2043 ·
维护者通常 2 天内回复
-
area: apple-music area: build-release bug effort: small priority: high
难度 2/5 1-3 小时 新手友好度 82/100
ChristianTabor/Argon#32 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 65/100
ramensoftware/windhawk#1156 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 81/100
omdsh-dev/DSH-better-sidebar#1059 ·
维护者通常 2 天内回复