-
Notifications
You must be signed in to change notification settings - Fork 452
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
CMake tools not honoring absolute path #3475
Comments
@wjk Thanks for notifying us of this. This definitely seems like a bug that we should investigate. Are you using this on Linux? Or is this possibly an Msys environment? Any more info about your environment may be helpful to us when we investigate. |
macOS 14, actually. My apologies for leaving this out of the original report. |
@wjk thank you for reporting this issue! I have forked your project repository and added a
Let us know if leveraging a CMakePresets.json is a viable way for you as well and also if this is going to help you working on your codebase. If you are experiencing any problem just reach out to me. And if CMakePresets.json is not not possible to be used for you, we'd need to repro the problem with the kit files on your system at |
Unfortunately, your steps don’t work for me at all, because I am using macOS and not Linux or Windows. I have no way to influence the PATH or environment of the VSCode process. |
@wjk given that An additional thought: do you think it would help if you could describe your steps as I've done so that I can try to repro this issue on macOS? I am looking forward to see how you install RosBE, how you spawn the build environment, and how you start vscode. |
I have very much installed the RosBE tools, but it does not matter. I can run |
@wjk please note that in the steps I described in this message, VS Code is being launched by the RosBE environment prompt, hence it runs inside the build environment: this is accomplished by launching from a terminal the ReactOS Build Environment (in my case launching command Is this a viable approach for you? Let us know! |
It works! |
@wjk thank you for reporting back! Let us know if you encounter other problems or have any suggestion! Note: The following feature described at microsoft/vscode#152806 was proposed time ago and it would help supporting scenario similar to the |
Brief Issue Summary
I have a project. When I configure it in VSCode, I get an error stating that the names of the C and C++ compiler binaries are not found in the system path. These binaries cannot be put in the path due to the fact that the OS launches VSCode for me, instead of my running the binary directly, so I have no way to influence its environment. However, these binaries’ absolute paths are located in the
CMakeCache.txt
, and are correct. VSCode configures CMake just fine, but then it complains that it cannot find the compilers and as such all editor features are disabled. The build does not fail, as long as I only use the command line. What can I do about this?CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
The log fields were too big for GitHub to handle, so I have attached them as files below.
This is the CMake > Log Diagnostics output.
This is what I find in the output window when running under debug logging.
The text was updated successfully, but these errors were encountered: