-
Notifications
You must be signed in to change notification settings - Fork 461
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
Debug shows "No compiler found in cache file." dialog #2121
Comments
What platform and compiler are you using? |
Ah sorry, somehow the description was not saved properly. I've updated the issues description now... |
The debug button at the bottom tries to guess which debugger to use based on information about your compiler found in the CMakeCache.txt and it generates the The workaround is supposed to be to set the debugger yourself in the
But I'm seeing that this error will be thrown just before that setting can override the cache lookup. It should be a quick fix. I'll try to get to it today. |
@bobbrow ok, thanks! I've also tried to configure a launch for this to set debugger etc. like described in the docu:
but receive the error message: Is it related or shold it work in general with presets? |
Just curious: the configuration is done via presets and the folder with cmake cache |
ok, i think another issue is there, because in the presets we are also using toolchain-files and in the cache it cannot find
Should i create another request for this? |
Do you use If that doesn't work, I also built a version of the extension with my proposed fix so you can use the override mechanism. To try it out:
|
As for the The updated docs for debugging with launch.json are in our repository. There's a minor edit for the PATH variable that will save you a duplicate build step. |
Thanks, i've tried the new version of the plugin first. Added to
Now it shows this output in the console:
and then the same error dialog like with manually configured launches: I'm investigating, but have no idea how it's related to install of the plugin, may be something with WSL2... |
It's definitely an issue with the cpptools extension. Did you attempt to reinstall it? If you did and it's still broken, I would recommend opening an issue in that repository. You might be able to get past it by installing the full VSIX from here: https://github.com/microsoft/vscode-cpptools/releases/download/1.6.0/cpptools-linux.vsix. This package includes all of the dependencies as opposed to the one from the VS Code Marketplace which is bare-bones and then downloads the OS-specific dependencies after installation. |
FYI: Thanks, now without the entry
but same error dialog as above with |
Great! The remaining issue has to do with cpptools. If my ideas above didn't work for you, you can open a new issue for it here: https://github.com/microsoft/vscode-cpptools/issues/new/choose. |
BIG THANKS 🥇 i was blind ;) That was the issue with WSL2 and not finished cpptools installation! I've used the full pakage and now this error is gone :) and i can debug !!! |
Yes the parameters in the manual launch config |
All the ideas and the fix from this issues are working, perfect!!! |
Glad to hear that everything is working for you. As an FYI, we just found out that the VS Code Marketplace has finished adding support for platform-specific VSIX packages which means that cpptools will be able to upload the full packages to the Marketplace starting with the next release. This means that you should never have the extension tell you it is still installing starting with v1.7.0. |
Brief Issue Summary
We are using CMakePresets and configure, build and run (Shift + F5) are working as expected. But using the debug-button shows dialog with only this error: "No compiler found in cache file."
Expected:
The Debug session with builded application is starting or more detailed error is shown to investigate the configuration issue...
Apparent Behavior:
Push the debug-button:
shows dialog with only this error:
"No compiler found in cache file."
CMake Tools Log
Developer Tools Log
Platform and Versions
Other Notes/Information
...
The text was updated successfully, but these errors were encountered: