-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Analysis server doesn't run macros correctly when they're provided through an "export" #55746
Comments
@rrousselGit are you sure the macro is running? While I can reproduce the CodeLens not appearing, it also seems like the macro is not running (because here, "hello" becomes an error): m.mp4The behaviour I'm seeing doesn't seem like just a CodeLens issue, but I don't know if it's the same as what you're seeing. |
This is more than a codelense issue yes. But if you run the code, it works: You can |
Ah, gotcha. I've updated the title then - seems to be something wrong with the analysis server running the macro and not as I first suspected with the generation of LSP CodeLenses. (cc @scheglov) |
I can reproduce it. |
Bug: #55746 Change-Id: Ib18b60467ce946346072c04b1df7b36d12e4cab1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/366901 Reviewed-by: Phil Quitslund <pquitslund@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Hello!
It appears that using
export 'macro.dart'
breaks the "Go to augmentation" codelenses.You could define any macro:
Then re-export it in a different file:
And finally import the macro through the export:
cc @DanTup
The text was updated successfully, but these errors were encountered: