-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
cpptool server select intelliSenseMode error when cross-compiling #13016
Comments
when cpptools select incorrect mode “macos-clang-x64” (correct is windows-clang-x64) ) error come out here |
Hi @debugee . The (first) code you are referring to as the source of the issue appears to be in CMake Tools. Did you intent to open this issue against CMake Tools? If so, I can forward it to https://github.com/microsoft/vscode-cmake-tools/issues . Though, since you're using a recent version of the C/C++ extension, the Could you enable |
bug is clearly,cpptool server selected mode error when cross-compile。cpptool bin server select mode use compile and args while mode undefined,but it auto select error,cmake-tool can set mode or not,this is it freedom,when cmake-tool want cpptool server select mode use compile and arg(like x86_64_w64_mingw,platform is must windows),but select error,that the problem。 |
bug is clearly,cpptool server selected mode error when cross-compile。cpptool bin server select mode use compile and args while mode undefined,but it auto select error,cmake-tool can set mode or not,this is it freedom,when cmake-tool want cpptool server select mode use compile and arg(like x86_64_w64_mingw,platform is must windows),but select error,that the problem。 |
Don’t you have the courage to admit the bug? cant solve the problem? |
@debugee You have |
@sean-mcmanus, actually, I think CMake Tools sends us no value for |
@bobbrow Yeah, I mean coming from CMake Tools due to the compilerArgs/Fragments they're sending us. However, looking at our --target handling code, I don't see any code that checks the target for -w64- or mingw to converting the IntelliSense mode to Windows, so if that's what needs to happen then it would be our bug. |
I'm not 100% sure based on the earlier screenshots if this is happening, but you may also want to check and see if both |
@bobbrow |
谢谢你能看懂并解决我的问题,我是一个中国boy |
@debugee Are you asking about open sourcing the cpptools process? We are not planning to open source the cpptools/cpptools-srv processes, which are covered by a special license at https://github.com/microsoft/vscode-cpptools/blob/main/RuntimeLicenses/cpptools-LICENSE.txt . |
Environment
Commit: 5437499feb04f7a586f677b155b039bc2b3669eb
Date: 2024-06-18T22:37:41.291Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin x64 23.6.0
ms-vscode.cpptools-1.22.11-darwin-x64
I use llvm-mingw compile windows execution file, on macOS
when I use cmake-tools set "configurationProvider": "ms-vscode.cmake-tools"
intelliSenseMode explicit set "intelliSenseMode": "windows-clang-x64"
explicit setting is coverd by configurationProvider setting
cmake-tool set intelliSenseMode undefined value, I see the source cmake-tool found this
then cpptool server select macos-clang-x64, but target platform error!!!
I think cpptool must select correct target platform(here is windows, not macos)by complie arg "--target=x86_64-w64-mingw32"
why!!!!
pr
Bug Summary and Steps to Reproduce
Bug Summary:
Steps to reproduce:
Expected behavior:
Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: