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

Errors 308 and 277 during compilation #1

Open
piosierra opened this issue Jan 17, 2022 · 3 comments
Open

Errors 308 and 277 during compilation #1

piosierra opened this issue Jan 17, 2022 · 3 comments

Comments

@piosierra
Copy link

Hello,

I get 27 of these errors during compilation. Do you know the reason for it? Should I update some parameters with the last versions of rust?

Thanks.

error[E0308]: mismatched types
--> /home/pio/.cargo/registry/src/github.com-1ecc6299db9ec823/lexical-core-0.7.4/src/atof/algorithm/bhcomp.rs:62:24
|
62 | let bytes = bits / Limb::BITS;
| ^^^^^^^^^^ expected usize, found u32

error[E0277]: cannot divide usize by u32
--> /home/pio/.cargo/registry/src/github.com-1ecc6299db9ec823/lexical-core-0.7.4/src/atof/algorithm/bhcomp.rs:62:22
|
62 | let bytes = bits / Limb::BITS;
| ^ no implementation for usize / u32
|
= help: the trait Div<u32> is not implemented for usize

@HopedWall
Copy link
Owner

Hello @piosierra,

yes, these errors are due to the dependencies being outdated (the last update to this project was ~ 1.5 years ago).
I've updated the libraries with cargo update, and now it appears to compile correctly. I've also pushed these changes, so you can just pull to get the latest version with the updated dependencies.

Let me know if this fixes the issue.

@piosierra
Copy link
Author

Hello,
Thanks for the update.
I updated it but now I get these error with different GFAs. It is always this same error.

gfa_to_vcf -i component.0.gfa -o allX.vcf -p CM0120270.1
thread 'main' panicked at 'no entry found for key', src/variant_identification.rs:75:34
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

@HopedWall
Copy link
Owner

Hi again,
if possible could you please share the gaf you are using? If gaf is big (and has a complex structure) you are probably better off with vg deconstruct, as my tool is only guaranteed to work correctly on simpler gafs. I'd like to improve it in the future, but as of now I'm working on other projects.

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