-
Notifications
You must be signed in to change notification settings - Fork 1.4k
CTest in C++ container not found #1426
Comments
Thanks for opening @ibis-hdl. Are the commands I ran in-line with yours?
Want to check this is what you encountered or if I should test in a different way. |
Thanks for answer :) I'm using Remote-Containers 0.231.6 in VS Code 1.66.2 I did in the devcontainer:
Obviously ctest isn't in the path as it should be, other CMake tools too. Dockerfile is
|
Got it, thanks for the info! So the issue is that When I added and reopened in this dev container, I was prompted to configure with the CMake Tools extension: You can also execute this with command |
No idea,
These issue raises by use of terminal. |
This is interesting - if you look in the Extensions view, is the CMake Tools extension installed? If you start typing |
Today, I can't reproduce the issue with missing cmake tools inside container. Anyway, with: I can configure and build, call CTest from VS Code Menus, but it failed to run with preset: In VS Code terminal, I can start it manually as: but not as: My CMakePresets is (hopefully not to much reduced to the releavant parts):
|
cc @bobbrow any thoughts on the above |
@bamurtaugh the problem appears to be that there is no symlink from
|
YES, simply append
|
any progress? |
Thanks for the ping! Our team has been actively focused on an updated plan for community contributions and this repo moving forward, which we've now outlined in this issue: #1589. This includes moving to a couple new repos for images and Features (https://github.com/devcontainers/images, https://github.com/devcontainers/features), and we anticipate to have a similar repo and process for templates/definitions. Please let me know if you have any questions, thank you! |
@ibis-hdl I see this PR to add the symlink: #1598 @bamurtaugh any chance you can merge it in? cc: @michaelbprice |
@bobbrow @bamurtaugh - Should I go ahead and add symlinks for the other CMake utilities beyond ctest? I was hesitant at first because it wasn't needed to solve my immediate problem, but if other people have noticed cpack symlink missing too, it probably justifies me adding that to the PR. |
As highlighted in #1589, we will ultimately be archiving this repository and focusing new work on the repos in the Does the change make sense as part of the new C++ image? We will also soon have a new repo for a subset of dev container definitions (a.k.a. templates) in the containers folder of this repository, so it may make sense to open a PR on the new C++ template when that repo is available. |
Do we have an idea when the transition to using the new images will be complete?
There is some value in having a distinct CMake devcontainer template in addition to a generic C++ one. The same might be also true for a Make container, but @bobbrow would have a better understanding of the tradeoffs, I think. |
I don't think we'd be interested in having build system-specific containers. I would expect the generic C++ one should support most of the common stuff we expect developers to do. Most people want stuff to "just work" out of the box. |
The plan is this Wednesday or Thursday! #1589 (comment) Although we won't be archiving this repo until the new templates repo is ready, which we don't have a strict ETA for. |
Steps to Reproduce:
All went fine here until I want to run ctest from VS Code's terminal. cmake is a link to ´/opt/cmake/bin/cmake´, but there isn't one for ctest (also for cpack too)
So the other cmake utils aren't in path or are sym linked into.
I could tweak Dockerfile/devcontainer.json but, I think this should come from vscode-dev-containers setup.
Probably on bottom, the other links are missing cpp/.devcontainer/reinstall-cmake.sh
The text was updated successfully, but these errors were encountered: