You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will be fixed with #938 although validations seem to be missing to get a clear answer why the codegen failed here. Specifically this assignment arr_struct2 := (var1 := 'Type', var2 := 3, var3 := 2) has to start with a leading [ symbol, i.e. arr_struct2 := [(var1 := 'Type', var2 := 3, var3 := 2)]. Can you re-check this just to be sure @rarris ?
Edit: Validation doesn't happen because we never enter here
err:
thread 'main' panicked at 'called
Result::unwrap()
on anErr
value: CombinedDiagnostic { message: "Some initial values were not generated", inner_diagnostics: [SyntaxError { message: "Cannot generate literal initializer for 'STRUCT1.Node': Value cannot be derived", range: [SourceRange { range: 79..349, file: Some("...\src\STRUCT1.dt") }, SourceRange { range: 5..12, file: Some("...\src\STRUCT1.dt") }], err_no: codegen__general }], err_no: codegen__general }', compiler\plc_driver./src/main.rs:7:32note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceThe text was updated successfully, but these errors were encountered: