error: No type assignment with name foo found in the module bar
#245
-
|
Hi, I am trying to factor my types as much as possible in my I define a simple COMMAND DEFINITIONS::=
BEGIN
CMD-HEADER ::= SEQUENCE {
arg1 INTEGER(1 .. 4),
arg2 INTEGER(1 .. 3)
}
CMD-STANDBY ::= SEQUENCE {
header CMD-HEADER
}
ENDThe Do you have any idea how to solve this problem? I saw that there was no problem if I defined the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I can't reproduce. Can you attach the file that is causing the issue? Also please provide the command line you used. and I got no errors. |
Beta Was this translation helpful? Give feedback.
-
|
Ok thanks I found the error thanks to your remark @maxime-esa. I have two In my list of asn1files="$BASE_DIR/template/Commands.asn
$BASE_DIR/template/Telemetry.asn
$BASE_DIR/icd_foo/Commands.asn
$BASE_DIR/icd_foo/Telemetry.asn"The Now that I have changed the name of the second I will be more careful to make sure that the name of each module is unique in the future! PS: I don't know why there is a missing "S" in the snippet I shared, I thought I copied/pasted and not rewrote. 🤔 |
Beta Was this translation helpful? Give feedback.
Ok thanks I found the error thanks to your remark @maxime-esa.
I have two
Commands.asnfiles in two different folders and each defines theCOMMANDSmodule.In my list of
ASN.1files that I send to the compiler I had :The
CMD-HEADERobject is only defined in theicd_foo/Commands.asnfile. So there must be some kind of module name conflict or something.Now that I have changed the name of the second
COMMANDSmodule, I no longer have the error.I will be more careful to make sure that the name of each module is unique in…