mirror of
https://github.com/nasa/fpp.git
synced 2025-12-15 12:58:25 -06:00
Revise error message for undefined symbols
This commit is contained in:
parent
e885756830
commit
305e5e02d7
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/component/array_undef_constant.fpp:2.29
|
||||
array A = [3] U32 default a
|
||||
^
|
||||
error: cannot find symbol `a`
|
||||
error: symbol a is not defined
|
||||
note: looking for a constant here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/component/array_undef_type.fpp:2.17
|
||||
array A = [3] T
|
||||
^
|
||||
error: cannot find symbol `T`
|
||||
error: symbol T is not defined
|
||||
note: looking for a type here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/component/enum_undef_constant.fpp:2.16
|
||||
enum E { X = a }
|
||||
^
|
||||
error: cannot find symbol `a`
|
||||
error: symbol a is not defined
|
||||
note: looking for a constant here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/component/enum_undef_type.fpp:2.12
|
||||
enum E : T { X }
|
||||
^
|
||||
error: cannot find symbol `T`
|
||||
error: symbol T is not defined
|
||||
note: looking for a type here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/component/struct_undef_constant.fpp:2.37
|
||||
struct S { x: U32 } default { x = a }
|
||||
^
|
||||
error: cannot find symbol `a`
|
||||
error: symbol a is not defined
|
||||
note: looking for a constant here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/component/struct_undef_type.fpp:2.17
|
||||
struct S { x: T }
|
||||
^
|
||||
error: cannot find symbol `T`
|
||||
error: symbol T is not defined
|
||||
note: looking for a type here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/component/undef_constant.fpp:2.16
|
||||
constant b = a
|
||||
^
|
||||
error: cannot find symbol `a`
|
||||
error: symbol a is not defined
|
||||
note: looking for a constant here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/component_instance_def/undef_component.fpp:1.13
|
||||
instance c: C base id 0x100
|
||||
^
|
||||
error: cannot find symbol `C`
|
||||
error: symbol C is not defined
|
||||
note: looking for a component here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/component_instance_spec/undef_instance.fpp:3.12
|
||||
instance c
|
||||
^
|
||||
error: cannot find symbol `c`
|
||||
error: symbol c is not defined
|
||||
note: looking for a component instance here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/connection_direct/undef_instance.fpp:3.5
|
||||
c.out -> c.in
|
||||
^
|
||||
error: cannot find symbol `c`
|
||||
error: symbol c is not defined
|
||||
note: looking for a component instance here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/connection_pattern/undef_source.fpp:2.31
|
||||
health connections instance $health
|
||||
^
|
||||
error: cannot find symbol `health`
|
||||
error: symbol health is not defined
|
||||
note: looking for a component instance here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/connection_pattern/undef_target.fpp:10.5
|
||||
c
|
||||
^
|
||||
error: cannot find symbol `c`
|
||||
error: symbol c is not defined
|
||||
note: looking for a component instance here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/constant/undef_1.fpp:1.14
|
||||
constant b = a
|
||||
^
|
||||
error: cannot find symbol `a`
|
||||
error: symbol a is not defined
|
||||
note: looking for a constant here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/constant/undef_2.fpp:1.14
|
||||
constant b = M.a
|
||||
^
|
||||
error: cannot find symbol `M`
|
||||
error: symbol M is not defined
|
||||
note: looking for a constant here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/constant/undef_3.fpp:2.16
|
||||
constant b = M.a
|
||||
^
|
||||
error: cannot find symbol `a`
|
||||
error: symbol a is not defined
|
||||
note: looking for a constant here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/enum/undef_constant_1.fpp:1.14
|
||||
enum E { X = a }
|
||||
^
|
||||
error: cannot find symbol `a`
|
||||
error: symbol a is not defined
|
||||
note: looking for a constant here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/enum/undef_constant_2.fpp:2.16
|
||||
constant a = E.X
|
||||
^
|
||||
error: cannot find symbol `X`
|
||||
error: symbol X is not defined
|
||||
note: looking for a constant here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/invalid_symbols/constant_as_type.fpp:2.15
|
||||
array A = [3] a
|
||||
^
|
||||
error: cannot find symbol `a`
|
||||
error: symbol a is not defined
|
||||
note: looking for a type here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/invalid_symbols/type_as_constant.fpp:2.14
|
||||
constant a = T
|
||||
^
|
||||
error: cannot find symbol `T`
|
||||
error: symbol T is not defined
|
||||
note: looking for a constant here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/port_instance/undef_command_recv.fpp:3.3
|
||||
command recv port cmdIn
|
||||
^
|
||||
error: cannot find symbol `Fw`
|
||||
error: symbol Fw is not defined
|
||||
note: looking for a port here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/port_instance/undef_command_reg.fpp:3.3
|
||||
command reg port cmdRegOut
|
||||
^
|
||||
error: cannot find symbol `Fw`
|
||||
error: symbol Fw is not defined
|
||||
note: looking for a port here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/port_instance/undef_command_resp.fpp:3.3
|
||||
command resp port cmdResponseOut
|
||||
^
|
||||
error: cannot find symbol `Fw`
|
||||
error: symbol Fw is not defined
|
||||
note: looking for a port here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/port_instance/undef_event.fpp:3.3
|
||||
event port eventOut
|
||||
^
|
||||
error: cannot find symbol `Fw`
|
||||
error: symbol Fw is not defined
|
||||
note: looking for a port here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/port_instance/undef_general.fpp:3.22
|
||||
sync input port p: P
|
||||
^
|
||||
error: cannot find symbol `P`
|
||||
error: symbol P is not defined
|
||||
note: looking for a port here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/port_instance/undef_param_get.fpp:3.3
|
||||
param get port paramGetOut
|
||||
^
|
||||
error: cannot find symbol `Fw`
|
||||
error: symbol Fw is not defined
|
||||
note: looking for a port here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/port_instance/undef_param_set.fpp:3.3
|
||||
param set port paramSetOut
|
||||
^
|
||||
error: cannot find symbol `Fw`
|
||||
error: symbol Fw is not defined
|
||||
note: looking for a port here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/port_instance/undef_product_recv.fpp:3.3
|
||||
async product recv port productRecvIn
|
||||
^
|
||||
error: cannot find symbol `Fw`
|
||||
error: symbol Fw is not defined
|
||||
note: looking for a port here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/port_instance/undef_product_request.fpp:3.3
|
||||
product request port productRequestOut
|
||||
^
|
||||
error: cannot find symbol `Fw`
|
||||
error: symbol Fw is not defined
|
||||
note: looking for a port here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/port_instance/undef_product_send.fpp:3.3
|
||||
product send port productSendOut
|
||||
^
|
||||
error: cannot find symbol `Fw`
|
||||
error: symbol Fw is not defined
|
||||
note: looking for a port here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/port_instance/undef_telemetry.fpp:3.3
|
||||
telemetry port tlmOut
|
||||
^
|
||||
error: cannot find symbol `Fw`
|
||||
error: symbol Fw is not defined
|
||||
note: looking for a port here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/port_instance/undef_text_event.fpp:3.3
|
||||
text event port eventOut
|
||||
^
|
||||
error: cannot find symbol `Fw`
|
||||
error: symbol Fw is not defined
|
||||
note: looking for a port here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/port_instance/undef_time_get.fpp:3.3
|
||||
time get port timeGetOut
|
||||
^
|
||||
error: cannot find symbol `Fw`
|
||||
error: symbol Fw is not defined
|
||||
note: looking for a port here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/spec_init/undef_phase.fpp:7.9
|
||||
phase P "c phase P"
|
||||
^
|
||||
error: cannot find symbol `P`
|
||||
error: symbol P is not defined
|
||||
note: looking for a constant here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/state_machine/types/action_undef_type.fpp:3.13
|
||||
action a: T
|
||||
^
|
||||
error: cannot find symbol `T`
|
||||
error: symbol T is not defined
|
||||
note: looking for a type here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/state_machine/types/guard_undef_type.fpp:3.12
|
||||
guard g: T
|
||||
^
|
||||
error: cannot find symbol `T`
|
||||
error: symbol T is not defined
|
||||
note: looking for a type here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/state_machine/types/signal_undef_type.fpp:3.13
|
||||
signal s: T
|
||||
^
|
||||
error: cannot find symbol `T`
|
||||
error: symbol T is not defined
|
||||
note: looking for a type here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/state_machine/undef/action_error.fpp:3.16
|
||||
initial do { a } enter S
|
||||
^
|
||||
error: cannot find symbol `a`
|
||||
error: symbol a is not defined
|
||||
note: looking for a action here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/state_machine/undef/choice_error.fpp:3.17
|
||||
initial enter C
|
||||
^
|
||||
error: cannot find symbol `C`
|
||||
error: symbol C is not defined
|
||||
note: looking for a state here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/state_machine/undef/guard_error.fpp:4.17
|
||||
choice C { if g enter S else enter S }
|
||||
^
|
||||
error: cannot find symbol `g`
|
||||
error: symbol g is not defined
|
||||
note: looking for a guard here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/state_machine/undef/nested_action_error.fpp:4.18
|
||||
initial do { a } enter T
|
||||
^
|
||||
error: cannot find symbol `a`
|
||||
error: symbol a is not defined
|
||||
note: looking for a action here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/state_machine/undef/nested_choice_error.fpp:6.19
|
||||
initial enter C
|
||||
^
|
||||
error: cannot find symbol `C`
|
||||
error: symbol C is not defined
|
||||
note: looking for a state here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/state_machine/undef/nested_guard_error.fpp:5.19
|
||||
choice C { if g enter S else enter S }
|
||||
^
|
||||
error: cannot find symbol `g`
|
||||
error: symbol g is not defined
|
||||
note: looking for a guard here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/state_machine/undef/nested_state_error.fpp:4.19
|
||||
initial enter T
|
||||
^
|
||||
error: cannot find symbol `T`
|
||||
error: symbol T is not defined
|
||||
note: looking for a state here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/state_machine/undef/signal_error.fpp:3.16
|
||||
state S { on s enter S }
|
||||
^
|
||||
error: cannot find symbol `s`
|
||||
error: symbol s is not defined
|
||||
note: looking for a signal here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/state_machine/undef/state_error.fpp:2.17
|
||||
initial enter S
|
||||
^
|
||||
error: cannot find symbol `S`
|
||||
error: symbol S is not defined
|
||||
note: looking for a state here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/state_machine_instance/undef_state_machine.fpp:3.30
|
||||
state machine instance s1: S
|
||||
^
|
||||
error: cannot find symbol `S`
|
||||
error: symbol S is not defined
|
||||
note: looking for a state machine here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/tlm_packets/instance_not_defined.fpp:6.7
|
||||
u.T
|
||||
^
|
||||
error: cannot find symbol `u`
|
||||
error: symbol u is not defined
|
||||
note: looking for a component instance here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/tlm_packets/omit_instance_not_defined.fpp:6.5
|
||||
u.T
|
||||
^
|
||||
error: cannot find symbol `u`
|
||||
error: symbol u is not defined
|
||||
note: looking for a component instance here
|
||||
|
||||
@ -2,5 +2,5 @@ fpp-check
|
||||
[ local path prefix ]/compiler/tools/fpp-check/test/top_import/undef_topology.fpp:3.10
|
||||
import A
|
||||
^
|
||||
error: cannot find symbol `A`
|
||||
error: symbol A is not defined
|
||||
note: looking for a topology here
|
||||
|
||||
@ -2,6 +2,6 @@ fpp-to-dict
|
||||
[ local path prefix ]/tools/fpp-to-dict/test/top/missingFwOpcodeType.fpp:26.1
|
||||
topology T {
|
||||
^
|
||||
error: cannot find symbol `FwOpcodeType`
|
||||
error: symbol FwOpcodeType is not defined
|
||||
note: looking for a type here
|
||||
note: when constructing a dictionary, the type FwOpcodeType must be defined
|
||||
|
||||
@ -2,6 +2,6 @@ fpp-to-dict
|
||||
[ local path prefix ]/tools/fpp-to-dict/test/top/missingUserDataSizeConstant.fpp:25.1
|
||||
topology T {
|
||||
^
|
||||
error: cannot find symbol `CONTAINER_USER_DATA_SIZE`
|
||||
error: symbol CONTAINER_USER_DATA_SIZE is not defined
|
||||
note: looking for a constant here
|
||||
note: when constructing a dictionary, the constant Fw.DpCfg.CONTAINER_USER_DATA_SIZE must be defined
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user