task reconnection doesn't work
Repro:
- Open vscode repo
- Run default build task
- Wait for it to finish
- Reload window
- Run default build task
See no tick/cross in the tab:
Saving a file to trigger a build doesn't bring it back.
Tasks log:
Warning: npm tasks are unavailable in the current environment.
Warning: npm tasks are unavailable in the current environment.
Warning: npm tasks are unavailable in the current environment.
Warning: npm tasks are unavailable in the current environment.
Warning: npm tasks are unavailable in the current environment.
Warning: npm tasks are unavailable in the current environment.
Warning: shell tasks are unavailable in the current environment.
Warning: shell tasks are unavailable in the current environment.
Warning: npm tasks are unavailable in the current environment.
Warning: gulp tasks are unavailable in the current environment.
Warning: shell tasks are unavailable in the current environment.
Warning: shell tasks are unavailable in the current environment.
Warning: npm tasks are unavailable in the current environment.
Warning: shell tasks are unavailable in the current environment.
Warning: npm tasks are unavailable in the current environment.
Warning: shell tasks are unavailable in the current environment.
Workspace folder was undefined
Terminal log:
2023-06-30 07:59:00.473 [debug] parsing data "[48527:0630/075900.471483:INFO:CONSOLE(204)] "%cTRACE color: #888 [File Watcher (parcel)] [CHANGED] /Users/daimms/dev/Microsoft/vscode/src/vs/platform/terminal/node/ptyHostMain.ts", source: vscode-file://vscode-app/Users/daimms/dev/microsoft/vscode/out/vs/platform/log/common/log.js (204)
" [[91,52,56,53,50,55,58,48,54,51,48,47,48,55,53,57,48,48,46,52,55,49,52,56,51,58,73,78,70,79,58,67,79,78,83,79,76,69,40,50,48,52,41,93,32,34,37,99,84,82,65,67,69,32,99,111,108,111,114,58,32,35,56,56,56,32,91,70,105,108,101,32,87,97,116,99,104,101,114,32,40,112,97,114,99,101,108,41,93,32,91,67,72,65,78,71,69,68,93,32,47,85,115,101,114,115,47,100,97,105,109,109,115,47,100,101,118,47,77,105,99,114,111,115,111,102,116,47,118,115,99,111,100,101,47,115,114,99,47,118,115,47,112,108,97,116,102,111,114,109,47,116,101,114,109,105,110,97,108,47,110,111,100,101,47,112,116,121,72,111,115,116,77,97,105,110,46,116,115,34,44,32,115,111,117,114,99,101,58,32,118,115,99,111,100,101,45,102,105,108,101,58,47,47,118,115,99,111,100,101,45,97,112,112,47,85,115,101,114,115,47,100,97,105,109,109,115,47,100,101,118,47,109,105,99,114,111,115,111,102,116,47,118,115,99,111,100,101,47,111,117,116,47,118,115,47,112,108,97,116,102,111,114,109,47,108,111,103,47,99,111,109,109,111,110,47,108,111,103,46,106,115,32,40,50,48,52,41,13,10]]
2023-06-30 07:59:00.552 [debug] parsing data "[48527:0630/075900.550813:INFO:CONSOLE(204)] "%cTRACE color: #888 [File Watcher (parcel)] >> normalized [CHANGED] /Users/daimms/dev/Microsoft/vscode/src/vs/platform/terminal/node/ptyHostMain.ts", source: vscode-file://vscode-app/Users/daimms/dev/microsoft/vscode/out/vs/platform/log/common/log.js (204)
" [[91,52,56,53,50,55,58,48,54,51,48,47,48,55,53,57,48,48,46,53,53,48,56,49,51,58,73,78,70,79,58,67,79,78,83,79,76,69,40,50,48,52,41,93,32,34,37,99,84,82,65,67,69,32,99,111,108,111,114,58,32,35,56,56,56,32,91,70,105,108,101,32,87,97,116,99,104,101,114,32,40,112,97,114,99,101,108,41,93,32,32,62,62,32,110,111,114,109,97,108,105,122,101,100,32,91,67,72,65,78,71,69,68,93,32,47,85,115,101,114,115,47,100,97,105,109,109,115,47,100,101,118,47,77,105,99,114,111,115,111,102,116,47,118,115,99,111,100,101,47,115,114,99,47,118,115,47,112,108,97,116,102,111,114,109,47,116,101,114,109,105,110,97,108,47,110,111,100,101,47,112,116,121,72,111,115,116,77,97,105,110,46,116,115,34,44,32,115,111,117,114,99,101,58,32,118,115,99,111,100,101,45,102,105,108,101,58,47,47,118,115,99,111,100,101,45,97,112,112,47,85,115,101,114,115,47,100,97,105,109,109,115,47,100,101,118,47,109,105,99,114,111,115,111,102,116,47,118,115,99,111,100,101,47,111,117,116,47,118,115,47,112,108,97,116,102,111,114,109,47,108,111,103,47,99,111,109,109,111,110,47,108,111,103,46,106,115,32,40,50,48,52,41,13,10]]
2023-06-30 07:59:01.363 [debug] parsing data "[07:59:01] Starting [32mcompilation[39m...
" [[91,48,55,58,53,57,58,48,49,93,32,83,116,97,114,116,105,110,103,32,27,91,51,50,109,99,111,109,112,105,108,97,116,105,111,110,27,91,51,57,109,46,46,46,13,10]]
2023-06-30 07:59:01.587 [debug] parsing data "[07:59:01] [31mError[39m: /Users/daimms/dev/microsoft/vscode/src/vs/base/node/zip.ts(49,8): Property 'cause' does not exist on type 'ExtractError'.
[07:59:01] Finished [32mcompilation[39m with 1 errors after [35m223 ms[39m
" [[91,48,55,58,53,57,58,48,49,93,32,27,91,51,49,109,69,114,114,111,114,27,91,51,57,109,58,32,47,85,115,101,114,115,47,100,97,105,109,109,115,47,100,101,118,47,109,105,99,114,111,115,111,102,116,47,118,115,99,111,100,101,47,115,114,99,47,118,115,47,98,97,115,101,47,110,111,100,101,47,122,105,112,46,116,115,40,52,57,44,56,41,58,32,80,114,111,112,101,114,116,121,32,39,99,97,117,115,101,39,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,32,111,110,32,116,121,112,101,32,39,69,120,116,114,97,99,116,69,114,114,111,114,39,46,13,10,91,48,55,58,53,57,58,48,49,93,32,70,105,110,105,115,104,101,100,32,27,91,51,50,109,99,111,109,112,105,108,97,116,105,111,110,27,91,51,57,109,32,119,105,116,104,32,49,32,101,114,114,111,114,115,32,97,102,116,101,114,32,27,91,51,53,109,50,50,51,32,109,115,27,91,51,57,109,13,10]]
2023-06-30 07:59:01.604 [debug] parsing data "[48527:0630/075901.602132:INFO:CONSOLE(204)] "%cTRACE color: #888 [File Watcher (parcel)] [CHANGED] /Users/daimms/dev/Microsoft/vscode/.build/log", source: vscode-file://vscode-app/Users/daimms/dev/microsoft/vscode/out/vs/platform/log/common/log.js (204)
" [[91,52,56,53,50,55,58,48,54,51,48,47,48,55,53,57,48,49,46,54,48,50,49,51,50,58,73,78,70,79,58,67,79,78,83,79,76,69,40,50,48,52,41,93,32,34,37,99,84,82,65,67,69,32,99,111,108,111,114,58,32,35,56,56,56,32,91,70,105,108,101,32,87,97,116,99,104,101,114,32,40,112,97,114,99,101,108,41,93,32,91,67,72,65,78,71,69,68,93,32,47,85,115,101,114,115,47,100,97,105,109,109,115,47,100,101,118,47,77,105,99,114,111,115,111,102,116,47,118,115,99,111,100,101,47,46,98,117,105,108,100,47,108,111,103,34,44,32,115,111,117,114,99,101,58,32,118,115,99,111,100,101,45,102,105,108,101,58,47,47,118,115,99,111,100,101,45,97,112,112,47,85,115,101,114,115,47,100,97,105,109,109,115,47,100,101,118,47,109,105,99,114,111,115,111,102,116,47,118,115,99,111,100,101,47,111,117,116,47,118,115,47,112,108,97,116,102,111,114,109,47,108,111,103,47,99,111,109,109,111,110,47,108,111,103,46,106,115,32,40,50,48,52,41,13,10]]
2023-06-30 07:59:01.604 [debug] parsing data "[48527:0630/075901.602440:INFO:CONSOLE(204)] "%cTRACE color: #888 [File Watcher (parcel)] [CHANGED] /Users/daimms/dev/Microsoft/vscode/out/vs/platform/terminal/node/ptyHostMain.js", source: vscode-file://vscode-app/Users/daimms/dev/microsoft/vscode/out/vs/platform/log/common/log.js (204)
" [[91,52,56,53,50,55,58,48,54,51,48,47,48,55,53,57,48,49,46,54,48,50,52,52,48,58,73,78,70,79,58,67,79,78,83,79,76,69,40,50,48,52,41,93,32,34,37,99,84,82,65,67,69,32,99,111,108,111,114,58,32,35,56,56,56,32,91,70,105,108,101,32,87,97,116,99,104,101,114,32,40,112,97,114,99,101,108,41,93,32,91,67,72,65,78,71,69,68,93,32,47,85,115,101,114,115,47,100,97,105,109,109,115,47,100,101,118,47,77,105,99,114,111,115,111,102,116,47,118,115,99,111,100,101,47,111,117,116,47,118,115,47,112,108,97,116,102,111,114,109,47,116,101,114,109,105,110,97,108,47,110,111,100,101,47,112,116,121,72,111,115,116,77,97,105,110,46,106,115,34,44,32,115,111,117,114,99,101,58,32,118,115,99,111,100,101,45,102,105,108,101,58,47,47,118,115,99,111,100,101,45,97,112,112,47,85,115,101,114,115,47,100,97,105,109,109,115,47,100,101,118,47,109,105,99,114,111,115,111,102,116,47,118,115,99,111,100,101,47,111,117,116,47,118,115,47,112,108,97,116,102,111,114,109,47,108,111,103,47,99,111,109,109,111,110,47,108,111,103,46,106,115,32,40,50,48,52,41,13,10]]
2023-06-30 07:59:01.680 [debug] parsing data "[48527:0630/075901.678862:INFO:CONSOLE(204)] "%cTRACE color: #888 [File Watcher (parcel)] >> normalized [CHANGED] /Users/daimms/dev/Microsoft/vscode/.build/log", source: vscode-file://vscode-app/Users/daimms/dev/microsoft/vscode/out/vs/platform/log/common/log.js (204)
[48527:0630/075901.679137:INFO:CONSOLE(204)] "%cTRACE color: #888 [File Watcher (parcel)] >> normalized [CHANGED] /Users/daimms/dev/Microsoft/vscode/out/vs/platform/terminal/node/ptyHostMain.js", source: vscode-file://vscode-app/Users/daimms/dev/microsoft/vscode/out/vs/platform/log/common/log.js (204)
" [[91,52,56,53,50,55,58,48,54,51,48,47,48,55,53,57,48,49,46,54,55,56,56,54,50,58,73,78,70,79,58,67,79,78,83,79,76,69,40,50,48,52,41,93,32,34,37,99,84,82,65,67,69,32,99,111,108,111,114,58,32,35,56,56,56,32,91,70,105,108,101,32,87,97,116,99,104,101,114,32,40,112,97,114,99,101,108,41,93,32,32,62,62,32,110,111,114,109,97,108,105,122,101,100,32,91,67,72,65,78,71,69,68,93,32,47,85,115,101,114,115,47,100,97,105,109,109,115,47,100,101,118,47,77,105,99,114,111,115,111,102,116,47,118,115,99,111,100,101,47,46,98,117,105,108,100,47,108,111,103,34,44,32,115,111,117,114,99,101,58,32,118,115,99,111,100,101,45,102,105,108,101,58,47,47,118,115,99,111,100,101,45,97,112,112,47,85,115,101,114,115,47,100,97,105,109,109,115,47,100,101,118,47,109,105,99,114,111,115,111,102,116,47,118,115,99,111,100,101,47,111,117,116,47,118,115,47,112,108,97,116,102,111,114,109,47,108,111,103,47,99,111,109,109,111,110,47,108,111,103,46,106,115,32,40,50,48,52,41,13,10,91,52,56,53,50,55,58,48,54,51,48,47,48,55,53,57,48,49,46,54,55,57,49,51,55,58,73,78,70,79,58,67,79,78,83,79,76,69,40,50,48,52,41,93,32,34,37,99,84,82,65,67,69,32,99,111,108,111,114,58,32,35,56,56,56,32,91,70,105,108,101,32,87,97,116,99,104,101,114,32,40,112,97,114,99,101,108,41,93,32,32,62,62,32,110,111,114,109,97,108,105,122,101,100,32,91,67,72,65,78,71,69,68,93,32,47,85,115,101,114,115,47,100,97,105,109,109,115,47,100,101,118,47,77,105,99,114,111,115,111,102,116,47,118,115,99,111,100,101,47,111,117,116,47,118,115,47,112,108,97,116,102,111,114,109,47,116,101,114,109,105,110,97,108,47,110,111,100,101,47,112,116,121,72,111,115,116,77,97,105,110,46,106,115,34,44,32,115,111,117,114,99,101,58,32,118,115,99,111,100,101,45,102,105,108,101,58,47,47,118,115,99,111,100,101,45,97,112,112,47,85,115,101,114,115,47,100,97,105,109,109,115,47,100,101,118,47,109,105,99,114,111,115,111,102,116,47,118,115,99,111,100,101,47,111,117,116,47,118,115,47,112,108,97,116,102,111,114,109,47,108,111,103,47,99,111,109,109,111,110,47,108,111,103,46,106,115,32,40,50,48,52,41,13,10]]
Yeah this has been noted in the issues where the build task picker is shown instead of run
👀
Workspace folder was undefined
This is a regression - works in stable 1.77.3
broken in 1.79.3
works in 1.78.0
3 possible culprits
https://github.com/microsoft/vscode/pull/181568 https://github.com/microsoft/vscode/pull/181656 https://github.com/microsoft/vscode/commit/d117ba48673750a4847695142db636d516b56e92