-
Notifications
You must be signed in to change notification settings - Fork 565
[tests] workaround broken lint.bat on Windows #994
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
[tests] workaround broken lint.bat on Windows #994
Conversation
|
@jonathanpeppers, |
|
@jonathanpeppers: Please file an upstream issue at https://issuetracker.google.com/issues?q=componentid:192633%2B (the BROWSE ALL DEVELOPER TOOLS ISSUES link here), reporting that @dellis1972: Is ignoring the |
|
Issue filed here: https://issuetracker.google.com/issues/68753324 |
|
Lint |
|
#996 is helpful, but further failures happen, such as: I even installed latest Android Studio & its SDK tools, and the issue is present on Windows. There seem to be two ways to fix it:
It depends on if people are really running into this, if we want to go as far as doing number 2. It seems if I use the Android SDK installed with Visual Studio, it uses the older SDK tools (25.x) that are working fine on Windows. |
Context in dotnet#992 The lint.bat tool installed to ~\android-toolchain\sdk\tools\bin appears to be broken on Windows, so a few tests are failing that use it. There is a workaround to set the `JAVA_OPTS` environment variable that gets these tests passing on Windows. Hopefully, this is a temporary workaround until a new version of the SDK tools comes out that fixes this issue. One other thing to note here is that the Android SDK installed by Visual Studio uses the SDK tools version 25.x, which does not appear to have this issue on windows.
fce86c1 to
ce3d766
Compare
|
Generally we have shy'd away from modifying the .bat files. We ended up bypassing the proguard/multidex stuff completely with our own calls in the end. The EnvVar we can do fairly easily. I suspect people are not running the lint tool at all on windows. Its not on by default so I imagine most users don't bother. |
|
@jonathanpeppers is there a way to detect this issue and apply the fix in the Lint.cs Task ? I assume it might be needed by end users if they do use it? |
|
After looking at this, I think we could do this in the
That being said, I don't know how high of a priority this is compared to other things. It doesn't seem like many people are using this feature. It might be better to just ignore these tests on Windows for now, but I'm open to trying to implement this change to the |
Context in #992
The lint.bat tool installed to ~\android-toolchain\sdk\tools\bin
appears to be broken on Windows, so a few tests are failing that use it.
There is a workaround to set the
JAVA_OPTSenvironment variablethat gets these tests passing on Windows. Hopefully, this is a temporary
workaround until a new version of the SDK tools comes out that fixes
this issue.
One other thing to note here is that the Android SDK installed by Visual
Studio uses the SDK tools version 25.x, which does not appear to have
this issue on windows.