Closed a-zmuth closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 97.7%. Comparing base (
4a74924
) to head (2706901
). Report is 44 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hmm are you sure about the origin of this bug?
The provided logs refers to time
version 0.3.29, which I just compiled successfully without reproducing such error.
Do you have a list of steps to reproduce this bug?
Hmm are you sure about the origin of this bug? The provided logs refers to
time
version 0.3.29, which I just compiled successfully without reproducing such error. Do you have a list of steps to reproduce this bug?
The error specifically occurs when installing anchor with avm and the error comes from mod.rs in my time directory: I gave more details here: Stackoverflow
To recreate the bug, first instal avm:
cargo install --git https://github.com/coral-xyz/anchor avm --force
After installation, you install anchor with avm:
avm use latest
It will give a prompt to download the latest anchor version.
I believe this error only occurs with avm others install directly with cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli
. This gives rise to other errors too, but that can be resolved as shown in the StackOverflow link.
Also, check the error from the block of code between line 75-88. It's resolved by removing the ambiguity by specifying the item_type
It was exhausting figuring this out.
Come on, this is beyond ridiculous. A basic search or even looking at the pinned issues would show you that this was resolved months ago.
Come on, this is beyond ridiculous. A basic search or even looking at the pinned issues would show you that this was resolved months ago.
Doesn't seem so, since it keeps coming up.
You're using a months-old version of time
. No kidding it doesn't seem resolved. Common sense, please.
You're using a months-old version of
time
. No kidding it doesn't seem resolved. Common sense, please.
My bad. It appears avm uses that older version as the default. Appreciate the clarification.
Come on, this is beyond ridiculous. A basic search or even looking at the pinned issues would show you that this was resolved months ago.
Doesn't seem so, since it keeps coming up.
Perhaps https://github.com/coral-xyz/anchor would be a better place for this issue? It might be just a "you should update time.rs" problem
EDIT: here's the mentioned issue: #681 you should tell the Anchor folks to update time.rs
Overview
The change specifically addresses a bug fix in the
parse_owned
function and issues faced while installing the Anchor framework using AVM.Bug Fix in the parse_owned Function
Problem
The parse_owned function had compilation issues due to improper type handling in collecting format_items, leading to an error related to type conversion.
Error Encountered
A compilation error indicated that OwnedFormatItem could not be created from Box<Vec<_>>.
Solution
The issue was fixed by explicitly specifying the type of collected format_items to Box<[formatitem::Item<'>]>, resolving the compilation error and improving type compatibility.