-
Notifications
You must be signed in to change notification settings - Fork 41
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
[BUG] New declaration is not discoverable by IDE #389
Comments
Hi @kptlronyttcna , thanks for your feedback! Please, could you confirm us that:
was also updated when doing that change? Thanks in advance! |
I don't know how to check that. But I know that helloWorld2 was indeed defined as the program compiled and ran successfully. This is the code I used:
|
Great, thanks @kptlronyttcna ! And did you change |
Yes, forgot to mention that.
|
Thanks @kptlronyttcna ! Please, try to update the |
So at the end, are you saying that I cannot expect the IDE to recognize new declarations defined with arrow meta? Imagine instead of using Transform.replace, I use some other transform to add helloWorld2 while leaving helloWorld untouched. Can the IDE know about helloWorld2 even though it's not anywhere in the code but will be declared by arrow meta during compilation? This is possible with annotation based code-gen tools (google/dagger for example), I was wondering if it would be possible with arrow meta as well. |
You have to create a counterpart IDE plugin for your compiler plugin. Meta facilitates this as well. So its possible, but this example does not showcase it. |
A sample showcasing that feature would be awesome. |
Describe the bug
New declarations are not discoverable by IDE.
To Reproduce
Steps to reproduce the behavior:
Change HelloWorldPlugin in examples to declare a new function. For example
helloWorld2
instead ofhelloWorld
. Then usehelloWorld2
in main. The program compiles successfully and works, but the IDE can't findhelloWorld2
and shows it in red.Expected behavior
I'm not sure if I can expect the IDE to recognize that new function. If this is not a bug, is there a way to make the IDE see the transformed AST?
The text was updated successfully, but these errors were encountered: