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

/Zc:alignedNew- compiler option results in an intellisense command line error: "invalid option: --no_overaligned_allocation #11350

Closed
neerajsi-msft opened this issue Aug 21, 2023 · 2 comments
Assignees
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix regression A bug that didn't exist in a previous release
Milestone

Comments

@neerajsi-msft
Copy link

Environment

  • OS and Version: Windows 23532.1001.amd64fre.ni_moment_liof.230819-1700
  • VS Code Version: 1.81.1
  • C/C++ Extension Version: v1.17.4

Bug Summary and Steps to Reproduce

Bug Summary:
/Zc:alignedNew- is not being translated correctly for the intellisense frontend. We're getting a command line error.

Steps to reproduce:

  1. I created a simple hello-world console application in VS2022.
  2. I opened the folder in VSCode with the C++ extension
  3. In the C++ extension settings I adjusted the arguments setting:
    "C_Cpp.default.compilerArgs": [
    "/Zc:alignedNew-"
    ]
  4. Observe this in the "Problems" pane reported by the C++ extension:
    command-line error: invalid option: --no_overaligned_allocation

This is mimicking an error I am seeing in the Windows Razzle build environment for some projects that pass the /Zc:alignedNew- flag.

Expected behavior:
Intellisense should be able to parse my file successfully even if I pass "/Zc:alignedNew-".

Configuration and Logs

"C_Cpp.default.compilerArgs": [
  "/Zc:alignedNew-"
]

Other Extensions

No response

Additional context

No response

@sean-mcmanus sean-mcmanus self-assigned this Aug 21, 2023
@sean-mcmanus sean-mcmanus added this to the 1.17.5 milestone Aug 21, 2023
@sean-mcmanus sean-mcmanus added bug Language Service quick fix regression A bug that didn't exist in a previous release labels Aug 21, 2023
@sean-mcmanus
Copy link
Contributor

@neerajsi-msft Downgrading to 1.16.3 is the recommended workaround until we can get a fix into 1.17.5.

@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Aug 22, 2023
@sean-mcmanus
Copy link
Contributor

@github-actions github-actions bot locked and limited conversation to collaborators Oct 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix regression A bug that didn't exist in a previous release
Projects
None yet
Development

No branches or pull requests

2 participants