Commit 45d8f9f
committed
fix(robot): resolve relative library paths in namespace cache validation
Namespace cache validation failed for files importing libraries via
relative paths (e.g. ../../resources/libraries/common.py), causing
unnecessary full rebuilds on every warm start.
Two issues fixed:
- validate_namespace_meta now passes the source file's directory as
base_dir when falling back to get_library_meta/get_variables_meta,
so relative paths resolve correctly
- get_library_meta and get_variables_meta initialize import_name
before the try block to avoid UnboundLocalError when find_library
or find_variables fails1 parent 1d4ba6b commit 45d8f9f
File tree
1 file changed
+5
-2
lines changed- packages/robot/src/robotcode/robot/diagnostics
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
821 | 821 | | |
822 | 822 | | |
823 | 823 | | |
| 824 | + | |
824 | 825 | | |
825 | 826 | | |
826 | 827 | | |
827 | 828 | | |
828 | 829 | | |
829 | 830 | | |
830 | | - | |
| 831 | + | |
831 | 832 | | |
832 | 833 | | |
833 | 834 | | |
| |||
851 | 852 | | |
852 | 853 | | |
853 | 854 | | |
854 | | - | |
| 855 | + | |
855 | 856 | | |
856 | 857 | | |
857 | 858 | | |
| |||
1204 | 1205 | | |
1205 | 1206 | | |
1206 | 1207 | | |
| 1208 | + | |
1207 | 1209 | | |
1208 | 1210 | | |
1209 | 1211 | | |
| |||
1278 | 1280 | | |
1279 | 1281 | | |
1280 | 1282 | | |
| 1283 | + | |
1281 | 1284 | | |
1282 | 1285 | | |
1283 | 1286 | | |
| |||
0 commit comments