File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/robot/src/robotcode/robot/diagnostics Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1527,11 +1527,11 @@ def _get_entry_for_resource_import(
1527
1527
variables : Optional [Dict [str , Any ]] = None ,
1528
1528
) -> _ResourcesEntry :
1529
1529
source = self .find_resource (name , base_dir , variables = variables )
1530
+ source_path = normalized_path (Path (source ))
1530
1531
1531
1532
def _get_document () -> TextDocument :
1532
- self ._logger .debug (lambda : f"Load resource { name } from source { source } " , context_name = "import" )
1533
+ self ._logger .debug (lambda : f"Load resource { name } from source { source_path } " , context_name = "import" )
1533
1534
1534
- source_path = normalized_path (Path (source ))
1535
1535
extension = source_path .suffix
1536
1536
if extension .lower () not in RESOURCE_EXTENSIONS :
1537
1537
raise ImportError (
@@ -1541,7 +1541,7 @@ def _get_document() -> TextDocument:
1541
1541
1542
1542
return self .documents_manager .get_or_open_document (source_path )
1543
1543
1544
- entry_key = _ResourcesEntryKey (source )
1544
+ entry_key = _ResourcesEntryKey (str ( source_path ) )
1545
1545
1546
1546
with self ._resources_lock :
1547
1547
if entry_key not in self ._resources :
You can’t perform that action at this time.
0 commit comments