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

TypeScript build tasks fail (likely new in version 1.64.0) #142449

Closed
klylesatepic opened this issue Feb 7, 2022 · 3 comments
Closed

TypeScript build tasks fail (likely new in version 1.64.0) #142449

klylesatepic opened this issue Feb 7, 2022 · 3 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@klylesatepic
Copy link

Issue Type: Bug

Attempt to run a build task (Ctrl+Shift+B) for a TypeScript project. Both "tsc: build - tsconfig.json" and "tsc: watch - tsconfig.json" show the issue for me.

I see the following output:
> Executing task: 'c:\path\to\project\node_modules.bin\tsc.cmd' -p 'c:\path\to\project\tsconfig.json' --watch <

ParserError: 
Line |
   1 |  … path\to\project\node_modules\.bin\tsc.cmd' -p 'c:\Epi …
     |                                               ~~
     | Unexpected token '-p' in expression or statement.

The terminal process "C:\Program Files\PowerShell\7\pwsh.exe -Command 'c:\path\to\project\node_modules\.bin\tsc.cmd' -p 'c:\path\to\project\tsconfig.json' --watch" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

I played around a little bit, and I suspect that adding a & before the tsc.cmd path would fix things. I don't have a good way to confirm that, though.

I am reasonably certain that nothing about the project changed to cause this to break -- it was working before I updated to VS Code 1.64.0 and not working after.

VS Code version: Code 1.64.0 (5554b12, 2022-02-03T04:22:20.678Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 x 3192)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.84GB (11.06GB free)
Process Argv --crash-reporter-id de677aa9-41d3-4287-920a-b43d425bae91
Screen Reader no
VM 0%
Extensions (8)
Extension Author (truncated) Version
vscode-eslint dba 2.2.2
prettier-vscode esb 9.2.0
csharp ms- 1.24.0
remote-wsl ms- 0.64.2
powershell ms- 2021.12.0
vscode-jest Ort 4.2.1
vim vsc 1.22.0
vscode-todo-highlight way 1.0.5
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythonvspyl392cf:30425750
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30433059
pythonvs932:30410667
wslgetstartedc:30433508
vscop453:30404998
vsrem710cf:30416617

@mjbvz
Copy link
Collaborator

mjbvz commented Feb 9, 2022

Looks like a potential duplicate of #142196.Do you agree @alexr00?

@alexr00
Copy link
Member

alexr00 commented Feb 9, 2022

Yes, it's a duplicate.

@alexr00 alexr00 closed this as completed Feb 9, 2022
@alexr00 alexr00 added the *duplicate Issue identified as a duplicate of another issue(s) label Feb 9, 2022
@alexr00 alexr00 removed this from the February 2022 milestone Feb 9, 2022
@klylesatepic
Copy link
Author

My use case works again as of version 1.64.2. Thanks for the quick fix!

@github-actions github-actions bot locked and limited conversation to collaborators Mar 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants