Commit aad7874
authored
fix(embed): handle absolute file paths from native engine (#783)
* fix(embed): handle absolute file paths from native engine
The native engine stores absolute file paths in the DB. buildEmbeddings
unconditionally joined rootDir + file, doubling the path and causing
ENOENT for every symbol — producing 0 embeddings silently.
Check path.isAbsolute() before joining, and add a regression test that
inserts nodes with absolute paths to prevent recurrence.
Closes #760
* style: fix biome formatting in test1 parent 1101d24 commit aad7874
File tree
2 files changed
+39
-1
lines changed- src/domain/search
- tests/search
2 files changed
+39
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
292 | 330 | | |
293 | 331 | | |
294 | 332 | | |
| |||
0 commit comments