Skip to content

Commit 263b33e

Browse files
Fixed formatting issue and Linux test running issues
1 parent 4f265fd commit 263b33e

3 files changed

Lines changed: 204 additions & 212 deletions

File tree

crates/cli/src/subcommands/generate.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub fn cli() -> clap::Command {
8282
.long("module-name")
8383
.help("The module name that should be used for DLL export macros (required for lang unrealcpp)")
8484
.required_if_eq("lang", "unrealcpp")
85-
)
85+
)
8686
.arg(
8787
Arg::new("lang")
8888
.required(true)
@@ -105,7 +105,7 @@ pub fn cli() -> clap::Command {
105105
clap::ArgGroup::new("output_dir")
106106
.args(["out_dir", "uproject_dir"])
107107
.required(true)
108-
)
108+
)
109109
}
110110

111111
pub async fn exec(config: Config, args: &clap::ArgMatches) -> anyhow::Result<()> {
@@ -189,7 +189,7 @@ pub async fn exec_ex(
189189
paths.insert(path);
190190
}
191191

192-
// For Unreal, we want to clean up just the module directory, not the entire uproject directory tree.
192+
// For Unreal, we want to clean up just the module directory, not the entire uproject directory tree.
193193
let cleanup_root = match lang {
194194
Language::UnrealCpp => out_dir.join("Source").join(module_name.as_ref().unwrap()),
195195
_ => out_dir.clone(),
@@ -276,10 +276,10 @@ impl Language {
276276
Language::Csharp => dotnet_format(generated_files)?,
277277
Language::TypeScript => {
278278
// TODO: implement formatting.
279-
},
279+
}
280280
Language::UnrealCpp => {
281281
// TODO: implement formatting.
282-
}
282+
}
283283
}
284284

285285
Ok(())

sdks/unreal/tests/TestClient/TestClient.uproject

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
]
2020
}
2121
],
22-
"_Note": "Plugin path is hardcoded. Make sure to point to your SpacetimeDB plugin roots directory, exact location.",
2322
"AdditionalPluginDirectories": [
24-
"E:/Projects/ClockworkLabs/SpacetimeDB-unreal/crates/sdk-unreal/src"
23+
"../../src"
2524
]
2625
}

0 commit comments

Comments
 (0)