Skip to content
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

auto import #2996

Closed
mislalee opened this issue May 27, 2019 · 4 comments · Fixed by #3019
Closed

auto import #2996

mislalee opened this issue May 27, 2019 · 4 comments · Fixed by #3019
Labels

Comments

@mislalee
Copy link

mislalee commented May 27, 2019

Hello
i'm using auto import in my configuration to save the result of my transformation in a file
but when it come to this instruction
View minusButton = child.findViewById(R.id.contact_remove);

it is printed like this
View minusButton = child.findViewById(contact_remove);
and i have an error : cannot find symbol variable contact_remove

how can i solve this ?
with setAutoImport(true)

@nharrand
Copy link
Collaborator

Hello @mislalee ,
Thanks for the bug report. Can you provide a little bit more context? (Do you use NoClassPath mode or not? Can you give the full snippet that configure your Launcher (if you use a Launcher)).
Can you give the complete class processed?

@surli surli added the bug label Jun 3, 2019
@mislalee
Copy link
Author

mislalee commented Jun 6, 2019

Hello ,
Sorry for the late reply
here is my configuration
image

@nharrand
Copy link
Collaborator

nharrand commented Jun 8, 2019

And that class being analyzed? (The whole class makes it easier to reproduce the bug.)

@mislalee
Copy link
Author

Here is an example of a file that contain
mPreviousIcon = (ImageView) findViewById(R.id.page_button_previous_icon);

Could you please show me an example of code of how to save this file after a modification without changing the contenant of the file just the portion of code that i changed. please i really need it for my project .

example.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants