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

Add catch for potentially missing directories #2280

Closed
wants to merge 1 commit into from

Conversation

jrlogsdon
Copy link

When using the IconsClassGenerator script for generating icons and one of the modules depends on a module that gets dynamically generated, the script will crash out, as it may not exist. Needed for Android.

Change-Id: I0a2d9a0cbc26649bf429fef8329c6b0ab4de2131

When using the IconsClassGenerator script for generating icons and one
of the modules depends on a module that gets dynamically generated, the
script will crash out, as it may not exist. Needed for Android.

Change-Id: I0a2d9a0cbc26649bf429fef8329c6b0ab4de2131
@andrei-kuznetsov andrei-kuznetsov self-assigned this Jan 2, 2023
@andrei-kuznetsov
Copy link
Contributor

@jrlogsdon, I believe the problem is not in this script, but in broken project structure. Please take a look at https://git.jetbrains.org/?p=idea/android.git;a=commitdiff;h=36d5d8a58e1a0ceb34c045c2619299f23478b7c7

Why do you have these directories in the first place?

@jrlogsdon
Copy link
Author

These will be removed when making the icon swap change, but there's still another module that relies on a Bazel generated module.

intellij-monorepo-bot pushed a commit that referenced this pull request Jan 4, 2023
In Android Studio some directories are generated dynamically by Bazel. These directories are referenced from iml files, but directories do not exist until Bazel is executed. Make sure that IconsClassGenerator can generate files in this edge case as well.

In intellij we have tests for project structure which (among other things) check that iml files have no references to non-existing directories, so this exception never risen in intellij sources.

#2280

Change-Id: I0a2d9a0cbc26649bf429fef8329c6b0ab4de2131

GitOrigin-RevId: 584c3b1d32b264dbe1e71a7b029a3eec084e9a41
@andrei-kuznetsov
Copy link
Contributor

c8990d0

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