Commit ec26da9
Add pre-flight diagnostics for smart match to surface the actual error
Before spawning the Python script, the IPC handler now:
1. Logs Python path, script path, course dir, and dir existence
2. Runs a quick import check (numpy, fitz, sentence_transformers)
and immediately returns a clear error if any are missing:
"Python (/path) is missing packages: fitz. Reinstall ML environment."
3. On failure, shows full diagnostics in the terminal panel (not just
a vague snackbar) with possible causes listed
This should reveal exactly why smart match fails on the user's machine.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b93f64c commit ec26da9
2 files changed
Lines changed: 47 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
997 | 997 | | |
998 | 998 | | |
999 | 999 | | |
1000 | | - | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
1001 | 1035 | | |
1002 | 1036 | | |
1003 | 1037 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1503 | 1503 | | |
1504 | 1504 | | |
1505 | 1505 | | |
1506 | | - | |
1507 | | - | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
1508 | 1510 | | |
1509 | 1511 | | |
1510 | 1512 | | |
1511 | 1513 | | |
1512 | | - | |
1513 | | - | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
1514 | 1522 | | |
1515 | 1523 | | |
1516 | 1524 | | |
| |||
0 commit comments