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

v0.1.6: compilation error with Rust 1.56.0 #4

Closed
herbygillot opened this issue Oct 23, 2021 · 14 comments
Closed

v0.1.6: compilation error with Rust 1.56.0 #4

herbygillot opened this issue Oct 23, 2021 · 14 comments

Comments

@herbygillot
Copy link
Contributor

herbygillot commented Oct 23, 2021

Compilation failed on macOS Catalina 10.15.7 when trying to compile hgrep v0.1.6 using Rust 1.56.0:

error: couldn't read src/../assets/bat/assets/syntaxes.bin: No such file or directory (os error 2)
  --> src/syntect.rs:27:31
   |
27 | const SYNTAX_SET_BIN: &[u8] = include_bytes!("../assets/bat/assets/syntaxes.bin");
   |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)

error: couldn't read src/../assets/bat/assets/themes.bin: No such file or directory (os error 2)
  --> src/syntect.rs:28:30
   |
28 | const THEME_SET_BIN: &[u8] = include_bytes!("../assets/bat/assets/themes.bin");
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `hgrep` due to 2 previous errors

@rhysd
Copy link
Owner

rhysd commented Oct 23, 2021

I think it was already fixed on the head of main branch. Which revision did you try?

@rhysd
Copy link
Owner

rhysd commented Oct 23, 2021

Did 0.1.6 break macports build? If it's necessary to release new version, please let me know. I'll make a new release.

@herbygillot
Copy link
Contributor Author

No, no need to revert - MacPorts is still on version v0.1.5 - this is simply a result of trying to build v0.1.6.

@herbygillot
Copy link
Contributor Author

Let me try HEAD and I'll let you know

@herbygillot
Copy link
Contributor Author

OK so I just confirmed the current master (specifically commit SHA 295ec21704f6e06c7cb93f5cf1ae4df5056bd170) builds just fine. I think a new release would be best, and you can create one at your leisure. Thank you.

@rhysd
Copy link
Owner

rhysd commented Oct 23, 2021

Sure. Since I already added some features and fixes today, I will make a new release tomorrow. It should fix the build. I apologize for the inconvenience.

@herbygillot
Copy link
Contributor Author

No worries and very much appreciated. Many thanks.

@0323pin
Copy link

0323pin commented Oct 23, 2021

I get the same error on NetBSD building with rust-1.56.

Compiling hgrep v0.1.6 (/usr/pkgsrc/wip/hgrep/work/hgrep-0.1.6)
error: couldn't read src/../assets/bat/assets/syntaxes.bin: No such file or directory (os error 2)
  --> src/syntect.rs:27:31
   |
27 | const SYNTAX_SET_BIN: &[u8] = include_bytes!("../assets/bat/assets/syntaxes.bin");
   |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)

error: couldn't read src/../assets/bat/assets/themes.bin: No such file or directory (os error 2)
  --> src/syntect.rs:28:30
   |
28 | const THEME_SET_BIN: &[u8] = include_bytes!("../assets/bat/assets/themes.bin");
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `hgrep` due to 2 previous errors
*** Error code 101

Stop.
bmake[1]: stopped in /usr/pkgsrc/wip/hgrep
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/wip/hgrep
error: External command failed
   ┌─ shell:63:1
   │
63 │ bmake
   │ ^^^^^ command failed


Guess I'll just wait :)

@herbygillot herbygillot changed the title Compilation error with Rust 1.56.0 v1.0.6: compilation error with Rust 1.56.0 Oct 23, 2021
@herbygillot herbygillot changed the title v1.0.6: compilation error with Rust 1.56.0 v0.1.6: compilation error with Rust 1.56.0 Oct 23, 2021
@rhysd
Copy link
Owner

rhysd commented Oct 24, 2021

@herbygillot @0323pin v0.1.7 was released. Would you check your builds?

@herbygillot
Copy link
Contributor Author

Thanks @rhysd, v0.1.7 builds perfectly. I've updated the MacPorts port, and this should begin to reflect in the MacPorts port page for hgrep, as well as MacPorts mirrors soon. Thank you.

I'll leave this open until @0323pin gets a chance to verify as well.

@rhysd
Copy link
Owner

rhysd commented Oct 24, 2021

I'm closing this since it was fixed by the new release.

@rhysd rhysd closed this as completed Oct 24, 2021
@0323pin
Copy link

0323pin commented Oct 24, 2021

@rhysd, @herbygillot that's fine. Thanks for the new release.
I've been busy all day with real life :)
I'll try to manage the update tonight, else I should be able to fix it tomorrow.

If I hit any issues, I'll open a new issue here.

@0323pin
Copy link

0323pin commented Oct 24, 2021

@rhysd All good, it builds just fine.
Thank you once again. I'll merge it soon, just need to update a few other packages.

@rhysd
Copy link
Owner

rhysd commented Oct 24, 2021

@herbygillot @0323pin Thank you for confirming the fix.

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

3 participants