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

MSVC installation issues #1

Open
aminya opened this issue Sep 16, 2021 · 2 comments
Open

MSVC installation issues #1

aminya opened this issue Sep 16, 2021 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed
Milestone

Comments

@aminya
Copy link
Owner

aminya commented Sep 16, 2021

This is now mostly fixed for VS2019 and VS2017. But still requires some more testing. The best way to fix it is to run the tests and debug the issues.

Old Description

Copied from jberezanski/ChocolateyPackages#117

I am using visualstudio2017buildtools and visualstudio2019buildtools to set up MSVC. However, my tests fail because vcvars.bat cannot find the toolset.

https://github.com/aminya/setup-cpp

    invalid parameters
    [ERROR:vcvars.bat] Toolset directory for version '15.9' 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

https://github.com/aminya/setup-cpp/runs/3618796745?check_suite_focus=true#step:7:302

Upvote & Fund

  • I am using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.

  • Thank you in advance for helping prioritize & fund our backlog.

Fund with Polar
@aminya aminya added bug Something isn't working help wanted Extra attention is needed labels Sep 16, 2021
@aminya
Copy link
Owner Author

aminya commented Dec 5, 2021

Found a use-case
rollbear/trompeloeil#265

@aminya aminya linked a pull request Dec 6, 2021 that will close this issue
@aminya aminya removed a link to a pull request Dec 6, 2021
@aminya aminya added this to the v1 milestone Sep 8, 2024
@aminya
Copy link
Owner Author

aminya commented Sep 8, 2024

We should switch from MSVC build tools to the full Visual Studio installation. The installation of build tools is not enough in many situations.

Also related: aminya/project_options#280

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant