DorianRudolph/sirula

Error when Compiling

slbsh opened this issue · 8 comments

slbsh commented

this happenned on both the sirula 1.0.0-2 and sirula-git r69.bf216d7-2 AUR packages

error: expected one of `(`, `.`, `::`, `;`, `?`, `}`, or an operator, found `:`
   --> /home/slab/.cargo/registry/src/index.crates.io-6f17d22bba15001f/osstrtools-0.2.2/src/lib.rs:754:42
    |
754 |         unsafe { (bytes as *const _).cast:() }
    |                                          ^ expected one of 7 possible tokens

error: could not compile `osstrtools` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...

rabite0/osstrtools#4
But upstream is dead so probably won't be merged

Is that lib even needed? From a VERY fast skim, it seems like it's just used for a new prototype that is now available on OsStr directly? cc: @DorianRudolph

getting

error[E0599]: no method named `quote_single` found for reference `&OsStr` in the current scope
  --> src/util.rs:95:10
   |
90 |           let command = (match info.commandline() {
   |  _______________________-
91 | |             Some(c) => c,
92 | |             _ => info.executable(),
93 | |         })
94 | |         .as_os_str()
95 | |         .quote_single();
   | |         -^^^^^^^^^^^^ method not found in `&OsStr`
   | |_________|
   |

error[E0599]: no method named `replace` found for reference `&OsStr` in the current scope
  --> src/util.rs:98:30
   |
98 |             OsStr::new(term).replace("{}", command)
   |                              ^^^^^^^ method not found in `&OsStr`

after removing use osstrtools...

Yeah, there's definitely some more stuff used. I tried copying out the relevant bits from osstrtools into util.rs but... I lost interest and gave up. I don't really have bandwidth to keep playing with this right now. :/

Thanks for reporting, it should work now

@DorianRudolph would you mind doing a release? :)

@frederictobiasc what kind of release do you mean?

eg. creating a tag with a new version number so that I can bump the package repositories.