robocomp / robocomp_tools

RoboComp is a cutting-edge open-source robotics framework providing tools to easily create, modify and manage robot software components.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

robocompdsl: better output when .idsl file not found

orensbruli opened this issue · comments

[08:43:00] Dependency file not found for testcomp.cdsl while generating AST.                                                                                              filesgenerator.py:78
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/robocompdsl/common/filesgenerator.py", line 72, in __load_ast
    self.ast = dsl_factory.DSLFactory().from_file(self.dsl_file, include_directories=self.include_dirs)
  File "/usr/local/lib/python3.10/dist-packages/robocompdsl/dsl_parsers/dsl_factory.py", line 94, in from_file
    result, parser = self.from_string(string, dsl_type, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/robocompdsl/dsl_parsers/dsl_factory.py", line 48, in from_string
    result = parser.string_to_struct(string, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/robocompdsl/dsl_parsers/specific_parsers/cdsl/cdsl_parser.py", line 126, in string_to_struct
    component.recursiveImports = generate_recursive_imports(list(component.imports), self._include_directories)
  File "/usr/local/lib/python3.10/dist-packages/robocompdsl/dsl_parsers/parsing_utils.py", line 27, in generate_recursive_imports
    raise FileNotFoundError(f'generate_recursive_imports: Couldn\'t locate {idsl_basename} in {new_idsl_path}')
FileNotFoundError: generate_recursive_imports: Couldn't locate AprilBasedLocalization.idsl in None