formulahendry / formulahendry/vscode-code-runner
[Bug] Invalid output
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 351
- PR merge metrics
- No merged PRs in 30d
Description
The powershell script
```
$installPath=& "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -version 16.0 -property installationpath
Write-Output "vswhere.exe installPath: $installPath"
Write-Output "Final installPath: $installPath"
Import-Module (Join-Path $installPath "Common7\Tools\Microsoft.VisualStudio.DevShell.dll")
Enter-VsDevShell -VsInstallPath $installPath -SkipAutomaticLocation -DevCmdArguments '-arch=x86 -no_logo -host_arch=amd64 -vcvars_ver=14.0 -winsdk_version=10.0.18362.0'
Write-Output (get-command cl.exe).Path
Write-Output (get-command rc.exe).Path
$mypath = $MyInvocation.MyCommand.Path
$mydir=Split-Path $mypath -Parent
$env:WD = Split-Path $mydir -Parent
Write-Output "WD: $env:WD"
Write-Output "中文"
$env:PATH="$env:WD\qt-deps\rubyinstaller-2.4.10-1-x64\bin;$env:PATH"
$env:PATH="C:\ActivePython27\;$env:PATH"
$env:PATH="C:\Strawberry\perl\bin;$env:PATH"
$env:PATH="$env:WD\qt\gnuwin32\bin;$env:PATH"
$env:PATH="$env:WD\qt-deps\jom_1_1_3;$env:PATH"
$env:LLVM_INSTALL_DIR="C:\Program Files (x86)\LLVM"
$env:GYP_MSVS_OVERRIDE_PATH="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC"
$env:GYP_MSVS_VERSION="2015"
$env:SYSTEM_PREFIX_WIN32="$env:WD\qt-deps\atos-packages-1.3-msvc2015-for-qt"
$env:PATH="$env:SYSTEM_PREFIX_WIN32\bin;$env:PATH"
$SYSTEM_INCLUDE_DIR="$env:SYSTEM_PREFIX_WIN32\include"
$env:SYSTEM_INCLUDE_DIR=$SYSTEM_INCLUDE_DIR.replace('\','/')
Write-Output "SYSTEM_PREFIX_WIN32:$env:SYSTEM_PREFIX_WIN32"
Write-Output "SYSTEM_INCLUDE_DIR:$env:SYSTEM_INCLUDE_DIR"
Write-Output "Path:$env:PATH"
```
Invalid encoding output:
```
[Running] powershell -ExecutionPolicy ByPass -File "c:\work\xtal\qt-releases\build-qt-shared.ps1"
vswhere.exe installPath: C:\Program Files\Microsoft Visual Studio\2022\Community
Final installPath: C:\Program Files\Microsoft Visual Studio\2022\Community
Enter-VsDevShell : [ERROR:parse_cmd.bat] Invalid command line argument: '-winsdk_version=10.0.18362.0'. Argument will
be ignored.
[ERROR:VsDevCmd.bat] *** VsDevCmd.bat encountered errors. Environment may be incomplete and/or incorrect. ***
[ERROR:VsDevCmd.bat] In an uninitialized command prompt, please 'set VSCMD_DEBUG=[value]' and then re-run
[ERROR:VsDevCmd.bat] vsdevcmd.bat [args] for additional details.
[ERROR:VsDevCmd.bat] Where [value] is:
[ERROR:VsDevCmd.bat] 1 : basic debug logging
[ERROR:VsDevCmd.bat] 2 : detailed debug logging
[ERROR:VsDevCmd.bat] 3 : trace level logging. Redirection of output to a file when using this level is recommended.
[ERROR:VsDevCmd.bat] Example: set VSCMD_DEBUG=3
[ERROR:VsDevCmd.bat] vsdevcmd.bat > vsdevcmd.trace.txt 2>&1
����λ�� C:\work\xtal\qt-releases\build-qt-shared.ps1:5 �ַ�: 1
+ Enter-VsDevShell -VsInstallPath $installPath -SkipAutomaticLocation - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Enter-VsDevShell], Exception
+ FullyQualifiedErrorId : DevCmdError,Microsoft.VisualStudio.DevShell.Commands.EnterVsDevShellCommand
get-command : ������cl.exe����ʶ��Ϊ cmdlet���������ű��ļ�������г�������ơ��������Ƶ�ƴд���������·������ȷ��·��
��ȷ��Ȼ������һ�Ρ�
����λ�� C:\work\xtal\qt-releases\build-qt-shared.ps1:7 �ַ�: 15
+ Write-Output (get-command cl.exe).Path
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (cl.exe:String) [Get-Command], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand
get-command : ������rc.exe����ʶ��Ϊ cmdlet���������ű��ļ�������г�������ơ��������Ƶ�ƴд���������·������ȷ��·��
��ȷ��Ȼ������һ�Ρ�
����λ�� C:\work\xtal\qt-releases\build-qt-shared.ps1:8 �ַ�: 15
+ Write-Output (get-command rc.exe).Path
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (rc.exe:String) [Get-Command], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand
WD: C:\work\xtal
中文
SYSTEM_PREFIX_WIN32:C:\work\xtal\qt-deps\atos-packages-1.3-msvc2015-for-qt
SYSTEM_INCLUDE_DIR:C:/work/xtal/qt-deps/atos-packages-1.3-msvc2015-for-qt/include
Path:C:\work\xtal\qt-deps\atos-packages-1.3-msvc2015-for-qt\bin;C:\work\xtal\qt-deps\jom_1_1_3;C:\work\xtal\qt\gnuwin32\bin;C:\Strawberry\perl\bin;C:\ActivePython27\;C:\work\xtal\qt-deps\rubyinstaller-2.4.10-1-x64\bin;C:\Program Files\Microsoft\jdk-11.0.12.7-hotspot\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\WireGuard\;C:\Program Files (x86)\Bitvise SSH Client;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Git\cmd;C:\Users\lygstate\AppData\Local\Microsoft\WindowsApps;C:\Users\lygstate\.dotnet\tools
[Done] exited with code=0 in 1.872 seconds
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.