You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should prioritize emitting a wrong_pallet_name not found error at the top.
The problem here is that we don't have any control over this in the macro. The macro can not find out that easily if wrong_pallet_name exists or not. Maybe with some code parsing and finding out if wrong_pallet_name is a name of a pallet in the Cargo.toml or an import to the file.
The problem here is that we don't have any control over this in the macro. The macro can not find out that easily if wrong_pallet_name exists or not. Maybe with some code parsing and finding out if wrong_pallet_name is a name of a pallet in the Cargo.toml or an import to the file.
Hmm, I haven’t looked into this in depth.
However, I must say that after switching to the v2 macro, the development experience has declined. Issues like this were much easier to identify in v1.
I’m familiar with Substrate, so when I encounter such errors, I can assume there’s likely an issue with the macro. However, other developers might not realize this. The errors only indicate Runtime not found, Pallet not found, or Event not found, which can be confusing.
I’m familiar with Substrate, so when I encounter such errors, I can assume there’s likely an issue with the macro. However, other developers might not realize this. The errors only indicate Runtime not found, Pallet not found, or Event not found, which can be confusing.
Yeah for sure! I mean I don't wanted to say that the feedback is not valid. I agree with you, but we are also not generating these errors, they are coming from the compiler. But we can improve them, if we do what I said above.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Motivation
No response
Request
If I write something like this, the error log only complains about
Runtime
/RuntimeCall
/xxx
not being found, which makes debugging difficult.We should prioritize emitting a
wrong_pallet_name
not found error at the top.Solution
No response
Are you willing to help with this request?
Maybe (please elaborate above)
The text was updated successfully, but these errors were encountered: