-
Notifications
You must be signed in to change notification settings - Fork 529
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
Build fails first time after layout file changed and saved #2427
Comments
I have just found exact steps for this issue:
Note that if you skip the step 3 and let the files save automatically by building, the issue is not present and it builds successfully. |
Anybody could look at this? :) Maybe @jonathanpeppers or @garuma ? And also the other issue #2425 I reported 10 days ago. These two issues are getting quite annoying 🤕 Thanks! |
@rihadavid, sorry I have been out of the office for two weeks (work trip + Thanksgiving). I tried your steps above with VS 15.9.1 and it worked for me. Have you tried updating to 15.9? If you are still seeing the issue, can you post the error message you are getting? Are the logs always blank? (try this setting) |
Thanks for the reply!
|
@rihadavid it looks like your logging is set to minimal. The top of mine looks like: You should also see an error message somewhere? In the error pad? |
It looks exactly like yours when it builds without the error (second time, or without saving the edited file). Yes, I should see the error, but I don't, that's the thing |
Can you save the file, then build command line?
This will put a You might also get a better error message. |
When using the command line, the build always succeeds. Tried multiple times, with the exact steps - happening in VS, not happening in cmd. |
@joj have you seen something like this? |
@jonathanpeppers I haven't. My guess is that there's a file getting locked by msbuild still running on VS, which doesn't happen in command line. I may be completely wrong, though. |
@rihadavid sorry for the time it took to answer on developer community. We're actively improving that now so timing should be much faster. |
I need to find the DevCom item. I'm on something right now, but I will asap. |
@jonathanpeppers at least on the XVS side of the house, we don't manually trigger any builds for .axml updates, so if something happens as a side effect of that via a |
I have replicated this very same problem. It happens on large non trivial projects, and only after upgrading Visual Studio 2017 from quite an early one. Whilst it is not a show stopper, it is not great. Steven |
I don't think we've ever managed to come up with a consistent reproduction for this. I am going to close it, please feel free to reopen if there are any consistent steps that can be used to help narrow down what's going wrong here. |
@pjcollins for me, it's still happening every time in VS 2019 16.1.2 using the exact steps written in the second comment |
Sorry for the abrupt resolution, I took another look at this with VS 2019 16.1 and I am seeing similar behavior. Steps (as described above):
I see a build failure reported in the build output, and sometimes the build partially continues, but ultimately it never completes - https://gist.github.com/pjcollins/0dca5a483a9d30873578a972a6001b49. Binlogs: Edit: after some more investigation, it appears that there might be some interference caused by Live Code Analysis:
|
I'm only writing here to get updates on the issue. Reported the same thing through Help/Send Feedback/Report a Problem in VS yesterday. @pjcollins you can close the report I made if you like. |
ATTENTION PLEASE The original steps, updated with the bold text:
I also have many other new frustrating errors with the latest 16.2.1, but I am not really sure if reporting them is worth the effort, considering it will take (hopefully) about a year to get a fix 🤔 |
@rihadavid the original issue here taht @pjcollins and I could reproduce was related to the Code Analyzer in Visual Studio that we don't have much control over.... Could you file a new issue for what you see with latest 16.2, it is a different issue, correct? |
@jonathanpeppers it's the exactly same issue, just the symptoms got worse |
@rihadavid but if you actually have a build log, then it is a different issue? You said it has misleading errors. Before we were getting empty build logs and no error information, such as:
|
It is so easy to reproduce. Why the discussion? If you are not able to
reproduce, please say so, I am happy to let you remote control my pc and
investigate if you like.
…On Tue, Aug 13, 2019, 19:28 Jonathan Peppers ***@***.***> wrote:
@rihadavid <https://github.com/rihadavid> but if you actually have a
build log, then it is a different issue?
You said it has misleading errors. Before we were getting empty build logs
and no error information, such as:
1>------ Build started: Project: MyApp.Android, Configuration: Debug Any CPU ------
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2427>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFQNI4KANCLI27NXEFEKHQ3QELVM5ANCNFSM4GDCT7YA>
.
|
These steps just worked for me: #2427 (comment) Can someone share diagnostic build logs of what you're seeing? |
@jonathanpeppers turns out it's even more tricky:
|
This is a completely different issue than what we were seeing with the code analyzer. I am not sure what is different with my PC, but I can't get it to fail like this. Can you include the full log? |
And the diagnostic logs:
Now from step #5 going to step #7 (but turns out this doesn't happen always, sometime it succeeds), diagnostic log here: |
Ok, so it seems that those are actually two issues, not one. I created a report for the other one: #3494 |
So, to make it clear, for this issue we can stick with the steps in the second comment, it's still happening the same, except that building again (in the last step) now doesn't always work. |
@jonathanpeppers still happening in VS 16.3.0 .. the only way out of this is to try build (or clean) again and again and again and again.. about 10th attempt usually works. |
@rihadavid so is this still the issue with the code analyzer or #3494? I just retested what I thought we fixed for #3494 and it seems to be fixed for me with 16.3.2. It was these steps: #3494 (comment) We have a similar problem we are tracking here, but we don't have clear steps to repro this: #3702 |
#3494 seems to be fixed, but this one, using the steps in the second comment is still happening. Without any logs, just failing. I think it will not be related to #3702, as that one is having error logs, this one does not. |
I tried the same setting and the bug is still present |
@jonathanpeppers still not fixed |
@rihadavid I haven't seen this issue myself in a long time. What version of Visual Studio and Xamarin.Android are you using right now? Are you using any other extensions like ReSharper, etc.? |
VS 16.4.5, Xamarin.Android 10.1.4.0, no extensions |
@rihadavid can you try the 16.5 preview? There was an issue where the Android designer was running MSBuild targets in parallel, which can cause random build errors. That fix is only in 16.5 and higher. It is not an issue in this repo, but if you can confirm if it is fixed or not we can close this, thanks! |
Congrats, it's fixed in 16.5 stable release! It only took 16 months 🤣 Thanks anyway! 👍 |
I would compare us to the last time you sent a bug to Android Studio and it actually got fixed. 16 months is less than infinity. 👀 😄 |
Sometimes when I want to build and debug my project, it fails without any error in Output windows or in log files. Next time it works without issues.
This is how my output window looks:
And that's it. Note that I have it on a diagnostic verbosity.
Please let me know what can I do to get you more info, it's happening quite often, but conditions are unknown.
Version Information
The text was updated successfully, but these errors were encountered: