Closed x6eull closed 8 months ago
@x6eull We're adding the --using_directory to the variables in the LIBPATH environment variable. For some reason, your LIBPATH appears to have x86 references instead of ARM64, i.e. it could be a bug with the VS developer command prompt. What do you get when you run the following in a cmd prompt?
set LIBPATH
I get following when I start VS developer command prompt directly from Start Menu:
LIBPATH=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\lib\x86;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\lib\x86\store\references;C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.22621.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.22621.0;C:\Windows\Microsoft.NET\Framework\v4.0.30319
I use VsDevCmd -arch=arm64
and get:
LIBPATH=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\lib\ARM64;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\lib\x86\store\references;C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.22621.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.22621.0;C:\Windows\Microsoft.NET\Framework64\v4.0.30319
then start code
in that shell, the error still appearing.
Hey @sean-mcmanus, this issue might need further attention.
@x6eull, you can help us out by closing this issue if the problem no longer exists, or adding more information.
Environment
Bug Summary and Steps to Reproduce
Bug Summary: An error
command-line error: invalid option: --using_directory C/C++(571)
always displays at the first char of a .c or .cpp file, no matter the content, even if the file is empty.Steps to reproduce:
code
and runExpected behavior: No such error generated
Configuration and Logs
Other Extensions
No response
Additional context
No response