Gael Fraiteur
Gael Fraiteur
MCMetalama Community
Created by Drago-QCC on 9/30/2023 in #technical-questions
Giving Aspects Metadata ?
This feature is called "call-site aspects" and is currently unsupported. The closest way you can implement this is to use the .NET StackFrame class to capture the caller.
6 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
Yes because Discord/Slack are not integrated with our bug tracking system. GitHub is.
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
I see we didn't solve tickets after the release but in this case there is no ticket.
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
Yes it was released.
41 replies
MCMetalama Community
Created by Whit on 8/29/2023 in #technical-questions
How to debug a "Cannot preview the transformed code: unknown error"?
7 replies
MCMetalama Community
Created by Whit on 8/1/2023 in #technical-questions
Referencing value assigned to variable in statement builder within another statement
Please file a feature request on GitHub because we don't track tickets here -- just for ephemeral discussions
20 replies
MCMetalama Community
Created by Whit on 8/1/2023 in #technical-questions
Referencing value assigned to variable in statement builder within another statement
I think it's rather going to be a method like: IExpression DefineLocalVariable( string nameHint, IType type, IExpression? assignedValue );
20 replies
MCMetalama Community
Created by Whit on 8/1/2023 in #technical-questions
Referencing value assigned to variable in statement builder within another statement
So you want an API that defines a local variable and takes care of the unique naming?
20 replies
MCMetalama Community
Created by Whit on 8/1/2023 in #technical-questions
Referencing value assigned to variable in statement builder within another statement
However generally we want to keep StatementBuilder and ExpressionBuilder as minimalistic as possible.
20 replies
MCMetalama Community
Created by Whit on 8/1/2023 in #technical-questions
Referencing value assigned to variable in statement builder within another statement
OK I got it. Didn't read your first request properly it seems
20 replies
MCMetalama Community
Created by Whit on 8/1/2023 in #technical-questions
Referencing value assigned to variable in statement builder within another statement
20 replies
MCMetalama Community
Created by Whit on 7/28/2023 in #technical-questions
Step-through aspect-debugging
And for the source mapping issue I think this was solved in 2023.3.
7 replies
MCMetalama Community
Created by Whit on 7/28/2023 in #technical-questions
Step-through aspect-debugging
7 replies
MCMetalama Community
Created by Whit on 7/28/2023 in #technical-questions
Step-through aspect-debugging
Have a good time.
7 replies
MCMetalama Community
Created by Whit on 7/28/2023 in #technical-questions
Step-through aspect-debugging
There were some bugs in this debugging experience but they were fixed in 2023.3. Please try with this version and let me know how it went.
7 replies
MCMetalama Community
Created by nimreydx on 7/28/2023 in #technical-questions
CodeLens Help
I think we have a bug filed for this, but we don't have a repro yet. Do you know in which circumstances it happens?
3 replies
MCMetalama Community
Created by Whit on 7/26/2023 in #technical-questions
How to apply an attribute to a method introduced by another aspect?
The same template cannot be used both as an interface member and as a normal template. You have to split/duplicate the templates in two. Each much have a different name. The final name of the introduced member or the interface member can be set by the Name property of the Template or IntroduceTemplate attribute, or using the buildMethod delegate in the advice factory method (as is demonstrated in the Clone example in https://doc.metalama.net/conceptual/aspects/advising/implementing-interfaces)
6 replies
MCMetalama Community
Created by nimreydx on 7/26/2023 in #technical-questions
Advising the addition of code comments
However you can like/comment the feature request https://github.com/postsharp/Metalama/issues/113
4 replies
MCMetalama Community
Created by nimreydx on 7/26/2023 in #technical-questions
Advising the addition of code comments
No, there is no way for an aspect to contribute XML code doc at the moment.
4 replies
MCMetalama Community
Created by nimreydx on 7/26/2023 in #technical-questions
Advising the addition of code comments
Hi Nimrey, welcome.
4 replies