Skip to content

Commit 033e23e

Browse files
author
tkucar
committed
handle json decoder error
1 parent 64240e6 commit 033e23e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ source .venv/bin/activate
3434
uv sync --dev
3535
```
3636

37+
> [!TIP]
38+
> - If sync fails with `missing field 'version'`, you may need to delete lockfile and rerun `rm uv.lock && uv sync --dev`.
39+
> - If sync fails with failed compilation, you may need to install clang and rerun `uv sync --dev`.
40+
3741
### Running Tests
3842

3943
```bash

src/graph_sitter/testing/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
try:
2828
REPO_ID_TO_URL = json.loads((TEST_DIR / "repos" / "repos.json").read_text())
29-
except FileNotFoundError:
29+
except (FileNotFoundError, json.decoder.JSONDecodeError):
3030
REPO_ID_TO_URL = {}
3131
if TYPE_CHECKING:
3232
from graph_sitter.codemod import Codemod3

0 commit comments

Comments
 (0)