Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

CTest in C++ container not found #1426

@ibis-hdl

Description

@ibis-hdl
  • VSCode Version: 1.66.2
  • Local OS Version: Windows 10
  • Local chip architecture: <x86, arm64, Apple Silicon> x86/64
  • Reproduces in: Remote - Containers
  • Name of Dev Container Definition with Issue: cpp

Steps to Reproduce:

  1. Create a container as usual
  2. run cmake
  3. run ctest - it's not found

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)

$ which cmake
/usr/local/bin/cmake
$ ll /opt/cmake/bin/
total 82776
drwxr-xr-x 2 root root     4096 Apr 12 14:15 ./
drwxr-xr-x 6 root root     4096 Apr 29 16:41 ../
-rwxr-xr-x 1 root root 13456920 Apr 12 14:15 ccmake*
-rwxr-xr-x 1 root root 13501208 Apr 12 14:15 cmake*
-rwxr-xr-x 1 root root 28918368 Apr 12 14:15 cmake-gui*
-rwxr-xr-x 1 root root 13955320 Apr 12 14:15 cpack*
-rwxr-xr-x 1 root root 14908088 Apr 12 14:15 ctest*
$ echo $PATH
/vscode/vscode-server/bin/linux-x64/dfd34e8260c270da74b5c2d86d61aee4b6d56977/bin/remote-cli:/usr/local/python/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/vcpkg:/usr/local/py-utils/bin:/home/vscode/.local/bin
$ ll /home/vscode/.local/bin/
total 184
drwxr-xr-x 3 vscode vscode   4096 Apr 30 17:27 ./
drwx------ 1 vscode vscode   4096 Apr 30 17:27 ../
-rwxr-xr-x 1 vscode vscode 150562 Apr 30 17:27 bottle.py*
-rwxr-xr-x 1 vscode vscode    209 Apr 30 17:27 conan*
-rwxr-xr-x 1 vscode vscode    222 Apr 30 17:27 conan_build_info*
-rwxr-xr-x 1 vscode vscode    216 Apr 30 17:27 conan_server*
-rwxr-xr-x 1 vscode vscode    244 Apr 30 17:27 normalizer*
drwxr-xr-x 2 vscode vscode   4096 Apr 30 17:27 __pycache__/
-rwxr-xr-x 1 vscode vscode    207 Apr 30 17:27 tqdm*
$ ll /usr/local/bin/c*
lrwxrwxrwx 1 root root  20 Apr 29 16:41 /usr/local/bin/cmake -> /opt/cmake/bin/cmake*
-rwxr-xr-x 1 root root 331 Oct 29  2021 /usr/local/bin/code*

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions