bmresearch / solnet.anchor Goto Github PK
View Code? Open in Web Editor NEWC# Client code generation tools for Solana Anchor programs!
License: MIT License
C# Client code generation tools for Solana Anchor programs!
License: MIT License
Just like generated code for "accounts"
When running the anchorgen command with the json file the following error is thrown:
Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'source')
at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable1 source, Func
2 selector)
at Solnet.Anchor.ClientGenerator.GenerateGetAccounts(Idl idl) in /home/runner/work/Solnet.Anchor/Solnet.Anchor/Solnet.Anchor/ClientGenerator.cs:line 1524
at Solnet.Anchor.ClientGenerator.GenerateClientSyntaxTree(Idl idl) in /home/runner/work/Solnet.Anchor/Solnet.Anchor/Solnet.Anchor/ClientGenerator.cs:line 904
at Solnet.Anchor.ClientGenerator.GenerateSyntaxTree(Idl idl) in /home/runner/work/Solnet.Anchor/Solnet.Anchor/Solnet.Anchor/ClientGenerator.cs:line 71
at Solnet.Anchor.ClientGenerator.GenerateCode(Idl idl) in /home/runner/work/Solnet.Anchor/Solnet.Anchor/Solnet.Anchor/ClientGenerator.cs:line 84
at AnchorSourceGenerator.<>c.
1 result, Func
2 parsedFunc, Func`2 notParsedFunc)Describe the bug
dotnet anchorgen crushes when there are docs section in the type
To Reproduce
In rust code add docs to any account by triple slash. Whan anchor generate idl, it will add "docs" to json
Expected behavior
Generator should ignore docs or, better, add docs to generated account model
I want to install the new version,
first of all, I decided to update the installed version of Solnet.Anchor.Tool, so vs code terminal stuck, I waited for a while but nothing happened.
after that, I decided to remove the installed version and install it again, so the result was the same and the terminal is stuck without any result.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.