Problem when compiling with 1.29.2 · Issue #14089 · microsoft/vscode-cpptools · GitHub
Skip to content

Problem when compiling with 1.29.2 #14089

Closed
Closed

Description

@maybdev

Environment

  • Windows 11, version 22H2 (i've not been able to update in years for some reason 😞)
  • Extension versions 1.28.3 (working version) and 1.29.2 (broken version)

Bug Summary and Steps to Reproduce

When using 1.29.2, if I try to build a cpp file (C++ Windows, cl.exe) it states "cl.exe build and debug active file requires the Visual Studio developer environment." even tho I AM using the Visual Studio developer environment, it gives me a choice to "Apply Developer Environment" but just replies with this error "The source code could not be built because the Visual Studio developer environment was not applied.". The same cannot be said for the previous version (1.28.3), doing the exact same thing works fine and dandy with version 1.28.3

Debugger Configurations

I didn't add a tasks.json or launch.json file

Debugger Logs

Error "cl.exe build and debug active file requires the Visual Studio developer environment."
Button "Apply Developer Environment"

Results in:
Error "The source code could not be built because the Visual Studio developer environment was not applied."

Other Extensions

No response

Additional Information

No response

Activity

  1. sean-mcmanus commented on Dec 5, 2025

    @sean-mcmanus
    Contributor

    maybdev (@maybdev) We're not able to repro the issue. What version of Visual Studio (developer tools) are you using?

  2. bobbrow commented on Dec 5, 2025

    @bobbrow
    Contributor

    This may be a duplicate of #14084 and we have a workaround in that issue until a patch goes out.

    Could you share the environment that is being applied? Hover over the terminal icon and click "Show Environment Contributions".

    Image
  3. maybdev commented on Dec 6, 2025

    @maybdev
    Author

    Sean McManus (@sean-mcmanus)

    @maybdev We're not able to repro the issue. What version of Visual Studio (developer tools) are you using?

    I'm new to C/C++ and the tool stuff, so I think your asking for this?
    Visual Studio 2022 Developer Command Prompt v17.14.21 is the version i'm currently using

  4. sean-mcmanus commented on Dec 8, 2025

    @sean-mcmanus
    Contributor

    maybdev (@maybdev) Are you able to confirm that you do not have NETFXSDKDir set by the developer environment via the steps mentioned at #14089 (comment)?

  5. sean-mcmanus commented on Dec 9, 2025

    @sean-mcmanus
    Contributor

    maybdev (@maybdev) Or can you try again with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.29.3 ? That has a fix, but you may need to re-run the Clear or Set Developer Environment command again.

  6. maybdev commented on Dec 13, 2025

    @maybdev
    Author

    Sean McManus (@sean-mcmanus) Yes, 1.19.2 was the problem that 1.29.3 fixed, thanks for all the help! I should have looked at all the other posts to see if the problem was open somewhere else (which it was)

  7. locked and limited conversation to collaborators on Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Language Servicebugmore info neededThe issue report is not actionable in its current stateregressionA bug that didn't exist in a previous releasetasks/build/debugAn issue relating to tasks.json (e.g. build issues)

Type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions