postsharp / Metalama

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

Feature request: Improve "Cannot preview the transformed code (no error message)" message #190

Closed WhitWaldo closed 1 year ago

WhitWaldo commented 1 year ago

I frequently get this error when I want to preview a Metalama transformation, but when there's a compilation error in the project containing the aspect. It'd be nice if instead of reflecting that I cannot preview the code (which I already know when the preview doesn't open) it would instead suggest that perhaps there's a compilation error preventing the aspect from even being applied.

Thanks!

PostSharpBot commented 1 year ago

Hello @WhitWaldo, 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-33581.

svick commented 1 year ago

Thanks for reporting. This problem was already on our radar, but since it's just a somewhat confusing UX, it may take some time before it's fixed.

gfraiteur commented 1 year ago

Solved in 2023.3.3-preview.