Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error #8

Open
werdahias opened this issue Jan 12, 2022 · 5 comments
Open

Compilation error #8

werdahias opened this issue Jan 12, 2022 · 5 comments

Comments

@werdahias
Copy link

I am unable to compile the project.

OS: Debian testing
rustc: 1.56.0

Error message:

error[E0308]: mismatched types
  --> src/reader.rs:44:9
   |
43 |     pub(crate) fn bytes(&self) -> &[u8] {
   |                                   ----- expected `&[u8]` because of return type
44 |         self.0.bytes()
   |         ^^^^^^^^^^^^^^ expected `&[u8]`, found struct `std::io::Bytes`
   |
   = note: expected reference `&[u8]`
                 found struct `std::io::Bytes<&[u8]>`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `onenote_parser` due to previous error
@msiemens
Copy link
Owner

Hey @CountOmega, I've tried to reproduce this with Debian Testing (bookworm/sid) and Rust 1.56.0 and both the latest master branch as well as the v0.3.0 version compile just fine for me. Can you verify you're using the latest version? Have you maybe modified the source code, maybe by accident?

@werdahias
Copy link
Author

Yeah it worked with re-cloning and rebuilding, no idea why. Can I contribute for support of .one files exported out of the desktop application?

@msiemens
Copy link
Owner

Yeah it worked with re-cloning and rebuilding, no idea why

Strange. But glad you've got it to work 🙂

Can I contribute for support of .one files exported out of the desktop application?

Absolutely! I'm thankful for every contribution!

@werdahias
Copy link
Author

Can you provide me with some kind of documentation for the .one 2016 file format?

@msiemens
Copy link
Owner

Sure! The main source is in https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-onestore/ae670cd2-4b38-4b24-82d1-87cfb2cc3725 which describes the Microsoft OneNote Revision Store File Format. Basically this is the container format that OneNote data is stored in. There is also an existing project called LibMsON which implements the OneNote 2016 file format in C++ and helped me understand how OneNote data is structured and arranged (even if the details differ in the OneNote FSSHTTP packaging format).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants