diff --git a/kclvm/api/src/service/service_impl.rs b/kclvm/api/src/service/service_impl.rs index 6b656de4e..db1a0ca2a 100644 --- a/kclvm/api/src/service/service_impl.rs +++ b/kclvm/api/src/service/service_impl.rs @@ -252,7 +252,10 @@ impl KclvmServiceImpl { CompilationOptions { k_files: exec_args.clone().k_filename_list, loader_opts: Some(exec_args.get_load_program_options()), - resolve_opts: Options::default(), + resolve_opts: Options { + resolve_val: true, + ..Default::default() + }, get_schema_opts: GetSchemaOption::default(), }, )? {