-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Update mod.rs [Bug Fix in the parse_owned Function, line 75-88] #711
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #711 +/- ##
=======================================
- Coverage 97.8% 97.7% -0.1%
=======================================
Files 81 83 +2
Lines 9378 8977 -401
=======================================
- Hits 9169 8770 -399
+ Misses 209 207 -2 ☔ View full report in Codecov by Sentry. |
Hmm are you sure about the origin of 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:
After installation, you install anchor with avm:
I believe this error only occurs with avm others install directly with Also, check the error from the block of code between line 75-88. It's resolved by removing the ambiguity by specifying the |
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 |
My bad. It appears avm uses that older version as the default. |
Perhaps https://github.com/coral-xyz/anchor would be a better place for this issue? EDIT: here's the mentioned issue: #681 |
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<[format_item::Item<'_>]>, resolving the compilation error and improving type compatibility.