microsoft / microsoft/nodejstools
Build on context menu not working
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.8k
- Forks
- 355
- PR merge metrics
- No merged PRs in 30d
Description
Expected
Command on context menu Build builds .ts files.
Actual Behavior
Command fails to execute as tsc.exe file no longer exists.
- NTVS Version: 1.5.10717.1 Commit Hash:c892fc71536f0cf66cc3c34359ae0b7e86fc0d6d
- Visual Studio Version: 16.3.0 Preview 2.0
- Node.js Version: 10.4.1
Steps to Reproduce
- Create a new folder on the file explorer.
- Open Visual Studio > File > Open > Folder
- Choose the newly created folder.
- Add a
tsconfig.jsonfile. - Right click the tsconfig.json > Build.
- See error on output Tsc.
=== Build Started: C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.6\tsc.exe -p "C:\Users\user\source\repos\OpenFolderError\tsconfig.json" ===
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Microsoft.VisualStudioTools.Project.ProcessOutput..ctor(Process process, Redirector redirector)
Error - Failed to start 'C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.6\tsc.exe'

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the context-menu Build path for tsconfig.json and inspect how it resolves the TypeScript compiler; compare that lookup with the missing tsc.exe path shown in the output. Reproduce the listed steps, and consider it done when Build launches the available compiler and completes the tsconfig.json build without the missing-file error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, typescript
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100