question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not work with toolset 14.28 on `windows-latest`

See original GitHub issue

And in general, why not using the latest version of msvc in the README.md then show how to use older versions.

workflow file

    runs-on: windows-latest

    steps:
      - uses: ilammy/msvc-dev-cmd@v1
        with:
          arch: amd64
          toolset: 14.28

output


Run ilammy/msvc-dev-cmd@v1
Found with vswhere: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
Error: Could not setup Developer Command Prompt: invalid parameters
[ERROR:vcvars.bat] Toolset directory for version '14.28' was not found.
[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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ilammycommented, May 29, 2021

That said, I tried to reproduce the error on a new repo with a quasi-identical workflow, and it is working fine.

This might be caused by some action runner shenanigans. windows-latest might mean slightly different environments, they upgraded on per-repo basis. But it seems that 14.28 should be included in all versions that they ship. See actions/virtual-enviroments.

One thing to note is that neither this action, nor egor-tensin/vs-shell are installing MSVC components. They merely set up the environment for tools that are already installed in the system. If the tools are no there then they’re not there. For example, if you’re using private action runners, then that’s the administrator’s responsibility to install all the components.

Comparing the environments might shed some light onto this. The first step “Set up job” will output details:

Current runner version: '2.278.0'
Operating System
  Microsoft Windows Server 2019
  10.0.17763
  Datacenter
Virtual Environment
  Environment: windows-2019
  Version: 20210516.0
  Included Software: https://github.com/actions/virtual-environments/blob/win19/20210516.0/images/win/Windows2019-Readme.md
  Image Release: https://github.com/actions/virtual-environments/releases/tag/win19%2F20210516.0

If both workflows use exactly the save environment version but one fails while other does not – that’s weird. However, if a failing one has a different environment, that might be the reason.

0reactions
pzhlkj6612commented, May 29, 2021

Oh, thank you guys for sharing. I didn’t know this before.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Latest supported Visual C++ Redistributable downloads
This article lists the download links for the latest versions of Visual C++ Redistributable packages.
Read more >
error MSB8052: MSVC Toolset Version '14.28.29333' is not ...
One approach to trying to track it down is to open a Developer Command Prompt and run msbuild nameofyour.vcxproj /p:Configuration=Debug /p: ...
Read more >
Windows 10 upgrade failed? Use these 5 tools to find the ...
Windows 10 upgrade failed? Use these 5 tools to find the problem and fix it fast. Most Windows 10 upgrades and feature updates...
Read more >
Microsoft Visual C++ Redistributable Requirement for VMware ...
VMware Tools for Windows depends on Microsoft Visual C++ ... than the version included with VMware Tools installer, it will not install its ......
Read more >
VS: 16.9 ambiguity between VC toolsets 14.28.29333 ... - GitLab
Visual Studio 16.9.x is shipped with several C++ toolsets including 14.28.29333 ... Link issues together to show that they're related.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found