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

Spurious "No task to execute found" info #12814

Closed
chrmarti opened this issue Sep 27, 2016 · 11 comments
Closed

Spurious "No task to execute found" info #12814

chrmarti opened this issue Sep 27, 2016 · 11 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug tasks Task system issues verified Verification succeeded
Milestone

Comments

@chrmarti
Copy link
Collaborator

  • VSCode Version: Code - Insiders 1.6.0-insider (f62883f, 2016-09-27T12:46:15.113Z)
  • OS Version: Darwin x64 15.6.0

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.

@chrmarti
Copy link
Collaborator Author

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.

{
    "version": "0.1.0",
    "command": "tsc",
    "isShellCommand": true,
    "args": ["--sourceMap", "-w", "app.ts"],
    "showOutput": "silent",
    "isWatching": true,
    "problemMatcher": "$tsc-watch"
}

@chrmarti
Copy link
Collaborator Author

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?

@dbaeumer
Copy link
Member

@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.

@dbaeumer dbaeumer added this to the September 2016 milestone Sep 28, 2016
@dbaeumer dbaeumer added the tasks Task system issues label Sep 28, 2016
@dbaeumer
Copy link
Member

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

@dbaeumer
Copy link
Member

I opt to leave the hack in for another milestone and then remove it.

@dbaeumer dbaeumer modified the milestones: October 2016, September 2016 Sep 28, 2016
@dbaeumer dbaeumer added the bug Issue identified by VS Code Team member as probable bug label Sep 28, 2016
@chrmarti
Copy link
Collaborator Author

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.

@dbaeumer
Copy link
Member

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.

@dbaeumer dbaeumer modified the milestones: November 2016, October 2016 Oct 26, 2016
@dbaeumer
Copy link
Member

Moving to November. We have to keep that in for a little longer. Users could still have 1.8.10 in use.

@dbaeumer dbaeumer modified the milestones: January 2017, November 2016 Dec 6, 2016
@dbaeumer
Copy link
Member

dbaeumer commented Dec 6, 2016

Will remove early 1.9.x

@dbaeumer
Copy link
Member

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.

@dbaeumer
Copy link
Member

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

@aeschli aeschli added the verified Verification succeeded label Jan 27, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug tasks Task system issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants