[Bug]: Preview opens the repository folder's URL instead of the workspace's with {{folder}}
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 52/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Bereich
- desktop
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 20
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus beyondcode/polyscope-community
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 22/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
Alle Issues in beyondcode/polyscope-community
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 14 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
throneproj/Throne#2043 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
area: apple-music area: build-release bug effort: small priority: high
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
ChristianTabor/Argon#32 ·
Maintainer antworten meist innerhalb von 1 Tag