Skip to content

Commit

Permalink
fix project config
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Mar 1, 2025
1 parent 5f8f1bf commit 80942e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd_kcl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1059,8 +1059,8 @@ fn get_modeling_settings_from_project_toml(input: &std::path::Path) -> Result<kc
let project_toml = find_project_toml(&dir)?;
if let Some(project_toml) = project_toml {
let project_toml = std::fs::read_to_string(&project_toml)?;
let project_toml: kcl_lib::Configuration = toml::from_str(&project_toml)?;
let mut settings: kcl_lib::ExecutorSettings = project_toml.settings.modeling.into();
let project_toml: kcl_lib::ProjectConfiguration = toml::from_str(&project_toml)?;
let mut settings: kcl_lib::ExecutorSettings = project_toml.into();
settings.with_current_file(input.into());
Ok(settings)
} else {
Expand Down

0 comments on commit 80942e6

Please sign in to comment.