processing / processing/libprocessing

Call to undeclared geometry function/attribute in wasm crate

Open Beginner friendly
#233 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
69
Forks
14
Avg merge
15d 22h
Merged PRs (30d)
3

Description

Hey!
I was playing around with libprocessing today and couldn't build because of a undeclared call to geometry_attribute_dead in the wasm crate. From what i understand, there's no dead attribute in the geometry crate, but i'm no Rust or Bevy expert (yet! :D)

https://github.com/processing/libprocessing/blob/f6a9c4bf48e51bfa78143e10a97069fa44492860/crates/processing_wasm/src/lib.rs#L2285

https://github.com/processing/libprocessing/blob/f6a9c4bf48e51bfa78143e10a97069fa44492860/crates/processing_render/src/geometry/attribute.rs#L220-L231

https://github.com/processing/libprocessing/blob/f6a9c4bf48e51bfa78143e10a97069fa44492860/crates/processing_render/src/geometry/attribute.rs#L293-L308

I got it to work by commenting the whole binding like so :

/*
#[wasm_bindgen(js_name = "geometryAttributeDead")]
pub fn js_geometry_attribute_dead() -> u64 {
    geometry_attribute_dead().to_bits()
}
*/

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at crates/processing_wasm/src/lib.rs around line 2285 and compare the geometry_attribute_dead binding with the declarations in crates/processing_render/src/geometry/attribute.rs around lines 220-231 and 293-308. Run the wasm crate build to reproduce the undeclared-call error; done means the binding matches an available geometry function or is otherwise corrected and the crate builds successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, wasm
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
82/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.