OrbCalculator issueshttps://gitlab.redox-os.org/redox-os/orbcalculator/-/issues2019-06-06T03:40:52Zhttps://gitlab.redox-os.org/redox-os/orbcalculator/-/issues/1Problem compiling in Linux Mint environment2019-06-06T03:40:52ZAndrzej BoruckiProblem compiling in Linux Mint environment<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<steps
cargo run
results:
Compiling rand_os v0.1.3
Compiling atty v0.2.11
Compiling termion v1.5.2
error: failed to run custom build command for `servo-freetype-sys v4.0.5`
process didn't exit succe...<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<steps
cargo run
results:
Compiling rand_os v0.1.3
Compiling atty v0.2.11
Compiling termion v1.5.2
error: failed to run custom build command for `servo-freetype-sys v4.0.5`
process didn't exit successfully: `/home/andrzej-borucki/projects/orbcalculator/target/debug/build/servo-freetype-sys-9faa07ea38def83d/build-script-build` (exit code: 101)
--- stdout
running: "cmake" "/home/andrzej-borucki/.cargo/registry/src/github.com-1ecc6299db9ec823/servo-freetype-sys-4.0.5/freetype2" "-DWITH_BZip2=OFF" "-DWITH_HarfBuzz=OFF" "-DWITH_PNG=OFF" "-DWITH_ZLIB=OFF" "-DCMAKE_INSTALL_PREFIX=/home/andrzej-borucki/projects/orbcalculator/target/debug/build/servo-freetype-sys-01d8e2ae465975e1/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_BUILD_TYPE=Release"https://gitlab.redox-os.org/redox-os/orbcalculator/-/issues/2Undeclared ident 'Property'2020-02-20T09:17:26ZAndrzej BoruckiUndeclared ident 'Property'cargo build, Linux Mint 19.1 Tessa
>>>
/home/andrzej-borucki/.cargo/bin/cargo build --color=always --all --all-targets
Compiling calculator v0.1.0 (/home/andrzej-borucki/projects/orbcalculator)
error[E0433]: failed to resolve: use of...cargo build, Linux Mint 19.1 Tessa
>>>
/home/andrzej-borucki/.cargo/bin/cargo build --color=always --all --all-targets
Compiling calculator v0.1.0 (/home/andrzej-borucki/projects/orbcalculator)
error[E0433]: failed to resolve: use of undeclared type or module `Property`
--> src/main.rs:59:16
|
59 | label: Property::new(Label(sight.clone())),
| ^^^^^^^^ use of undeclared type or module `Property`
error[E0433]: failed to resolve: use of undeclared type or module `Property`
--> src/main.rs:69:20
|
69 | selector: (Property::new(Selector::new(Some(String::from("calculatorbutton"))))),
| ^^^^^^^^ use of undeclared type or module `Property`
error[E0407]: method `template` is not a member of trait `Widget`
--> src/main.rs:80:5
|
80 | / fn template(&self) -> Template {
81 | | let eval_state = self.state.clone();
82 | | let clear_state = self.state.clone();
83 | |
... |
230 | | }))
231 | | }
| |_____^ not a member of trait `Widget`
error[E0433]: failed to resolve: use of undeclared type or module `Property`
--> src/main.rs:189:40
|
189 | label: Property::new(Label(String::from("C"))),
| ^^^^^^^^ use of undeclared type or module `Property`
error[E0433]: failed to resolve: use of undeclared type or module `Property`
--> src/main.rs:199:44
|
199 | selector: (Property::new(Selector::new(Some(String::from(
| ^^^^^^^^ use of undeclared type or module `Property`
error[E0433]: failed to resolve: use of undeclared type or module `Property`
--> src/main.rs:208:40
|
208 | label: Property::new(Label(String::from("="))),
| ^^^^^^^^ use of undeclared type or module `Property`
error[E0433]: failed to resolve: use of undeclared type or module `Property`
--> src/main.rs:59:16
|
59 | label: Property::new(Label(sight.clone())),
| ^^^^^^^^ use of undeclared type or module `Property`
error[E0433]: failed to resolve: use of undeclared type or module `Property`
--> src/main.rs:69:20
|
69 | selector: (Property::new(Selector::new(Some(String::from("calculatorbutton"))))),
| ^^^^^^^^ use of undeclared type or module `Property`
error[E0433]: failed to resolve: use of undeclared type or module `Property`
--> src/main.rs:218:44
|
218 | selector: (Property::new(Selector::new(Some(String::from(
| ^^^^^^^^ use of undeclared type or module `Property`
error[E0407]: method `properties` is not a member of trait `Widget`
--> src/main.rs:233:5
|
233 | / fn properties(&self) -> Vec<PropertyResult> {
234 | | vec![self.result.build()]
235 | | }
| |_____^ not a member of trait `Widget`
....
>>>https://gitlab.redox-os.org/redox-os/orbcalculator/-/issues/3`^` operator should be exponentiation2020-02-20T09:17:14ZMax Blachman`^` operator should be exponentiationIn orbcalculator, the `^` operator represents binary xor, but average computer users doesn't know what binary is. It would make more sense for `^` to represent exponentiation.
As far as I can tell, orbcalculator directly passes user inp...In orbcalculator, the `^` operator represents binary xor, but average computer users doesn't know what binary is. It would make more sense for `^` to represent exponentiation.
As far as I can tell, orbcalculator directly passes user input to the `calculate` crate, so there would have to be a slight architectural shift to change the behavior of `^`