Skip to content

Commit

Permalink
Merge pull request #747 from AmbientRun/fix-semantics
Browse files Browse the repository at this point in the history
fix(web): semantic packages
  • Loading branch information
ten3roberts authored Aug 25, 2023
2 parents b54193d + 4f1394f commit c9bbdca
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion crates/network/src/diff_serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,9 @@ impl<'a, 'de> serde::de::Visitor<'de> for NetworkedComponentDescVisitor<'a> {
let component = with_component_registry(|r| r.get_by_path(path));
match component {
Some(desc) => Ok(desc),
None => Err(serde::de::Error::custom(format!("No such component: {v}"))),
None => Err(serde::de::Error::custom(format!(
"Encountered unknown networked component: {v} {path:?}"
))),
}
}
None => Err(serde::de::Error::custom(format!(
Expand Down
1 change: 1 addition & 0 deletions web/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ ambient_ecs_editor = { path = "../crates/ecs_editor" }
ambient_debugger = { path = "../crates/debugger" }
ambient_primitives = { path = "../crates/primitives" }
ambient_client_shared = { path = "../crates/client_shared/" }
ambient_package_semantic_native = { path = "../crates/package_semantic_native/" }

url = "2.3"
anyhow = "1.0"
Expand Down
1 change: 1 addition & 0 deletions web/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ ambient_layout = { workspace = true }
ambient_debugger = { workspace = true }
ambient_primitives = { workspace = true }
ambient_client_shared = { workspace = true }
ambient_package_semantic_native = { workspace = true }

url = { workspace = true }
anyhow = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions web/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ pub fn init_ambient(logging: bool, panic: bool) {
ambient_world_audio::init_components();
ambient_wasm::shared::init_all_components();
ambient_primitives::init_components();
ambient_package_semantic_native::init_components();
}

#[wasm_bindgen]
Expand Down
2 changes: 1 addition & 1 deletion web/www/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ import("ambient_web")
return;
}

ambient.start(target, "https://api.ambient.run/servers/ensure-running?package_id=ambient_example_asset_loading");
ambient.start(target, "https://127.0.0.1:9000");
// setupAudio();
});

0 comments on commit c9bbdca

Please sign in to comment.