-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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 task not found sometimes #173384
Comments
We have to wait for extensions to be registered before reading the tasks because of task contributions from extensions. I don't think we can change this. @alexr00 thoughts? |
We could have a timeout per task provider. If a task provider doesn't provide tasks for 3 minutes after we ask for tasks then it's likely it will never provide tasks. That would let us show the tasks for all the other extensions except the slow one. |
I just hit this again #176536, #173184 in a VS Code instance that had been running for quite some time. Are there logs that we can provide next time this happens? I enabled trace logging and looked in the Tasks output channel but did not see anything other than a warning about shell tasks being unavailable. |
I will try to get to this in March, no logs are needed as we understand how this could happen |
Original repro steps still work 👍🏼 |
Apparently this still happens |
so I think what's happening is if I trigger the build task before folder open, the promise is set but the tasks for that folder aren't parsed. then we return that promise indefinitely. I think checking if the |
Just reproduced twice. When I did, both times it said this:
|
still happens in the build I created with the latest fix. note that i don't see extensions getting activated in the status bar here at all 🤔 I also don't see the workspace folder undefined message anymore, but still see that the tasks are unavailable in the current environment. build.mov |
the moment I change the
|
While it's possible (extremely rare) that a user will still hit this if they run the build task before a particular execution context has been set, this fix will prevent that from reproducing. To verify, open VS code (typically a restart) and run the build task. If you do see the quickpick instead of the default build task getting, run, then the next time you run the build task, you should not see it. The above should be hard to reproduce though - and only possible if you time it just right. Before, this would happen more frequently and was reproducible until window reload. |
The text was updated successfully, but these errors were encountered: