-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Spurious "No task to execute found" info #12814
Comments
Adding or removing .ts files seems to trigger tsc being restarted. Currently it restarts correctly (previously it didn't from what I remember), but I still get that info message box.
|
It doesn't restart when the tasks.json changes while tsc is watching, maybe that's by design. The info message box in the case where tasks.json has not changed and tsc restarts correctly is unexpected. Does the problemMatcher do the restarting? |
@chrmarti did that happened during extension development. We have a hack in there that restarts the watching task on tsconfig.json changes since the tsc compiler doesn't honor those changes. Have to see if we can remove the hack for 2.0.3. |
I did some testing and the tsc compiler in watch mode now detects file adds and deletes as well. So we could remove the hack we have but would break people that still rely on 1.8.10. Need to check if I know about the tsc version |
I opt to leave the hack in for another milestone and then remove it. |
It did not happen during extension development. I was working without a tsconfig.json at that time. I added/removed one of the .ts files app.ts depended on. |
That is correct. The hack is actually in the $tsc-watch problem matcher that we made along time ago for extension developement :-). I leave the hack in but in October I will remove it. |
Moving to November. We have to keep that in for a little longer. Users could still have 1.8.10 in use. |
Will remove early 1.9.x |
I removed the hack for the new task execution engine that uses the terminal for January. Will close the issue although the terminal engine is not the default yet. You need to opt in. |
To Verify ensure that code like let result: ITaskExecuteResult = (<any>task).tscWatch
? { kind: TaskExecuteKind.Started, started: { restartOnFileChanges: '**/*.ts' }, promise: this.activeTaskPromise }
: { kind: TaskExecuteKind.Started, started: {}, promise: this.activeTaskPromise }; Is not present in terminalTaskSystem.ts |
Not sure how to reproduce. Happened twice while testing #12633. The Output panel with the Tasks channel would open and an info message box saying "No task to execute found" (or similar) would briefly show.
I was running tsc -w as a task and that process and its output in the Output panel have disappeared. So maybe tsc just hung up? The message should say so then and the Output panel should still show its output I'd expect.
The text was updated successfully, but these errors were encountered: