postsharp / Metalama

Metalama is a Roslyn-based meta-programming framework. Use this repo to report bugs or ask questions.
181 stars 6 forks source link

ErrorCode LAMA0401 #243

Closed ManlyBoy closed 11 months ago

ManlyBoy commented 1 year ago

I keep getting this Error code in VS2022 17.8 whenever I decorate a method with [Log]. The namespace for the aspect containing the aspect is included in usings. The aspect's class name is "LogAttribute" and is annotated with [RunTimeOrCompileTime]. The aspect itself works fine. I' using Metalama 2024.0.2-preview but this has existed for sometime.

PostSharpBot commented 1 year ago

Hello @ManlyBoy, thank you for submitting this issue. We will try to get back to you as soon as possible. Note to the PostSharp team, this ticket is being tracked in our dashboard under ID TP-34146.

svick commented 1 year ago

Can you share the code that reproduces the issue? Thanks.

ManlyBoy commented 1 year ago

Here's some of the code. I can't send you the whole project however this error occurs in all my projects that use Metalama. Metalama.zip

svick commented 1 year ago

Did you close this issue by mistake?

I don't see anything problematic in your code and it works fine for me, once I removed unrelated code.

Are you able to reproduce the issue in a new project? What do the relevant project files look like? In particular, do they have any Metalama-related properties set and how do they reference Metalama?

ManlyBoy commented 1 year ago

Yes - I closed it by mistake. I'm looking into this further as it is not happening with all my projects anymore. I'll keep in touch.

svick commented 11 months ago

Hi Glen,

We are still waiting for more information. If we do not hear back from you, we will close this ticket. We look forward to your response.

Thank you.

svick commented 11 months ago

Closing since there was no response. Feel free to comment, reopen or open a new issue if something changes.