silicon
silicon copied to clipboard
Latest update is failing to compile
Installing through cargo install.
Compiling pasteboard v0.1.2
error[E0308]: mismatched types
--> /Users/augusto/.cargo/registry/src/github.com-1ecc6299db9ec823/pasteboard-0.1.2/src/lib.rs:75:12
|
75 | if ok {
| ^^ expected `bool`, found `i8`
error[E0308]: mismatched types
--> /Users/augusto/.cargo/registry/src/github.com-1ecc6299db9ec823/pasteboard-0.1.2/src/lib.rs:82:59
|
82 | NSData::writeToFile_atomically_(object, path, false);
| ^^^^^ expected `i8`, found `bool`
error: aborting due to 2 previous errors
Are you using Big Sur?
Yes I am @Aloxaf
Which version of big sur are you running?
11.2.2
@segeljakt It seems that not all Big Sur run on arm device.
Replacing custom big_sur_update with target_arch = "aarch64" may be a better choice?
ref. https://github.com/SSheldon/rust-objc/blob/master/src/runtime.rs#L27-L28
Ok, interesting, I can upload a patch later today
Any update on this?
Any update on this (as it does impact on the silicon 0.4.1 build)?
@chenrui333 I dropped the clipboard support on macOS arm. Please check if it could be built on macOS Big Sur now.
I see this same issue.
$ rustc --version
rustc 1.52.1 (9bc8c42bb 2021-05-09)
$ sw_vers
ProductName: macOS
ProductVersion: 11.3.1
BuildVersion: 20E241
error[E0308]: mismatched types
--> /Users/mjm/.cargo/registry/src/github.com-1ecc6299db9ec823/pasteboard-0.1.2/src/lib.rs:75:12
|
75 | if ok {
| ^^ expected `bool`, found `i8`
error[E0308]: mismatched types
--> /Users/mjm/.cargo/registry/src/github.com-1ecc6299db9ec823/pasteboard-0.1.2/src/lib.rs:82:59
|
82 | NSData::writeToFile_atomically_(object, path, false);
| ^^^^^ expected `i8`, found `bool`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0308`.
error: could not compile `pasteboard`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
@mikemadden42 Can git version be compiled?
Big apologies for the long wait. I pushed an update to pasteboard (now pasteboard = 0.1.3) which should hopefully fix this issue. If not then please report back. It works for me now on macOS 11.4.0.
Thanks @segeljakt . Updating to pasteboard v0.1.3 fixed the build issue I was seeing on macOS Big Sur.
@segeljakt @Aloxaf Do you think we should update this version of pasteboard in master so this builds cleanly on macOS Big Sur?
https://github.com/Aloxaf/silicon/blob/master/Cargo.toml#L25
@segeljakt Thanks!
@mikemadden42 Done!
I can confirm this commit fixed the build issue, and we have made the upgrade in the homebrew-core side