Closed dcompoze closed 2 years ago
Not quite sure why. I updated the Cargo.lock
and it appears to work?
It is probably time to remove the Cargo.lock
entirely. It only causes problems.
@s3bk You could try cargo update
or cargo clean
maybe that helps to reproduce the error? I think removing Cargo.lock would only serve to potentially get more of these problems
I ran cargo update
, and I managed to compile it afterwards.
Although the resulting view
binary seems to not work:
$ ./target/release/view example.pdf
Error: Try { file: "/home/foo/.cargo/git/checkouts/pdf-3ef1c528a9b91eec/baa9235/pdf/src/file.rs", line: 277, column: 23, source: FromPrimitive { typ: "RcRef < Catalog >", field: "root", source: Try { file: "/home/foo/.cargo/git/checkouts/pdf-3ef1c528a9b91eec/baa9235/pdf/src/file.rs", line: 93, column: 25, source: NullRef { obj_nr: 1 } } } }
It looks like the PDF has no catalog? Broken files are not really supported at the moment.
@s3bk
I took the file from the pdf-rs/pdf/files/example.pdf
is that file broken?
I also tried a couple of other pdf
files and all of them cause an error like the above.
Hm. then something is really broken. I will try to fix it today.
Great, that seems to have fixed it (at least for simple pdf files). Thanks!
Hi, I'm trying to compile this project with
cargo +nightly build --bin view --release
but I get the following errors:Which looks like there are some missing types in the
pdf
library, even though I'm using the sameCargo.lock
from master.