-
Notifications
You must be signed in to change notification settings - Fork 220
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
Dependency Injection generated files #594
Comments
The Not sure if there is a convension on where to locate generated sources, there should be one. |
Unfortunately the code generation for the protobuf gradle plugin (and other such tools) outputs by default to $buildDir/generated/.... But I notice this issue has come up multiple times e. g. #464, #594. Using .gitignore doesn't solve the issue because not everyone uses git and because it is common to git ignore generated source files, even though you would expect an IDE to be aware of them. I would vote to remove I can submit a PR. |
I have submitted a PR to add the |
Oh I didn't see your PR until just now. I also have a PR #637, but it takes a different approach, adding a configuration option for specifying exclusions. The only thing that bugs me about it is that it checks the patterns per directory piece, rather than relative to the workspace root, which might lead to unexpected results. That's fixable, and maybe I'll get to it. Otherwise I still think gitignore is not the right way to go, since it is a different concept from ide-ignore and they will often differ when it comes to generated source files. |
We use ksp plugins in our android project to do some dagger hilt annotations. When doing gradle build, it creates file under this directory for an app with package name com.example.blah
~/project_dir/app/build/generated/ksp/debug/kotlin/com/example/blah/destinations/MyGeneratedFile.kt
We import it as import com.example.blah.destinations.MyGeneratedFile
I want language server to index these files as well so that "Go to definition" kind shortcuts work.
Please help.
P.S: I have tried various IDEs and found cursor.com (fork of vscode with AI) to be the 2-3x more productive than copilot or any other AI editors like continue.dev or double.bot or codium. If cursor becomes a great leader, this library is going to be super crucial to get Android development on vscode/cursor. All the power to your hardwork! If I had connects with cursor team, I'll ask them to fund this project.
The text was updated successfully, but these errors were encountered: