[bug] Local repositories with a space or non-ASCII character in the path cannot be indexed
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- backend
調査の方向性
Inspect getRepoPath in packages/shared/src/utils.ts and reproduce the encoded path shown in the issue. Verify the existing unit test mentioned in the report, then confirm that local repositories with spaces or non-ASCII characters resolve to on-disk paths and can be indexed and browsed.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
A local repository (file:// connection) whose path contains a space or a non-ASCII character is discovered but can't be indexed or browsed. getRepoPath in packages/shared/src/utils.ts returns new URL(cloneUrl).pathname, which is percent-encoded, so /Users/me/Code Projects/my repo becomes /Users/me/Code%20Projects/my%20repo. That path is handed to zoekt-git-index and the web git APIs, and it does not exist on disk.
Expected: the on-disk path (fileURLToPath(cloneUrl)).
To reproduce
- Add a local repo connection for a directory with a space in its path, e.g.
file:///repos/my repo. - The repo shows up, but indexing fails and the file browser can't open it.
Or in code: getRepoPath({ cloneUrl: 'file:///Users/me/Code Projects/my repo', ... }) returns path: '/Users/me/Code%20Projects/my%20repo'.
Sourcebot deployment information
Sourcebot version (e.g. v3.0.1): main @ b4931510 (found reading the source and confirmed with a unit test, not on a deployment)
Additional information
Related to #1385 (Compose mounts for paths with spaces), but this is the path lookup itself. I have a small fix with tests ready and will open a PR that links this issue. (Found by an AI coding agent working for the breken-ai account.)
- 主要言語
- TypeScript
- スター
- 3.9k
- フォーク
- 374
- 平均マージ
- 17時間 15分
- マージ済み PR(30日)
- 38
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
sourcebot-dev/sourcebot のほかの issue
-
bug(web): Intermediate directory nodes in buildFileTree receive child leaf paths instead of directory paths対応中かも @riteshvish02 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
sourcebot-dev/sourcebot#1707 ·
メンテナーはふだん 1 日以内に返信
-
fix(web): multiline highlight ranges are broken / omitted in LightweightCodeHighlighter対応中かも @riteshvish02 が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
sourcebot-dev/sourcebot#1698 ·
メンテナーはふだん 1 日以内に返信
-
[bug] Search result hydration performs duplicate repository lookups within the same chunk対応中かも @dipeshbabu が 10 日前に担当しました。 オープンbug triage needed
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
sourcebot-dev/sourcebot#1681 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Linux ctags build instructions in CONTRIBUTING.md are missing build dependencies対応中かも @The-AarushiSingh が 16 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
sourcebot-dev/sourcebot#1633 ·
メンテナーはふだん 1 日以内に返信
-
Generic Git URL configs keep percent-encoded repo names対応中かも @Tyagiquamar が 16 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
sourcebot-dev/sourcebot#1384 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
sourcebot-dev/sourcebot の issue をすべて見る
似ている issue
-
check:passed streams:add
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
[Bug] The shared instance selector's placeholder and no-match text ignore the display language対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
apache/rocketmq-dashboard#5561 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CopilotKit/OpenDots#69 ·
メンテナーはふだん 1 日以内に返信
-
sendDefaultPii is reported as deprecated on ReactNativeOptions although dataCollection is hiddenオープンBug React-Native Waiting for: Product Owner
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
getsentry/sentry-react-native#6830 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
OSCI'26
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
GauravKarakoti/SecureFlow#1215 ·
メンテナーはふだん 1 日以内に返信