Repository navigation
Commit 62c81a6
committed
Prevent infinite loops during parent directory traversal and add path validation checks
- [calculate_directory_tokens] Error calculating tokens for directory /Users/robert/Development/Amaztours/app/packages/static/.next/types Error: ENOENT: no such file or directory, scandir '/Users/robert/Development/Amaztours/app/packages/static/.next/types' [robertpiosik.gemini-coder]path must not be empty $onExtensionRuntimeError @ mainThreadExtensionService.ts:79 mainThreadExtensionService.ts:80 TypeError: path must not be empty at P (
├── apps
│ └── editor
│ └── src
│ ├── context
│ │ ├── context-initialization.ts
│ │ └── providers
│ │ └── workspace
│ │ ├── modules
│ │ │ └── token-calculator.ts
│ │ └── workspace-provider.ts
│ └── extension.ts
└── packages
└── shared
└── src
└── utils
└── logger.ts1 parent 336a4ac commit 62c81a6
2 files changed
Lines changed: 26 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
366 | 368 | | |
367 | 369 | | |
368 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
| |||
407 | 409 | | |
408 | 410 | | |
409 | 411 | | |
410 | | - | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
411 | 415 | | |
412 | 416 | | |
413 | 417 | | |
| |||
468 | 472 | | |
469 | 473 | | |
470 | 474 | | |
471 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
472 | 478 | | |
473 | 479 | | |
474 | 480 | | |
475 | 481 | | |
476 | 482 | | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
481 | 489 | | |
482 | 490 | | |
483 | 491 | | |
| |||
1013 | 1021 | | |
1014 | 1022 | | |
1015 | 1023 | | |
1016 | | - | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
1017 | 1027 | | |
1018 | 1028 | | |
1019 | 1029 | | |
| |||
1308 | 1318 | | |
1309 | 1319 | | |
1310 | 1320 | | |
1311 | | - | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
1312 | 1324 | | |
1313 | 1325 | | |
1314 | 1326 | | |
| |||
1438 | 1450 | | |
1439 | 1451 | | |
1440 | 1452 | | |
| 1453 | + | |
1441 | 1454 | | |
1442 | 1455 | | |
1443 | 1456 | | |
1444 | 1457 | | |
1445 | 1458 | | |
1446 | 1459 | | |
| 1460 | + | |
1447 | 1461 | | |
1448 | 1462 | | |
1449 | 1463 | | |
| |||
0 commit comments