ESROCOS/esrocos.github.io

esrocos_fetch_dependencies fails on empty project

Opened this issue · 5 comments

..during the creation of a new project, steps (as from the tutorial )

$ esrocos_create_project first_project
init esrocos project...
no file found, creating..
Please enter the projects OS dependencies, proceed by pressing return
> 
[]
Please enter package dependencies, proceed by pressing return
> types/base
> types/core
> 
['types/base', 'types/core']
please make sure these packages are either other locally developed esrocos components or to give additional version control information in the esrocos.yml
create folder structure...	DONE
create asn file...		DONE
generate acn files...		DONE
generate data view files...	DONE
generate CMakeLists.txt...	DONE
generate package-config file...	DONE
ESROCOS project initialized successfully.

Then

cd first_project
esrocos_fetch_dependencies

Returns

locally installing shared components...	DONE
locally installing shared types...	DONE
compiling types to aadl...		File:Logger.asn, line:26, Unknown module 'TASTE-BasicTypes'

ASN1SCC reported semantic errors (or mono failed). Aborting...

DONE

For some reasons, the folder installed_types/base/asn is empty after invoking esrocos_fetch_dependencies.
Temporal solution:
Copying manually the .asn files (from repo, or from esrocos_workspace/types/base/asn

Will investigate that

Should be fixed by latest tools/workflow update.

How can I update this from an existing installation?

Normally calling aup and amake consecutively from the worspace root (probably ~/esrocos_workspace) should be enough.

Else try to delete the file esrocos_fetch_dependencies from ~/esrocos_workspace/tools/workflow/bin/ then cd back into the workspace root folder (~/esrocos_workspace) and call aup and amake consecutively.