sourcebot icon indicating copy to clipboard operation
sourcebot copied to clipboard

[bug] "Error loading file source" when viewing locally indexed repository

Open brendan-kellam opened this issue 1 year ago • 3 comments

Describe the bug

When I try to view a locally indexed repository (i.e., connection type git), I'm hitting the following:

Image

To reproduce

  1. Create a config with a local repository:
{
    "$schema": "./schemas/v3/index.json",
    "connections": {
        "local-repo": {
            "type": "git",
            "url": "file:///path/to/local/repo"
        }
    }
}
  1. Navigate to the file browser and try to view a file

Sourcebot deployment information

Sourcebot version (e.g. v3.0.1): v4.8.1

Additional information

No response

brendan-kellam avatar Oct 31 '25 05:10 brendan-kellam

+1 on this. I have also ran into this intermittently for bitbucket server repos. Haven't been able to track down a consistent way to reproduce it though. Sometimes it throws this error and other times it doesnt for the same repo/file that i am trying to view

CyberT17 avatar Nov 04 '25 16:11 CyberT17

Hey @brendan-kellam, are you still working on this? I would like to try fixing it

Anshul439 avatar Nov 22 '25 05:11 Anshul439

Closing as duplicate of https://github.com/sourcebot-dev/sourcebot/issues/664 and since this isn't specific to locally indexed repos. I was also not able to repro on my side

msukkari avatar Jan 07 '26 23:01 msukkari