microsoft / vscode-cmake-tools

CMake integration in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
MIT License
1.48k stars 457 forks source link

Environment of sourcing '.bashrc' is not working sometimes in cmake-tools on Linux #3705

Open hwhsu1231 opened 7 months ago

hwhsu1231 commented 7 months ago

Brief Issue Summary

Recently, I tried to use find_program to find some 3rd-party tools installed on my Kubuntu 22.04 system. For example:

hwhsu1231@vb-kubuntu:~$ which node && which po4a && which mdbook && which jekyll && which crowdin
/home/hwhsu1231/.nvm/versions/node/v20.12.1/bin/node
/home/hwhsu1231/perl5/bin/po4a
/home/hwhsu1231/.cargo/bin/mdbook
/home/hwhsu1231/gems/bin/jekyll
/home/hwhsu1231/.nvm/versions/node/v20.12.1/bin/crowdin
hwhsu1231@vb-kubuntu:~$ echo $PATH
/home/hwhsu1231/.nvm/versions/node/v20.12.1/bin:/home/hwhsu1231/perl5/bin:/home/hwhsu1231/.cargo/bin:/home/hwhsu1231/anaconda3/condabin:/home/hwhsu1231/gems/bin:/home/hwhsu1231/gems/bin:/home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts
hwhsu1231@vb-kubuntu:~$

However, I found that sometimes cmake-tools cannot find those tools due to the incorrect value of $PATH.

Click to expand the full log ``` [main] Configuring project: demo-cmake-tools-bashrc [proc] Executing command: /usr/bin/cmake -S/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc -B/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default [cmake] -- ---------------------------------------- [cmake] -- JEKYLL_EXECUTABLE = JEKYLL_EXECUTABLE-NOTFOUND [cmake] -- NODE_EXECUTABLE = NODE_EXECUTABLE-NOTFOUND [cmake] -- PO4A_EXECUTABLE = PO4A_EXECUTABLE-NOTFOUND [cmake] -- MDBOOK_EXECUTABLE = MDBOOK_EXECUTABLE-NOTFOUND [cmake] -- CROWDIN_EXECUTABLE = CROWDIN_EXECUTABLE-NOTFOUND [cmake] -- ENV{SHELL} = /bin/bash [cmake] -- ENV{BASH_VERSION} = [cmake] -- ENV{PATH} = /home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts [cmake] -- File "/home/hwhsu1231/.bashrc" exists. [cmake] -- ---------------------------------------- [cmake] -- Configuring done (0.0s) [cmake] -- Generating done (0.0s) [cmake] -- Build files have been written to: /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default ```

As we can see, those tools cannot be found by find_program() due to the ENV{PATH}.

But it is working when I configuring the cmake project directly on the command-line:

Click to expand the full log ```bash hwhsu1231@vb-kubuntu:~/Repo/testing/demo-cmake-tools-bashrc$ cmake --preset default -- ---------------------------------------- -- JEKYLL_EXECUTABLE = /home/hwhsu1231/gems/bin/jekyll -- NODE_EXECUTABLE = /home/hwhsu1231/.nvm/versions/node/v20.12.1/bin/node -- PO4A_EXECUTABLE = /home/hwhsu1231/perl5/bin/po4a -- MDBOOK_EXECUTABLE = /home/hwhsu1231/.cargo/bin/mdbook -- CROWDIN_EXECUTABLE = /home/hwhsu1231/.nvm/versions/node/v20.12.1/bin/crowdin -- ENV{SHELL} = /bin/bash -- ENV{BASH_VERSION} = -- ENV{PATH} = /home/hwhsu1231/.nvm/versions/node/v20.12.1/bin:/home/hwhsu1231/perl5/bin:/home/hwhsu1231/.cargo/bin:/home/hwhsu1231/gems/bin:/home/hwhsu1231/gems/bin:/home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts -- File "/home/hwhsu1231/.bashrc" exists. -- ---------------------------------------- -- Configuring done (0.0s) -- Generating done (0.0s) -- Build files have been written to: /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default hwhsu1231@vb-kubuntu:~/Repo/testing/demo-cmake-tools-bashrc$ ```

I can't tell how to reproduce this phenomenon exactly because it just happened randomly. (At least, I haven't found the step yet.)

After testing several times, I can be certain of the following points:

  1. Rebooting will definitely resolve the issue.
  2. Closing all VSCode windows, restarting, and reopening the project folder may not always solve the issue.
  3. I highly suspect that it is related to .bashrc since the environments of those 3rd-party tools are configured by .bashrc.

You can see the demo project here: demo-cmake-tools-bashrc

CMake Tools Diagnostics

{
  "os": "linux",
  "vscodeVersion": "1.88.0",
  "cmtVersion": "1.18.21",
  "configurations": [
    {
      "folder": "/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc",
      "cmakeVersion": "3.29.2",
      "configured": true,
      "generator": "Unix Makefiles",
      "usesPresets": true,
      "compilers": {
        "C": "/usr/bin/cc",
        "CXX": "/usr/bin/c++"
      }
    }
  ],
  "cpptoolsIntegration": {
    "isReady": true,
    "hasCodeModel": false,
    "activeBuildType": "",
    "buildTypesSeen": [
      ""
    ],
    "requests": [],
    "responses": [],
    "partialMatches": [],
    "targetCount": 0,
    "executablesCount": 0,
    "librariesCount": 0,
    "targets": []
  },
  "settings": [
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": false
    }
  ]
}

Debug Log

[expand] expanding cmake
[main] Configuring project: demo-cmake-tools-bashrc 
[main] Saving open files before configure/build
[expand] expanding /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc
[driver] Start configure 
[driver] Running pre-configure checks and steps
[expand] expanding /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc
[cmakefileapi-driver] Configuring using preset
[cmakefileapi-driver] Invoking CMake /usr/bin/cmake with arguments ["-S/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc","-B/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default"]
[proc] Executing command: /usr/bin/cmake -S/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc -B/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default
[proc]   with environment: {"BAMF_DESKTOP_FILE_HINT":"/var/lib/snapd/desktop/applications/code_code.desktop","CHROME_DESKTOP":"code-url-handler.desktop","CLUTTER_IM_MODULE":"xim","CONDA_EXE":"/home/hwhsu1231/anaconda3/bin/conda","CONDA_PYTHON_EXE":"/home/hwhsu1231/anaconda3/bin/python","CONDA_SHLVL":"0","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1000/bus","DESKTOP_SESSION":"plasma","DISPLAY":":0","ELECTRON_NO_ATTACH_CONSOLE":"1","GDK_BACKEND":"x11","GDK_PIXBUF_MODULEDIR":"/snap/code/156/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders","GDK_PIXBUF_MODULE_FILE":"/home/hwhsu1231/snap/code/common/.cache/gdk-pixbuf-loaders.cache","GEM_HOME":"/home/hwhsu1231/gems","GIO_MODULE_DIR":"/home/hwhsu1231/snap/code/common/.cache/gio-modules","GPG_AGENT_INFO":"/run/user/1000/gnupg/S.gpg-agent:0:1","GSETTINGS_SCHEMA_DIR":"/home/hwhsu1231/snap/code/156/.local/share/glib-2.0/schemas","GTK2_RC_FILES":"/etc/gtk-2.0/gtkrc:/home/hwhsu1231/.gtkrc-2.0:/home/hwhsu1231/.config/gtkrc-2.0","GTK_EXE_PREFIX":"/snap/code/156/usr","GTK_IM_MODULE":"fcitx","GTK_IM_MODULE_FILE":"/home/hwhsu1231/snap/code/common/.cache/immodules/immodules.cache","GTK_PATH":"/snap/code/156/usr/lib/x86_64-linux-gnu/gtk-3.0","GTK_RC_FILES":"/etc/gtk/gtkrc:/home/hwhsu1231/.gtkrc:/home/hwhsu1231/.config/gtkrc","HOME":"/home/hwhsu1231","IM_CONFIG_PHASE":"1","KDE_APPLICATIONS_AS_SCOPE":"1","KDE_FULL_SESSION":"true","KDE_SESSION_UID":"1000","KDE_SESSION_VERSION":"5","LANG":"zh_TW.UTF-8","LANGUAGE":"zh_TW:zh","LESSCLOSE":"/usr/bin/lesspipe %s %s","LESSOPEN":"| /usr/bin/lesspipe %s","LOCPATH":"/snap/code/156/usr/lib/locale","LOGNAME":"hwhsu1231","NO_AT_BRIDGE":"1","NVM_BIN":"/home/hwhsu1231/.nvm/versions/node/v20.12.1/bin","NVM_DIR":"/home/hwhsu1231/.nvm","NVM_INC":"/home/hwhsu1231/.nvm/versions/node/v20.12.1/include/node","ORIGINAL_XDG_CURRENT_DESKTOP":"KDE","PAM_KWALLET5_LOGIN":"/run/user/1000/kwallet5.socket","PATH":"/home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts","PERL5LIB":"/home/hwhsu1231/perl5/lib/perl5","PERL_LOCAL_LIB_ROOT":"/home/hwhsu1231/perl5","PERL_MB_OPT":"--install_base \"/home/hwhsu1231/perl5\"","PERL_MM_OPT":"INSTALL_BASE=/home/hwhsu1231/perl5","PWD":"/home/hwhsu1231","QT_ACCESSIBILITY":"1","QT_AUTO_SCREEN_SCALE_FACTOR":"0","QT_IM_MODULE":"fcitx","QT_SCREEN_SCALE_FACTORS":"eDP-1=1.25;HDMI-1=1.25;","SESSION_MANAGER":"local/vb-kubuntu:@/tmp/.ICE-unix/1664,unix/vb-kubuntu:/tmp/.ICE-unix/1664","SHELL":"/bin/bash","SHLVL":"0","SNAP":"/snap/code/156","SNAP_ARCH":"amd64","SNAP_COMMON":"/var/snap/code/common","SNAP_CONTEXT":"kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M","SNAP_COOKIE":"kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M","SNAP_DATA":"/var/snap/code/156","SNAP_EUID":"1000","SNAP_INSTANCE_NAME":"code","SNAP_LAUNCHER_ARCH_TRIPLET":"x86_64-linux-gnu","SNAP_LIBRARY_PATH":"/var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void","SNAP_NAME":"code","SNAP_REAL_HOME":"/home/hwhsu1231","SNAP_REVISION":"156","SNAP_UID":"1000","SNAP_USER_COMMON":"/home/hwhsu1231/snap/code/common","SNAP_USER_DATA":"/home/hwhsu1231/snap/code/156","SNAP_VERSION":"5c3e652f","SSH_AGENT_PID":"1542","SSH_AUTH_SOCK":"/tmp/ssh-XXXXXXmiD05n/agent.1482","SYSTEMD_EXEC_PID":"1465","USER":"hwhsu1231","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CLI":"1","VSCODE_CODE_CACHE_PATH":"/home/hwhsu1231/.config/Code/CachedData/5c3e652f63e798a5ac2f31ffd0d863669328dc4c","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/home/hwhsu1231","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/run/user/1000/vscode-6090bad7-1.88-main.sock","VSCODE_NLS_CONFIG":"{\"locale\":\"en\",\"osLocale\":\"zh-tw\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_PID":"2563455","XAUTHORITY":"/home/hwhsu1231/.Xauthority","XCURSOR_SIZE":"24","XCURSOR_THEME":"breeze_cursors","XDG_CONFIG_DIRS":"/home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings","XDG_CONFIG_DIRS_VSCODE_SNAP_ORIG":"/home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings","XDG_CURRENT_DESKTOP":"KDE","XDG_DATA_DIRS":"/home/hwhsu1231/snap/code/156/.local/share:/home/hwhsu1231/snap/code/156:/snap/code/156/usr/share:/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop","XDG_DATA_DIRS_VSCODE_SNAP_ORIG":"/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop","XDG_RUNTIME_DIR":"/run/user/1000","XDG_SEAT":"seat0","XDG_SEAT_PATH":"/org/freedesktop/DisplayManager/Seat0","XDG_SESSION_CLASS":"user","XDG_SESSION_DESKTOP":"KDE","XDG_SESSION_ID":"3","XDG_SESSION_PATH":"/org/freedesktop/DisplayManager/Session1","XDG_SESSION_TYPE":"x11","XDG_VTNR":"1","XMODIFIERS":"@im=fcitx","_":"/snap/code/156/usr/share/code/code","ELECTRON_RUN_AS_NODE":"1","VSCODE_L10N_BUNDLE_LOCATION":"","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1"}
[cmake] -- ----------------------------------------
[cmake] -- JEKYLL_EXECUTABLE   = JEKYLL_EXECUTABLE-NOTFOUND
[cmake] -- NODE_EXECUTABLE     = NODE_EXECUTABLE-NOTFOUND
[cmake] -- PO4A_EXECUTABLE     = PO4A_EXECUTABLE-NOTFOUND
[cmake] -- MDBOOK_EXECUTABLE   = MDBOOK_EXECUTABLE-NOTFOUND
[cmake] -- CROWDIN_EXECUTABLE  = CROWDIN_EXECUTABLE-NOTFOUND
[cmake] -- ENV{SHELL}          = /bin/bash
[cmake] -- ENV{BASH_VERSION}   = 
[cmake] -- ENV{PATH}           = /home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts
[cmake] -- File "/home/hwhsu1231/.bashrc" exists.
[cmake] -- ----------------------------------------
[cmake] -- Configuring done (0.0s)
[cmake] -- Generating done (0.0s)
[cmake] -- Build files have been written to: /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default
[cmakefileapi-parser] Read reply folder: /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default/.cmake/api/v1/reply
[cmakefileapi-parser] Found index files: ["cache-v2-1cab305b0ac598f51502.json","cmakeFiles-v1-433ee4f7cbd39281ace5.json","codemodel-v2-3efc49006ed6009c1bfe.json","directory-.-f5ebdc15457944623624.json","index-2024-04-13T15-05-01-0846.json","toolchains-v1-7096c62e23c342eb06a8.json"]
[expand] expanding cmake
[cache] Reading CMake cache file /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default/CMakeCache.txt
[expand] expanding cmake
[cache] Parsing CMake cache string
[expand] expanding cmake
[extension] [4482] cmake.configure finished (returned 0)
[expand] expanding cmake
[cache] Reading CMake cache file /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default/CMakeCache.txt
[cache] Parsing CMake cache string

Additional Information

my-bashrc-and-profile.zip

gcampbell-msft commented 7 months ago

@hwhsu1231 To confirm, there is no way to repro this on the command-line? It seems like if the issue is related to the .bashrc files, then I would expect that it doesn't have to do with the CMake Tools extension.

gcampbell-msft commented 7 months ago

@hwhsu1231 However, it could have to do with our interpretation of the PATH variable while parsing the presets. I see you are using the pre-release version (THANK YOU!), does this also happen on the official release version (1.17.17). Thanks.

Also, if possible, please provide your repro project, if it has anything to do with presets interpretation, we will need that in order to investigate.

hwhsu1231 commented 7 months ago

Hello, @gcampbell-msft

To confirm, there is no way to repro this on the command-line?

That is correct. I haven't reproduced this on the command-line currently, and it only happened to CMake Tools.

Also, if possible, please provide your repro project, if it has anything to do with presets interpretation, we will need that in order to investigate.

I already provided the repro/demo project, demo-cmake-tools-bashrc, at the first comment. And it's already published to GitHub, so you can clone it to investigate.

hwhsu1231 commented 7 months ago

I see you are using the pre-release version (THANK YOU!), does this also happen on the official release version (1.17.17). Thanks.

Yes. It does. I switched to 1.17.17, and rebooted after this phenomenon finally happened. As we can see, rebooting can definitely solve this issue.

Evelyn-001 commented 7 months ago

@hwhsu1231 @gcampbell-msft, thanks for providing the demo project. Today we verified this issue with below environment and repro steps. If we miss or misunderstand anything, please let us know. Thanks. ENV:

Repro steps: 1.Open the project folder with VSCode.

  1. Run "delete cache and reconfigure" command to configure project.
  2. Observe the output

Actual Results: Could find the Node package. image

hwhsu1231 commented 7 months ago

Hello, @Evelyn-001

If we miss or misunderstand anything, please let us know.

There's something you indeed misunderstand. It seems that the Node.js you installed is through apt install because I saw your output of which node command is:

/usr/bin/node

But the Node.js I installed in the demo is through nvm. Therefore, the output of which node command is:

/home/hwhsu1231/.nvm/versions/node/v20.12.1/bin/node

If you install Node.js through nvm successfully, you should see the following contents in your .bashrc:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

And that is why node can be found if the .bashrc is sourced correctly.

Evelyn-001 commented 7 months ago

@hwhsu1231 @gcampbell-msft, thanks for your reply. Today we installed Node.js using the method you mentioned in abopve comment, but we still didn't repro this issue with below steps: ENV:

System info: Ubuntu 22.04.4 LTS

VS code version: 1.88.1

CMake Extension version: v 1.17.17& v 1.88.29 pre-release

Install Node using the method the customer mentioned.

Repro steps: 1.Open the project folder with VSCode.

  1. Run "delete cache and reconfigure" command to configure project.
  2. Observe the output

Actual Results: Could find the Node package. image

hwhsu1231 commented 7 months ago

Hello, @Evelyn-001

Can you please try a few more times to see what happens? This issue occurs sporadically, so I can't precisely pinpoint how to reproduce it.

Note: In fact, the phenomenon occurred again while I was writing this response. However, this time, closing all windows and restarting VSCode resolved the issue. I suspect that the "software update" may be the cause. For example:

Screenshot_20240425_112700

Evelyn-001 commented 7 months ago

@hwhsu1231 @gcampbell-msft, thanks for your reply. Sorry we tried to reproduce this issue many times but still don't reproduce it. Could you please install VS code on another clean machine or reinstall VS Code to verify this issue again? Thanks a lot.

hwhsu1231 commented 7 months ago

Hello, @Evelyn-001

Besides CMake: Log Diagnostics and "cmake.loggingLevel": "debug", what other useful information can I provide for investigation (when the issue occurs)?"

Could you please install VS code on another clean machine or reinstall VS Code to verify this issue again? Thanks a lot.

BTW, my VSCode is installed by Snap. Here are some information about it:

hwhsu1231@vb-kubuntu:~$ snap list code
Name  Version   Rev  Tracking       Publisher  Notes
code  e170252f  157  latest/stable  vscode✓    classic
hwhsu1231@vb-kubuntu:~$ snap info code
name:      code
summary:   Code editing. Redefined.
publisher: Visual Studio Code (vscode✓)
store-url: https://snapcraft.io/code
contact:   https://twitter.com/code
license:   unset
description: |
  Visual Studio Code is a new choice of tool that combines the
  simplicity of a code editor with what developers need for the core
  edit-build-debug cycle.
commands:
  - code
  - code.url-handler
snap-id:      Ht0aUHi7ofh9Fbwh6m7jUN2pAy6kzBiu
tracking:     latest/stable
refresh-date: 5 days ago, at 13:51 CST
channels:
  latest/stable:    e170252f 2024-04-11 (157) 326MB classic
  latest/candidate: ↑                               
  latest/beta:      ↑                               
  latest/edge:      ↑                               
installed:          e170252f            (157) 326MB classic
hwhsu1231@vb-kubuntu:~$ 
Evelyn-001 commented 7 months ago

@gcampbell-msft, we still don't repro this issue on our environment. what other useful information can customer provide for investigation (when the issue occurs)?" Thanks in advance.

gcampbell-msft commented 7 months ago

@hwhsu1231 @Evelyn-001 Unfortunately this seems to be a difficult problem to reproduce in general. Either way, from all of your screenshots, this seems to be an issue of opening VS Code with the right environment, not so much a bug with CMake Tools.

When this problem reproduces, are you able to, on the terminal command-line, ignoring the CMake Tools extension, print out the environment variable and see what the values are normally vs in the repro?

hwhsu1231 commented 7 months ago

When this problem reproduces, are you able to, on the terminal command-line, ignoring the CMake Tools extension, print out the environment variable and see what the values are normally vs in the repro?

@gcampbell-msft Sure. But I have some questions to ask:

  1. What else environment variables do I need to provide? Do you mean that the output of env command?
  2. What do you mean ignoring the CMake Tools extensions? Do you mean to disable the extension?
  3. If you want to see what the values are normally vs in the repo, I think I already provided in the 1st comment. Do you mean that you want to see the outputs with env command printed in the normal vs in the repro?
gcampbell-msft commented 7 months ago
  1. Specifically the env command for the PATH variable.
  2. No, you don't need to ignore the CMake Tools extension, I just mean that if you directly print out the environment PATH in the terminal, the CMake Tools extension has no control over that, so it will be "ignoring the CMake Tools extension", or just that our extension doesn't affect this.
  3. Yes, I want to see if the problem is also reproducing only in the terminal, rather than just from our extension. If this is reproducing in the terminal by itself, without the Cmake tools extension, then this is simply a problem with the .bashrc and opening VS Code in that environment, and not with the CMake Tools extension.

Thanks!

hwhsu1231 commented 7 months ago

@gcampbell-msft

To print the output of the env command, I comitted this change:

https://github.com/hwhsu1231-demo/demo-cmake-tools-bashrc/commit/e9cfc1333614f4cf8f7ec455ac155c7015576fae

However, I don't think this issue is related to VSCode (Maybe I'm wrong~). It's because when I first tried to test if there was a problem, I actually conducted the test on VSCode's "Integrated Terminal". The results, as I posted in my 1st comment, were successful in identifying those third-party tools.

BTW, as I write this comment, the issue has finally reoccurred. Below are the log outputs and screenshots from my tests. This time, I tested three scenarios:

  1. Output from the CMake Tools extensions
  2. Output from VSCode's Integrated Terminal
  3. Output from Kubuntu's Konsole

The results show that only the output from the CMake Tools extensions failed to find those third-party tools.

LOG-20240502-cmt-extension.txt LOG-20240502-vsc-terminal.txt LOG-20240502-konsole.txt

Screenshot_20240502_171218 Screenshot_20240502_171050 Screenshot_20240502_165545

hwhsu1231 commented 7 months ago

@gcampbell-msft

The following is the debug log printed in CMake/Build output panel when reopenning the project folder in vscode:

Click to expand the debug log ``` [proc] Executing command: cmake --version [proc] Executing command: cmake -E capabilities [expand] expanding C:/msys64/mingw64 [expand] expanding C:/msys64/mingw32 [expand] expanding C:/msys64/mingw32/bin [expand] expanding C:/msys64/mingw64/bin [expand] expanding C:/msys64/clang32/bin [expand] expanding C:/msys64/clang64/bin [expand] expanding C:/msys64/clangarm64/bin [expand] expanding C:/msys64/ucrt64/bin [main] Safe constructing new CMakeProject instance [variant] Constructing VariantManager [main] Constructing new CMakeProject instance [main] Starting CMake Tools second-phase init [expand] expanding ${workspaceFolder} [variant] Loaded new set of variants [kit] Reading kits file /home/hwhsu1231/.local/share/CMakeTools/cmake-tools-kits.json [kit] Successfully loaded 1 kits from /home/hwhsu1231/.local/share/CMakeTools/cmake-tools-kits.json [expand] expanding /usr/bin/gcc [expand] expanding /usr/bin/g++ [expand] expanding cmake [kit] Not reading non-existent kits file: /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/.vscode/cmake-kits.json [expand] expanding /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc [presetController] Reading presets file /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/CMakePresets.json [presetController] Reading and validating the presets "file /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/CMakePresets.json" [presetController] Successfully validated presets in /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/CMakePresets.json [main] Resolving the selected configure preset [proc] Executing command: uname -s [expand] expanding /var/lib/snapd/desktop/applications/code_code.desktop [expand] expanding code-url-handler.desktop [expand] expanding xim [expand] expanding /home/hwhsu1231/anaconda3/bin/conda [expand] expanding /home/hwhsu1231/anaconda3/bin/python [expand] expanding 0 [expand] expanding unix:path=/run/user/1000/bus [expand] expanding plasma [expand] expanding :0 [expand] expanding 1 [expand] expanding x11 [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gdk-pixbuf-loaders.cache [expand] expanding /home/hwhsu1231/gems [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gio-modules [expand] expanding /run/user/1000/gnupg/S.gpg-agent:0:1 [expand] expanding /home/hwhsu1231/snap/code/157/.local/share/glib-2.0/schemas [expand] expanding /etc/gtk-2.0/gtkrc:/home/hwhsu1231/.gtkrc-2.0:/home/hwhsu1231/.config/gtkrc-2.0 [expand] expanding /snap/code/157/usr [expand] expanding fcitx [expand] expanding /home/hwhsu1231/snap/code/common/.cache/immodules/immodules.cache [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gtk-3.0 [expand] expanding /etc/gtk/gtkrc:/home/hwhsu1231/.gtkrc:/home/hwhsu1231/.config/gtkrc [expand] expanding /home/hwhsu1231 [expand] expanding 1 [expand] expanding 4d9a265a85fa49d0b405cbca35eec6a6 [expand] expanding 8:20697870 [expand] expanding 1 [expand] expanding true [expand] expanding 1000 [expand] expanding 5 [expand] expanding zh_TW.UTF-8 [expand] expanding zh_TW:zh [expand] expanding /usr/bin/lesspipe %s %s [expand] expanding | /usr/bin/lesspipe %s [expand] expanding /snap/code/157/usr/lib/locale [expand] expanding hwhsu1231 [expand] expanding 1475 [expand] expanding 1 [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/bin [expand] expanding /home/hwhsu1231/.nvm [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/include/node [expand] expanding KDE [expand] expanding /run/user/1000/kwallet5.socket [expand] expanding /home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts [expand] expanding /home/hwhsu1231/perl5/lib/perl5 [expand] expanding /home/hwhsu1231/perl5 [expand] expanding --install_base "/home/hwhsu1231/perl5" [expand] expanding INSTALL_BASE=/home/hwhsu1231/perl5 [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding 1 [expand] expanding 0 [expand] expanding fcitx [expand] expanding eDP-1=1.25;HDMI-1=1.25; [expand] expanding local/vb-kubuntu:@/tmp/.ICE-unix/1680,unix/vb-kubuntu:/tmp/.ICE-unix/1680 [expand] expanding /bin/bash [expand] expanding 0 [expand] expanding /snap/code/157 [expand] expanding amd64 [expand] expanding /var/snap/code/common [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding /var/snap/code/157 [expand] expanding 1000 [expand] expanding code [expand] expanding x86_64-linux-gnu [expand] expanding /var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void [expand] expanding code [expand] expanding /home/hwhsu1231 [expand] expanding 157 [expand] expanding 1000 [expand] expanding /home/hwhsu1231/snap/code/common [expand] expanding /home/hwhsu1231/snap/code/157 [expand] expanding e170252f [expand] expanding 1553 [expand] expanding /tmp/ssh-XXXXXX5RKxMy/agent.1493 [expand] expanding 3289304 [expand] expanding hwhsu1231 [expand] expanding vs/workbench/api/node/extensionHostProcess [expand] expanding 1 [expand] expanding /home/hwhsu1231/.config/Code/CachedData/e170252f762678dec6ca2cc69aba1570769a5d39 [expand] expanding extensionHost [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding true [expand] expanding /run/user/1000/vscode-6090bad7-1.88-main.sock [expand] expanding {"locale":"en","osLocale":"zh-tw","availableLanguages":{},"_languagePackSupport":true} [expand] expanding 2590 [expand] expanding /home/hwhsu1231/.Xauthority [expand] expanding 24 [expand] expanding breeze_cursors [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding KDE [expand] expanding /home/hwhsu1231/snap/code/157/.local/share:/home/hwhsu1231/snap/code/157:/snap/code/157/usr/share:/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /run/user/1000 [expand] expanding seat0 [expand] expanding /org/freedesktop/DisplayManager/Seat0 [expand] expanding user [expand] expanding KDE [expand] expanding 3 [expand] expanding /org/freedesktop/DisplayManager/Session1 [expand] expanding x11 [expand] expanding 1 [expand] expanding @im=fcitx [expand] expanding /snap/code/157/usr/share/code/code [expand] expanding 1 [expand] expanding 1 [expand] expanding ${sourceDir}/out/build/${presetName} [expand] expanding /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default [expand] expanding cmake [main] Loading new configure preset into CMake driver [main] Resolving the selected build preset [main] Using generator from user configuration: Ninja [expand] expanding /var/lib/snapd/desktop/applications/code_code.desktop [expand] expanding code-url-handler.desktop [expand] expanding xim [expand] expanding /home/hwhsu1231/anaconda3/bin/conda [expand] expanding /home/hwhsu1231/anaconda3/bin/python [expand] expanding 0 [expand] expanding unix:path=/run/user/1000/bus [expand] expanding plasma [expand] expanding :0 [expand] expanding 1 [expand] expanding x11 [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gdk-pixbuf-loaders.cache [expand] expanding /home/hwhsu1231/gems [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gio-modules [expand] expanding /run/user/1000/gnupg/S.gpg-agent:0:1 [expand] expanding /home/hwhsu1231/snap/code/157/.local/share/glib-2.0/schemas [expand] expanding /etc/gtk-2.0/gtkrc:/home/hwhsu1231/.gtkrc-2.0:/home/hwhsu1231/.config/gtkrc-2.0 [expand] expanding /snap/code/157/usr [expand] expanding fcitx [expand] expanding /home/hwhsu1231/snap/code/common/.cache/immodules/immodules.cache [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gtk-3.0 [expand] expanding /etc/gtk/gtkrc:/home/hwhsu1231/.gtkrc:/home/hwhsu1231/.config/gtkrc [expand] expanding /home/hwhsu1231 [expand] expanding 1 [expand] expanding 4d9a265a85fa49d0b405cbca35eec6a6 [expand] expanding 8:20697870 [expand] expanding 1 [expand] expanding true [expand] expanding 1000 [expand] expanding 5 [expand] expanding zh_TW.UTF-8 [expand] expanding zh_TW:zh [expand] expanding /usr/bin/lesspipe %s %s [expand] expanding | /usr/bin/lesspipe %s [expand] expanding /snap/code/157/usr/lib/locale [expand] expanding hwhsu1231 [expand] expanding 1475 [expand] expanding 1 [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/bin [expand] expanding /home/hwhsu1231/.nvm [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/include/node [expand] expanding KDE [expand] expanding /run/user/1000/kwallet5.socket [expand] expanding /home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts [expand] expanding /home/hwhsu1231/perl5/lib/perl5 [expand] expanding /home/hwhsu1231/perl5 [expand] expanding --install_base "/home/hwhsu1231/perl5" [expand] expanding INSTALL_BASE=/home/hwhsu1231/perl5 [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding 1 [expand] expanding 0 [expand] expanding fcitx [expand] expanding eDP-1=1.25;HDMI-1=1.25; [expand] expanding local/vb-kubuntu:@/tmp/.ICE-unix/1680,unix/vb-kubuntu:/tmp/.ICE-unix/1680 [expand] expanding /bin/bash [expand] expanding 0 [expand] expanding /snap/code/157 [expand] expanding amd64 [expand] expanding /var/snap/code/common [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding /var/snap/code/157 [expand] expanding 1000 [expand] expanding code [expand] expanding x86_64-linux-gnu [expand] expanding /var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void [expand] expanding code [expand] expanding /home/hwhsu1231 [expand] expanding 157 [expand] expanding 1000 [expand] expanding /home/hwhsu1231/snap/code/common [expand] expanding /home/hwhsu1231/snap/code/157 [expand] expanding e170252f [expand] expanding 1553 [expand] expanding /tmp/ssh-XXXXXX5RKxMy/agent.1493 [expand] expanding 3289304 [expand] expanding hwhsu1231 [expand] expanding vs/workbench/api/node/extensionHostProcess [expand] expanding 1 [expand] expanding /home/hwhsu1231/.config/Code/CachedData/e170252f762678dec6ca2cc69aba1570769a5d39 [expand] expanding extensionHost [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding true [expand] expanding /run/user/1000/vscode-6090bad7-1.88-main.sock [expand] expanding {"locale":"en","osLocale":"zh-tw","availableLanguages":{},"_languagePackSupport":true} [expand] expanding 2590 [expand] expanding /home/hwhsu1231/.Xauthority [expand] expanding 24 [expand] expanding breeze_cursors [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding KDE [expand] expanding /home/hwhsu1231/snap/code/157/.local/share:/home/hwhsu1231/snap/code/157:/snap/code/157/usr/share:/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /run/user/1000 [expand] expanding seat0 [expand] expanding /org/freedesktop/DisplayManager/Seat0 [expand] expanding user [expand] expanding KDE [expand] expanding 3 [expand] expanding /org/freedesktop/DisplayManager/Session1 [expand] expanding x11 [expand] expanding 1 [expand] expanding @im=fcitx [expand] expanding /snap/code/157/usr/share/code/code [expand] expanding 1 [expand] expanding 1 [expand] expanding ${sourceDir}/out/build/${presetName} [expand] expanding /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default [expand] expanding /var/lib/snapd/desktop/applications/code_code.desktop [expand] expanding code-url-handler.desktop [expand] expanding xim [expand] expanding /home/hwhsu1231/anaconda3/bin/conda [expand] expanding /home/hwhsu1231/anaconda3/bin/python [expand] expanding 0 [expand] expanding unix:path=/run/user/1000/bus [expand] expanding plasma [expand] expanding :0 [expand] expanding 1 [expand] expanding x11 [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gdk-pixbuf-loaders.cache [expand] expanding /home/hwhsu1231/gems [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gio-modules [expand] expanding /run/user/1000/gnupg/S.gpg-agent:0:1 [expand] expanding /home/hwhsu1231/snap/code/157/.local/share/glib-2.0/schemas [expand] expanding /etc/gtk-2.0/gtkrc:/home/hwhsu1231/.gtkrc-2.0:/home/hwhsu1231/.config/gtkrc-2.0 [expand] expanding /snap/code/157/usr [expand] expanding fcitx [expand] expanding /home/hwhsu1231/snap/code/common/.cache/immodules/immodules.cache [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gtk-3.0 [expand] expanding /etc/gtk/gtkrc:/home/hwhsu1231/.gtkrc:/home/hwhsu1231/.config/gtkrc [expand] expanding /home/hwhsu1231 [expand] expanding 1 [expand] expanding 4d9a265a85fa49d0b405cbca35eec6a6 [expand] expanding 8:20697870 [expand] expanding 1 [expand] expanding true [expand] expanding 1000 [expand] expanding 5 [expand] expanding zh_TW.UTF-8 [expand] expanding zh_TW:zh [expand] expanding /usr/bin/lesspipe %s %s [expand] expanding | /usr/bin/lesspipe %s [expand] expanding /snap/code/157/usr/lib/locale [expand] expanding hwhsu1231 [expand] expanding 1475 [expand] expanding 1 [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/bin [expand] expanding /home/hwhsu1231/.nvm [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/include/node [expand] expanding KDE [expand] expanding /run/user/1000/kwallet5.socket [expand] expanding /home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts [expand] expanding /home/hwhsu1231/perl5/lib/perl5 [expand] expanding /home/hwhsu1231/perl5 [expand] expanding --install_base "/home/hwhsu1231/perl5" [expand] expanding INSTALL_BASE=/home/hwhsu1231/perl5 [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding 1 [expand] expanding 0 [expand] expanding fcitx [expand] expanding eDP-1=1.25;HDMI-1=1.25; [expand] expanding local/vb-kubuntu:@/tmp/.ICE-unix/1680,unix/vb-kubuntu:/tmp/.ICE-unix/1680 [expand] expanding /bin/bash [expand] expanding 0 [expand] expanding /snap/code/157 [expand] expanding amd64 [expand] expanding /var/snap/code/common [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding /var/snap/code/157 [expand] expanding 1000 [expand] expanding code [expand] expanding x86_64-linux-gnu [expand] expanding /var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void [expand] expanding code [expand] expanding /home/hwhsu1231 [expand] expanding 157 [expand] expanding 1000 [expand] expanding /home/hwhsu1231/snap/code/common [expand] expanding /home/hwhsu1231/snap/code/157 [expand] expanding e170252f [expand] expanding 1553 [expand] expanding /tmp/ssh-XXXXXX5RKxMy/agent.1493 [expand] expanding 3289304 [expand] expanding hwhsu1231 [expand] expanding vs/workbench/api/node/extensionHostProcess [expand] expanding 1 [expand] expanding /home/hwhsu1231/.config/Code/CachedData/e170252f762678dec6ca2cc69aba1570769a5d39 [expand] expanding extensionHost [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding true [expand] expanding /run/user/1000/vscode-6090bad7-1.88-main.sock [expand] expanding {"locale":"en","osLocale":"zh-tw","availableLanguages":{},"_languagePackSupport":true} [expand] expanding 2590 [expand] expanding /home/hwhsu1231/.Xauthority [expand] expanding 24 [expand] expanding breeze_cursors [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding KDE [expand] expanding /home/hwhsu1231/snap/code/157/.local/share:/home/hwhsu1231/snap/code/157:/snap/code/157/usr/share:/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /run/user/1000 [expand] expanding seat0 [expand] expanding /org/freedesktop/DisplayManager/Seat0 [expand] expanding user [expand] expanding KDE [expand] expanding 3 [expand] expanding /org/freedesktop/DisplayManager/Session1 [expand] expanding x11 [expand] expanding 1 [expand] expanding @im=fcitx [expand] expanding /snap/code/157/usr/share/code/code [expand] expanding 1 [expand] expanding 1 [main] Loading new build preset into CMake driver [main] Resolving the selected test preset [main] Resolving the selected test preset [main] Using generator from user configuration: Ninja [expand] expanding /var/lib/snapd/desktop/applications/code_code.desktop [expand] expanding code-url-handler.desktop [expand] expanding xim [expand] expanding /home/hwhsu1231/anaconda3/bin/conda [expand] expanding /home/hwhsu1231/anaconda3/bin/python [expand] expanding 0 [expand] expanding unix:path=/run/user/1000/bus [expand] expanding plasma [expand] expanding :0 [expand] expanding 1 [expand] expanding x11 [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gdk-pixbuf-loaders.cache [expand] expanding /home/hwhsu1231/gems [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gio-modules [expand] expanding /run/user/1000/gnupg/S.gpg-agent:0:1 [expand] expanding /home/hwhsu1231/snap/code/157/.local/share/glib-2.0/schemas [expand] expanding /etc/gtk-2.0/gtkrc:/home/hwhsu1231/.gtkrc-2.0:/home/hwhsu1231/.config/gtkrc-2.0 [expand] expanding /snap/code/157/usr [expand] expanding fcitx [expand] expanding /home/hwhsu1231/snap/code/common/.cache/immodules/immodules.cache [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gtk-3.0 [expand] expanding /etc/gtk/gtkrc:/home/hwhsu1231/.gtkrc:/home/hwhsu1231/.config/gtkrc [expand] expanding /home/hwhsu1231 [expand] expanding 1 [expand] expanding 4d9a265a85fa49d0b405cbca35eec6a6 [expand] expanding 8:20697870 [expand] expanding 1 [expand] expanding true [expand] expanding 1000 [expand] expanding 5 [expand] expanding zh_TW.UTF-8 [expand] expanding zh_TW:zh [expand] expanding /usr/bin/lesspipe %s %s [expand] expanding | /usr/bin/lesspipe %s [expand] expanding /snap/code/157/usr/lib/locale [expand] expanding hwhsu1231 [expand] expanding 1475 [expand] expanding 1 [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/bin [expand] expanding /home/hwhsu1231/.nvm [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/include/node [expand] expanding KDE [expand] expanding /run/user/1000/kwallet5.socket [expand] expanding /home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts [expand] expanding /home/hwhsu1231/perl5/lib/perl5 [expand] expanding /home/hwhsu1231/perl5 [expand] expanding --install_base "/home/hwhsu1231/perl5" [expand] expanding INSTALL_BASE=/home/hwhsu1231/perl5 [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding 1 [expand] expanding 0 [expand] expanding fcitx [expand] expanding eDP-1=1.25;HDMI-1=1.25; [expand] expanding local/vb-kubuntu:@/tmp/.ICE-unix/1680,unix/vb-kubuntu:/tmp/.ICE-unix/1680 [expand] expanding /bin/bash [expand] expanding 0 [expand] expanding /snap/code/157 [expand] expanding amd64 [expand] expanding /var/snap/code/common [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding /var/snap/code/157 [expand] expanding 1000 [expand] expanding code [expand] expanding x86_64-linux-gnu [expand] expanding /var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void [expand] expanding code [expand] expanding /home/hwhsu1231 [expand] expanding 157 [expand] expanding 1000 [expand] expanding /home/hwhsu1231/snap/code/common [expand] expanding /home/hwhsu1231/snap/code/157 [expand] expanding e170252f [expand] expanding 1553 [expand] expanding /tmp/ssh-XXXXXX5RKxMy/agent.1493 [expand] expanding 3289304 [expand] expanding hwhsu1231 [expand] expanding vs/workbench/api/node/extensionHostProcess [expand] expanding 1 [expand] expanding /home/hwhsu1231/.config/Code/CachedData/e170252f762678dec6ca2cc69aba1570769a5d39 [expand] expanding extensionHost [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding true [expand] expanding /run/user/1000/vscode-6090bad7-1.88-main.sock [expand] expanding {"locale":"en","osLocale":"zh-tw","availableLanguages":{},"_languagePackSupport":true} [expand] expanding 2590 [expand] expanding /home/hwhsu1231/.Xauthority [expand] expanding 24 [expand] expanding breeze_cursors [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding KDE [expand] expanding /home/hwhsu1231/snap/code/157/.local/share:/home/hwhsu1231/snap/code/157:/snap/code/157/usr/share:/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /run/user/1000 [expand] expanding seat0 [expand] expanding /org/freedesktop/DisplayManager/Seat0 [expand] expanding user [expand] expanding KDE [expand] expanding 3 [expand] expanding /org/freedesktop/DisplayManager/Session1 [expand] expanding x11 [expand] expanding 1 [expand] expanding @im=fcitx [expand] expanding /snap/code/157/usr/share/code/code [expand] expanding 1 [expand] expanding 1 [expand] expanding ${sourceDir}/out/build/${presetName} [expand] expanding /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default [expand] expanding /var/lib/snapd/desktop/applications/code_code.desktop [expand] expanding code-url-handler.desktop [expand] expanding xim [expand] expanding /home/hwhsu1231/anaconda3/bin/conda [expand] expanding /home/hwhsu1231/anaconda3/bin/python [expand] expanding 0 [expand] expanding unix:path=/run/user/1000/bus [expand] expanding plasma [expand] expanding :0 [expand] expanding 1 [expand] expanding x11 [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gdk-pixbuf-loaders.cache [expand] expanding /home/hwhsu1231/gems [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gio-modules [expand] expanding /run/user/1000/gnupg/S.gpg-agent:0:1 [expand] expanding /home/hwhsu1231/snap/code/157/.local/share/glib-2.0/schemas [expand] expanding /etc/gtk-2.0/gtkrc:/home/hwhsu1231/.gtkrc-2.0:/home/hwhsu1231/.config/gtkrc-2.0 [expand] expanding /snap/code/157/usr [expand] expanding fcitx [expand] expanding /home/hwhsu1231/snap/code/common/.cache/immodules/immodules.cache [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gtk-3.0 [expand] expanding /etc/gtk/gtkrc:/home/hwhsu1231/.gtkrc:/home/hwhsu1231/.config/gtkrc [expand] expanding /home/hwhsu1231 [expand] expanding 1 [expand] expanding 4d9a265a85fa49d0b405cbca35eec6a6 [expand] expanding 8:20697870 [expand] expanding 1 [expand] expanding true [expand] expanding 1000 [expand] expanding 5 [expand] expanding zh_TW.UTF-8 [expand] expanding zh_TW:zh [expand] expanding /usr/bin/lesspipe %s %s [expand] expanding | /usr/bin/lesspipe %s [expand] expanding /snap/code/157/usr/lib/locale [expand] expanding hwhsu1231 [expand] expanding 1475 [expand] expanding 1 [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/bin [expand] expanding /home/hwhsu1231/.nvm [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/include/node [expand] expanding KDE [expand] expanding /run/user/1000/kwallet5.socket [expand] expanding /home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts [expand] expanding /home/hwhsu1231/perl5/lib/perl5 [expand] expanding /home/hwhsu1231/perl5 [expand] expanding --install_base "/home/hwhsu1231/perl5" [expand] expanding INSTALL_BASE=/home/hwhsu1231/perl5 [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding 1 [expand] expanding 0 [expand] expanding fcitx [expand] expanding eDP-1=1.25;HDMI-1=1.25; [expand] expanding local/vb-kubuntu:@/tmp/.ICE-unix/1680,unix/vb-kubuntu:/tmp/.ICE-unix/1680 [expand] expanding /bin/bash [expand] expanding 0 [expand] expanding /snap/code/157 [expand] expanding amd64 [expand] expanding /var/snap/code/common [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding /var/snap/code/157 [expand] expanding 1000 [expand] expanding code [expand] expanding x86_64-linux-gnu [expand] expanding /var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void [expand] expanding code [expand] expanding /home/hwhsu1231 [expand] expanding 157 [expand] expanding 1000 [expand] expanding /home/hwhsu1231/snap/code/common [expand] expanding /home/hwhsu1231/snap/code/157 [expand] expanding e170252f [expand] expanding 1553 [expand] expanding /tmp/ssh-XXXXXX5RKxMy/agent.1493 [expand] expanding 3289304 [expand] expanding hwhsu1231 [expand] expanding vs/workbench/api/node/extensionHostProcess [expand] expanding 1 [expand] expanding /home/hwhsu1231/.config/Code/CachedData/e170252f762678dec6ca2cc69aba1570769a5d39 [expand] expanding extensionHost [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding true [expand] expanding /run/user/1000/vscode-6090bad7-1.88-main.sock [expand] expanding {"locale":"en","osLocale":"zh-tw","availableLanguages":{},"_languagePackSupport":true} [expand] expanding 2590 [expand] expanding /home/hwhsu1231/.Xauthority [expand] expanding 24 [expand] expanding breeze_cursors [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding KDE [expand] expanding /home/hwhsu1231/snap/code/157/.local/share:/home/hwhsu1231/snap/code/157:/snap/code/157/usr/share:/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /run/user/1000 [expand] expanding seat0 [expand] expanding /org/freedesktop/DisplayManager/Seat0 [expand] expanding user [expand] expanding KDE [expand] expanding 3 [expand] expanding /org/freedesktop/DisplayManager/Session1 [expand] expanding x11 [expand] expanding 1 [expand] expanding @im=fcitx [expand] expanding /snap/code/157/usr/share/code/code [expand] expanding 1 [expand] expanding 1 [main] Loading new test preset into CMake driver [main] Resolving the selected package preset [main] Resolving the selected package preset [main] Using generator from user configuration: Ninja [expand] expanding /var/lib/snapd/desktop/applications/code_code.desktop [expand] expanding code-url-handler.desktop [expand] expanding xim [expand] expanding /home/hwhsu1231/anaconda3/bin/conda [expand] expanding /home/hwhsu1231/anaconda3/bin/python [expand] expanding 0 [expand] expanding unix:path=/run/user/1000/bus [expand] expanding plasma [expand] expanding :0 [expand] expanding 1 [expand] expanding x11 [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gdk-pixbuf-loaders.cache [expand] expanding /home/hwhsu1231/gems [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gio-modules [expand] expanding /run/user/1000/gnupg/S.gpg-agent:0:1 [expand] expanding /home/hwhsu1231/snap/code/157/.local/share/glib-2.0/schemas [expand] expanding /etc/gtk-2.0/gtkrc:/home/hwhsu1231/.gtkrc-2.0:/home/hwhsu1231/.config/gtkrc-2.0 [expand] expanding /snap/code/157/usr [expand] expanding fcitx [expand] expanding /home/hwhsu1231/snap/code/common/.cache/immodules/immodules.cache [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gtk-3.0 [expand] expanding /etc/gtk/gtkrc:/home/hwhsu1231/.gtkrc:/home/hwhsu1231/.config/gtkrc [expand] expanding /home/hwhsu1231 [expand] expanding 1 [expand] expanding 4d9a265a85fa49d0b405cbca35eec6a6 [expand] expanding 8:20697870 [expand] expanding 1 [expand] expanding true [expand] expanding 1000 [expand] expanding 5 [expand] expanding zh_TW.UTF-8 [expand] expanding zh_TW:zh [expand] expanding /usr/bin/lesspipe %s %s [expand] expanding | /usr/bin/lesspipe %s [expand] expanding /snap/code/157/usr/lib/locale [expand] expanding hwhsu1231 [expand] expanding 1475 [expand] expanding 1 [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/bin [expand] expanding /home/hwhsu1231/.nvm [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/include/node [expand] expanding KDE [expand] expanding /run/user/1000/kwallet5.socket [expand] expanding /home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts [expand] expanding /home/hwhsu1231/perl5/lib/perl5 [expand] expanding /home/hwhsu1231/perl5 [expand] expanding --install_base "/home/hwhsu1231/perl5" [expand] expanding INSTALL_BASE=/home/hwhsu1231/perl5 [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding 1 [expand] expanding 0 [expand] expanding fcitx [expand] expanding eDP-1=1.25;HDMI-1=1.25; [expand] expanding local/vb-kubuntu:@/tmp/.ICE-unix/1680,unix/vb-kubuntu:/tmp/.ICE-unix/1680 [expand] expanding /bin/bash [expand] expanding 0 [expand] expanding /snap/code/157 [expand] expanding amd64 [expand] expanding /var/snap/code/common [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding /var/snap/code/157 [expand] expanding 1000 [expand] expanding code [expand] expanding x86_64-linux-gnu [expand] expanding /var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void [expand] expanding code [expand] expanding /home/hwhsu1231 [expand] expanding 157 [expand] expanding 1000 [expand] expanding /home/hwhsu1231/snap/code/common [expand] expanding /home/hwhsu1231/snap/code/157 [expand] expanding e170252f [expand] expanding 1553 [expand] expanding /tmp/ssh-XXXXXX5RKxMy/agent.1493 [expand] expanding 3289304 [expand] expanding hwhsu1231 [expand] expanding vs/workbench/api/node/extensionHostProcess [expand] expanding 1 [expand] expanding /home/hwhsu1231/.config/Code/CachedData/e170252f762678dec6ca2cc69aba1570769a5d39 [expand] expanding extensionHost [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding true [expand] expanding /run/user/1000/vscode-6090bad7-1.88-main.sock [expand] expanding {"locale":"en","osLocale":"zh-tw","availableLanguages":{},"_languagePackSupport":true} [expand] expanding 2590 [expand] expanding /home/hwhsu1231/.Xauthority [expand] expanding 24 [expand] expanding breeze_cursors [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding KDE [expand] expanding /home/hwhsu1231/snap/code/157/.local/share:/home/hwhsu1231/snap/code/157:/snap/code/157/usr/share:/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /run/user/1000 [expand] expanding seat0 [expand] expanding /org/freedesktop/DisplayManager/Seat0 [expand] expanding user [expand] expanding KDE [expand] expanding 3 [expand] expanding /org/freedesktop/DisplayManager/Session1 [expand] expanding x11 [expand] expanding 1 [expand] expanding @im=fcitx [expand] expanding /snap/code/157/usr/share/code/code [expand] expanding 1 [expand] expanding 1 [expand] expanding ${sourceDir}/out/build/${presetName} [expand] expanding /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default [expand] expanding /var/lib/snapd/desktop/applications/code_code.desktop [expand] expanding code-url-handler.desktop [expand] expanding xim [expand] expanding /home/hwhsu1231/anaconda3/bin/conda [expand] expanding /home/hwhsu1231/anaconda3/bin/python [expand] expanding 0 [expand] expanding unix:path=/run/user/1000/bus [expand] expanding plasma [expand] expanding :0 [expand] expanding 1 [expand] expanding x11 [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gdk-pixbuf-loaders.cache [expand] expanding /home/hwhsu1231/gems [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gio-modules [expand] expanding /run/user/1000/gnupg/S.gpg-agent:0:1 [expand] expanding /home/hwhsu1231/snap/code/157/.local/share/glib-2.0/schemas [expand] expanding /etc/gtk-2.0/gtkrc:/home/hwhsu1231/.gtkrc-2.0:/home/hwhsu1231/.config/gtkrc-2.0 [expand] expanding /snap/code/157/usr [expand] expanding fcitx [expand] expanding /home/hwhsu1231/snap/code/common/.cache/immodules/immodules.cache [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gtk-3.0 [expand] expanding /etc/gtk/gtkrc:/home/hwhsu1231/.gtkrc:/home/hwhsu1231/.config/gtkrc [expand] expanding /home/hwhsu1231 [expand] expanding 1 [expand] expanding 4d9a265a85fa49d0b405cbca35eec6a6 [expand] expanding 8:20697870 [expand] expanding 1 [expand] expanding true [expand] expanding 1000 [expand] expanding 5 [expand] expanding zh_TW.UTF-8 [expand] expanding zh_TW:zh [expand] expanding /usr/bin/lesspipe %s %s [expand] expanding | /usr/bin/lesspipe %s [expand] expanding /snap/code/157/usr/lib/locale [expand] expanding hwhsu1231 [expand] expanding 1475 [expand] expanding 1 [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/bin [expand] expanding /home/hwhsu1231/.nvm [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/include/node [expand] expanding KDE [expand] expanding /run/user/1000/kwallet5.socket [expand] expanding /home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts [expand] expanding /home/hwhsu1231/perl5/lib/perl5 [expand] expanding /home/hwhsu1231/perl5 [expand] expanding --install_base "/home/hwhsu1231/perl5" [expand] expanding INSTALL_BASE=/home/hwhsu1231/perl5 [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding 1 [expand] expanding 0 [expand] expanding fcitx [expand] expanding eDP-1=1.25;HDMI-1=1.25; [expand] expanding local/vb-kubuntu:@/tmp/.ICE-unix/1680,unix/vb-kubuntu:/tmp/.ICE-unix/1680 [expand] expanding /bin/bash [expand] expanding 0 [expand] expanding /snap/code/157 [expand] expanding amd64 [expand] expanding /var/snap/code/common [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding /var/snap/code/157 [expand] expanding 1000 [expand] expanding code [expand] expanding x86_64-linux-gnu [expand] expanding /var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void [expand] expanding code [expand] expanding /home/hwhsu1231 [expand] expanding 157 [expand] expanding 1000 [expand] expanding /home/hwhsu1231/snap/code/common [expand] expanding /home/hwhsu1231/snap/code/157 [expand] expanding e170252f [expand] expanding 1553 [expand] expanding /tmp/ssh-XXXXXX5RKxMy/agent.1493 [expand] expanding 3289304 [expand] expanding hwhsu1231 [expand] expanding vs/workbench/api/node/extensionHostProcess [expand] expanding 1 [expand] expanding /home/hwhsu1231/.config/Code/CachedData/e170252f762678dec6ca2cc69aba1570769a5d39 [expand] expanding extensionHost [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding true [expand] expanding /run/user/1000/vscode-6090bad7-1.88-main.sock [expand] expanding {"locale":"en","osLocale":"zh-tw","availableLanguages":{},"_languagePackSupport":true} [expand] expanding 2590 [expand] expanding /home/hwhsu1231/.Xauthority [expand] expanding 24 [expand] expanding breeze_cursors [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding KDE [expand] expanding /home/hwhsu1231/snap/code/157/.local/share:/home/hwhsu1231/snap/code/157:/snap/code/157/usr/share:/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /run/user/1000 [expand] expanding seat0 [expand] expanding /org/freedesktop/DisplayManager/Seat0 [expand] expanding user [expand] expanding KDE [expand] expanding 3 [expand] expanding /org/freedesktop/DisplayManager/Session1 [expand] expanding x11 [expand] expanding 1 [expand] expanding @im=fcitx [expand] expanding /snap/code/157/usr/share/code/code [expand] expanding 1 [expand] expanding 1 [main] Loading new package preset into CMake driver [main] Resolving the selected workflow preset [main] Resolving the selected workflow preset [main] Using generator from user configuration: Ninja [expand] expanding /var/lib/snapd/desktop/applications/code_code.desktop [expand] expanding code-url-handler.desktop [expand] expanding xim [expand] expanding /home/hwhsu1231/anaconda3/bin/conda [expand] expanding /home/hwhsu1231/anaconda3/bin/python [expand] expanding 0 [expand] expanding unix:path=/run/user/1000/bus [expand] expanding plasma [expand] expanding :0 [expand] expanding 1 [expand] expanding x11 [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gdk-pixbuf-loaders.cache [expand] expanding /home/hwhsu1231/gems [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gio-modules [expand] expanding /run/user/1000/gnupg/S.gpg-agent:0:1 [expand] expanding /home/hwhsu1231/snap/code/157/.local/share/glib-2.0/schemas [expand] expanding /etc/gtk-2.0/gtkrc:/home/hwhsu1231/.gtkrc-2.0:/home/hwhsu1231/.config/gtkrc-2.0 [expand] expanding /snap/code/157/usr [expand] expanding fcitx [expand] expanding /home/hwhsu1231/snap/code/common/.cache/immodules/immodules.cache [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gtk-3.0 [expand] expanding /etc/gtk/gtkrc:/home/hwhsu1231/.gtkrc:/home/hwhsu1231/.config/gtkrc [expand] expanding /home/hwhsu1231 [expand] expanding 1 [expand] expanding 4d9a265a85fa49d0b405cbca35eec6a6 [expand] expanding 8:20697870 [expand] expanding 1 [expand] expanding true [expand] expanding 1000 [expand] expanding 5 [expand] expanding zh_TW.UTF-8 [expand] expanding zh_TW:zh [expand] expanding /usr/bin/lesspipe %s %s [expand] expanding | /usr/bin/lesspipe %s [expand] expanding /snap/code/157/usr/lib/locale [expand] expanding hwhsu1231 [expand] expanding 1475 [expand] expanding 1 [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/bin [expand] expanding /home/hwhsu1231/.nvm [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/include/node [expand] expanding KDE [expand] expanding /run/user/1000/kwallet5.socket [expand] expanding /home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts [expand] expanding /home/hwhsu1231/perl5/lib/perl5 [expand] expanding /home/hwhsu1231/perl5 [expand] expanding --install_base "/home/hwhsu1231/perl5" [expand] expanding INSTALL_BASE=/home/hwhsu1231/perl5 [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding 1 [expand] expanding 0 [expand] expanding fcitx [expand] expanding eDP-1=1.25;HDMI-1=1.25; [expand] expanding local/vb-kubuntu:@/tmp/.ICE-unix/1680,unix/vb-kubuntu:/tmp/.ICE-unix/1680 [expand] expanding /bin/bash [expand] expanding 0 [expand] expanding /snap/code/157 [expand] expanding amd64 [expand] expanding /var/snap/code/common [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding /var/snap/code/157 [expand] expanding 1000 [expand] expanding code [expand] expanding x86_64-linux-gnu [expand] expanding /var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void [expand] expanding code [expand] expanding /home/hwhsu1231 [expand] expanding 157 [expand] expanding 1000 [expand] expanding /home/hwhsu1231/snap/code/common [expand] expanding /home/hwhsu1231/snap/code/157 [expand] expanding e170252f [expand] expanding 1553 [expand] expanding /tmp/ssh-XXXXXX5RKxMy/agent.1493 [expand] expanding 3289304 [expand] expanding hwhsu1231 [expand] expanding vs/workbench/api/node/extensionHostProcess [expand] expanding 1 [expand] expanding /home/hwhsu1231/.config/Code/CachedData/e170252f762678dec6ca2cc69aba1570769a5d39 [expand] expanding extensionHost [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding true [expand] expanding /run/user/1000/vscode-6090bad7-1.88-main.sock [expand] expanding {"locale":"en","osLocale":"zh-tw","availableLanguages":{},"_languagePackSupport":true} [expand] expanding 2590 [expand] expanding /home/hwhsu1231/.Xauthority [expand] expanding 24 [expand] expanding breeze_cursors [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding KDE [expand] expanding /home/hwhsu1231/snap/code/157/.local/share:/home/hwhsu1231/snap/code/157:/snap/code/157/usr/share:/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /run/user/1000 [expand] expanding seat0 [expand] expanding /org/freedesktop/DisplayManager/Seat0 [expand] expanding user [expand] expanding KDE [expand] expanding 3 [expand] expanding /org/freedesktop/DisplayManager/Session1 [expand] expanding x11 [expand] expanding 1 [expand] expanding @im=fcitx [expand] expanding /snap/code/157/usr/share/code/code [expand] expanding 1 [expand] expanding 1 [expand] expanding ${sourceDir}/out/build/${presetName} [expand] expanding /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default [expand] expanding /var/lib/snapd/desktop/applications/code_code.desktop [expand] expanding code-url-handler.desktop [expand] expanding xim [expand] expanding /home/hwhsu1231/anaconda3/bin/conda [expand] expanding /home/hwhsu1231/anaconda3/bin/python [expand] expanding 0 [expand] expanding unix:path=/run/user/1000/bus [expand] expanding plasma [expand] expanding :0 [expand] expanding 1 [expand] expanding x11 [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gdk-pixbuf-loaders.cache [expand] expanding /home/hwhsu1231/gems [expand] expanding /home/hwhsu1231/snap/code/common/.cache/gio-modules [expand] expanding /run/user/1000/gnupg/S.gpg-agent:0:1 [expand] expanding /home/hwhsu1231/snap/code/157/.local/share/glib-2.0/schemas [expand] expanding /etc/gtk-2.0/gtkrc:/home/hwhsu1231/.gtkrc-2.0:/home/hwhsu1231/.config/gtkrc-2.0 [expand] expanding /snap/code/157/usr [expand] expanding fcitx [expand] expanding /home/hwhsu1231/snap/code/common/.cache/immodules/immodules.cache [expand] expanding /snap/code/157/usr/lib/x86_64-linux-gnu/gtk-3.0 [expand] expanding /etc/gtk/gtkrc:/home/hwhsu1231/.gtkrc:/home/hwhsu1231/.config/gtkrc [expand] expanding /home/hwhsu1231 [expand] expanding 1 [expand] expanding 4d9a265a85fa49d0b405cbca35eec6a6 [expand] expanding 8:20697870 [expand] expanding 1 [expand] expanding true [expand] expanding 1000 [expand] expanding 5 [expand] expanding zh_TW.UTF-8 [expand] expanding zh_TW:zh [expand] expanding /usr/bin/lesspipe %s %s [expand] expanding | /usr/bin/lesspipe %s [expand] expanding /snap/code/157/usr/lib/locale [expand] expanding hwhsu1231 [expand] expanding 1475 [expand] expanding 1 [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/bin [expand] expanding /home/hwhsu1231/.nvm [expand] expanding /home/hwhsu1231/.nvm/versions/node/v20.12.1/include/node [expand] expanding KDE [expand] expanding /run/user/1000/kwallet5.socket [expand] expanding /home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts [expand] expanding /home/hwhsu1231/perl5/lib/perl5 [expand] expanding /home/hwhsu1231/perl5 [expand] expanding --install_base "/home/hwhsu1231/perl5" [expand] expanding INSTALL_BASE=/home/hwhsu1231/perl5 [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding 1 [expand] expanding 0 [expand] expanding fcitx [expand] expanding eDP-1=1.25;HDMI-1=1.25; [expand] expanding local/vb-kubuntu:@/tmp/.ICE-unix/1680,unix/vb-kubuntu:/tmp/.ICE-unix/1680 [expand] expanding /bin/bash [expand] expanding 0 [expand] expanding /snap/code/157 [expand] expanding amd64 [expand] expanding /var/snap/code/common [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [expand] expanding /var/snap/code/157 [expand] expanding 1000 [expand] expanding code [expand] expanding x86_64-linux-gnu [expand] expanding /var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void [expand] expanding code [expand] expanding /home/hwhsu1231 [expand] expanding 157 [expand] expanding 1000 [expand] expanding /home/hwhsu1231/snap/code/common [expand] expanding /home/hwhsu1231/snap/code/157 [expand] expanding e170252f [expand] expanding 1553 [expand] expanding /tmp/ssh-XXXXXX5RKxMy/agent.1493 [expand] expanding 3289304 [expand] expanding hwhsu1231 [expand] expanding vs/workbench/api/node/extensionHostProcess [expand] expanding 1 [expand] expanding /home/hwhsu1231/.config/Code/CachedData/e170252f762678dec6ca2cc69aba1570769a5d39 [expand] expanding extensionHost [expand] expanding /home/hwhsu1231/Repo/testing [expand] expanding true [expand] expanding /run/user/1000/vscode-6090bad7-1.88-main.sock [expand] expanding {"locale":"en","osLocale":"zh-tw","availableLanguages":{},"_languagePackSupport":true} [expand] expanding 2590 [expand] expanding /home/hwhsu1231/.Xauthority [expand] expanding 24 [expand] expanding breeze_cursors [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding /home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [expand] expanding KDE [expand] expanding /home/hwhsu1231/snap/code/157/.local/share:/home/hwhsu1231/snap/code/157:/snap/code/157/usr/share:/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [expand] expanding /run/user/1000 [expand] expanding seat0 [expand] expanding /org/freedesktop/DisplayManager/Seat0 [expand] expanding user [expand] expanding KDE [expand] expanding 3 [expand] expanding /org/freedesktop/DisplayManager/Session1 [expand] expanding x11 [expand] expanding 1 [expand] expanding @im=fcitx [expand] expanding /snap/code/157/usr/share/code/code [expand] expanding 1 [expand] expanding 1 [main] Loading new workflow preset into CMake driver [main] CMakeProject instance initialization complete. [extension] Attempting to use cache to configure workspace file:///home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc [expand] expanding cmake [proc] Executing command: /usr/bin/cmake --version [proc] Executing command: /usr/bin/cmake -E capabilities [extension] [6181] cmake.buildDirectory started [extension] [8327] cmake.buildDirectory started [main] Starting new CMake driver [main] Starting CMake driver [main] Using generator from user configuration: Ninja [cmakefileapi-driver] Creating instance of CMakeFileApiDriver [driver] Initializing base driver using preset [driver] CMakeDriver configure preset set to default [driver] No generator specified [driver] CMakeDriver build preset set to __defaultBuildPreset__ [driver] CMakeDriver test preset set to __defaultTestPreset__ [driver] CMakeDriver package preset set to __defaultPackagePreset__ [driver] CMakeDriver workflow preset set to __defaultWorkflowPreset__ [expand] expanding /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc [cache] Reading CMake cache file /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default/CMakeCache.txt [cache] Parsing CMake cache string [driver] Setting new variant Debug [expand] expanding /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc [expand] expanding /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc [expand] expanding cmake [driver] Use cached configuration [driver] Running pre-configure checks and steps [expand] expanding /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc [cmakefileapi-parser] Read reply folder: /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default/.cmake/api/v1/reply [cmakefileapi-parser] Found index files: ["cache-v2-1cab305b0ac598f51502.json","cmakeFiles-v1-ae137c06afef610b100b.json","codemodel-v2-874fbb81db18ce513741.json","directory-.-f5ebdc15457944623624.json","index-2024-05-05T03-17-20-0442.json","toolchains-v1-7096c62e23c342eb06a8.json"] [expand] expanding cmake [extension] [6181] cmake.buildDirectory finished (returned "/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default") [expand] expanding cmake [extension] [8327] cmake.buildDirectory finished (returned "/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default") [extension] [5251] cmake.buildDirectory started [expand] expanding cmake [extension] [5251] cmake.buildDirectory finished (returned "/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default") [extension] [9736] cmake.buildDirectory started [expand] expanding cmake [expand] expanding cmake [extension] [9736] cmake.buildDirectory finished (returned "/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default") [extension] [7143] cmake.buildDirectory started [expand] expanding cmake [cache] Reading CMake cache file /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default/CMakeCache.txt [cache] Parsing CMake cache string [expand] expanding cmake [extension] [7143] cmake.buildDirectory finished (returned "/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default") [extension] [7408] cmake.buildDirectory started [expand] expanding cmake [expand] expanding cmake [extension] [7408] cmake.buildDirectory finished (returned "/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default") [cache] Reading CMake cache file /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default/CMakeCache.txt [cache] Parsing CMake cache string ```

But unfortunately, this reopenning didn't fix the issue. The following is the debug log of the subsequent CMake: Delete Cache and Reconfigure run:

Click to expand the debug log ``` [expand] expanding cmake [main] Configuring project: demo-cmake-tools-bashrc [main] Saving open files before configure/build [driver] Removing /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default/CMakeCache.txt [driver] Removing /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default/CMakeFiles [expand] expanding /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc [driver] Start configure [driver] Running pre-configure checks and steps [expand] expanding /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc [cmakefileapi-driver] Configuring using preset [cmakefileapi-driver] Invoking CMake /usr/bin/cmake with arguments ["-S/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc","-B/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default"] [proc] Executing command: /usr/bin/cmake -S/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc -B/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default [proc] with environment: {"BAMF_DESKTOP_FILE_HINT":"/var/lib/snapd/desktop/applications/code_code.desktop","CHROME_DESKTOP":"code-url-handler.desktop","CLUTTER_IM_MODULE":"xim","CONDA_EXE":"/home/hwhsu1231/anaconda3/bin/conda","CONDA_PYTHON_EXE":"/home/hwhsu1231/anaconda3/bin/python","CONDA_SHLVL":"0","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1000/bus","DESKTOP_SESSION":"plasma","DISPLAY":":0","ELECTRON_NO_ATTACH_CONSOLE":"1","GDK_BACKEND":"x11","GDK_PIXBUF_MODULEDIR":"/snap/code/157/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders","GDK_PIXBUF_MODULE_FILE":"/home/hwhsu1231/snap/code/common/.cache/gdk-pixbuf-loaders.cache","GEM_HOME":"/home/hwhsu1231/gems","GIO_MODULE_DIR":"/home/hwhsu1231/snap/code/common/.cache/gio-modules","GPG_AGENT_INFO":"/run/user/1000/gnupg/S.gpg-agent:0:1","GSETTINGS_SCHEMA_DIR":"/home/hwhsu1231/snap/code/157/.local/share/glib-2.0/schemas","GTK2_RC_FILES":"/etc/gtk-2.0/gtkrc:/home/hwhsu1231/.gtkrc-2.0:/home/hwhsu1231/.config/gtkrc-2.0","GTK_EXE_PREFIX":"/snap/code/157/usr","GTK_IM_MODULE":"fcitx","GTK_IM_MODULE_FILE":"/home/hwhsu1231/snap/code/common/.cache/immodules/immodules.cache","GTK_PATH":"/snap/code/157/usr/lib/x86_64-linux-gnu/gtk-3.0","GTK_RC_FILES":"/etc/gtk/gtkrc:/home/hwhsu1231/.gtkrc:/home/hwhsu1231/.config/gtkrc","HOME":"/home/hwhsu1231","IM_CONFIG_PHASE":"1","INVOCATION_ID":"4d9a265a85fa49d0b405cbca35eec6a6","JOURNAL_STREAM":"8:20697870","KDE_APPLICATIONS_AS_SCOPE":"1","KDE_FULL_SESSION":"true","KDE_SESSION_UID":"1000","KDE_SESSION_VERSION":"5","LANG":"zh_TW.UTF-8","LANGUAGE":"zh_TW:zh","LESSCLOSE":"/usr/bin/lesspipe %s %s","LESSOPEN":"| /usr/bin/lesspipe %s","LOCPATH":"/snap/code/157/usr/lib/locale","LOGNAME":"hwhsu1231","MANAGERPID":"1475","NO_AT_BRIDGE":"1","NVM_BIN":"/home/hwhsu1231/.nvm/versions/node/v20.12.1/bin","NVM_DIR":"/home/hwhsu1231/.nvm","NVM_INC":"/home/hwhsu1231/.nvm/versions/node/v20.12.1/include/node","ORIGINAL_XDG_CURRENT_DESKTOP":"KDE","PAM_KWALLET5_LOGIN":"/run/user/1000/kwallet5.socket","PATH":"/home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts","PERL5LIB":"/home/hwhsu1231/perl5/lib/perl5","PERL_LOCAL_LIB_ROOT":"/home/hwhsu1231/perl5","PERL_MB_OPT":"--install_base \"/home/hwhsu1231/perl5\"","PERL_MM_OPT":"INSTALL_BASE=/home/hwhsu1231/perl5","PWD":"/home/hwhsu1231/Repo/testing","QT_ACCESSIBILITY":"1","QT_AUTO_SCREEN_SCALE_FACTOR":"0","QT_IM_MODULE":"fcitx","QT_SCREEN_SCALE_FACTORS":"eDP-1=1.25;HDMI-1=1.25;","SESSION_MANAGER":"local/vb-kubuntu:@/tmp/.ICE-unix/1680,unix/vb-kubuntu:/tmp/.ICE-unix/1680","SHELL":"/bin/bash","SHLVL":"0","SNAP":"/snap/code/157","SNAP_ARCH":"amd64","SNAP_COMMON":"/var/snap/code/common","SNAP_CONTEXT":"kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M","SNAP_COOKIE":"kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M","SNAP_DATA":"/var/snap/code/157","SNAP_EUID":"1000","SNAP_INSTANCE_NAME":"code","SNAP_LAUNCHER_ARCH_TRIPLET":"x86_64-linux-gnu","SNAP_LIBRARY_PATH":"/var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void","SNAP_NAME":"code","SNAP_REAL_HOME":"/home/hwhsu1231","SNAP_REVISION":"157","SNAP_UID":"1000","SNAP_USER_COMMON":"/home/hwhsu1231/snap/code/common","SNAP_USER_DATA":"/home/hwhsu1231/snap/code/157","SNAP_VERSION":"e170252f","SSH_AGENT_PID":"1553","SSH_AUTH_SOCK":"/tmp/ssh-XXXXXX5RKxMy/agent.1493","SYSTEMD_EXEC_PID":"3289304","USER":"hwhsu1231","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CLI":"1","VSCODE_CODE_CACHE_PATH":"/home/hwhsu1231/.config/Code/CachedData/e170252f762678dec6ca2cc69aba1570769a5d39","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/home/hwhsu1231/Repo/testing","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/run/user/1000/vscode-6090bad7-1.88-main.sock","VSCODE_NLS_CONFIG":"{\"locale\":\"en\",\"osLocale\":\"zh-tw\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_PID":"2590","XAUTHORITY":"/home/hwhsu1231/.Xauthority","XCURSOR_SIZE":"24","XCURSOR_THEME":"breeze_cursors","XDG_CONFIG_DIRS":"/home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings","XDG_CONFIG_DIRS_VSCODE_SNAP_ORIG":"/home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings","XDG_CURRENT_DESKTOP":"KDE","XDG_DATA_DIRS":"/home/hwhsu1231/snap/code/157/.local/share:/home/hwhsu1231/snap/code/157:/snap/code/157/usr/share:/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop","XDG_DATA_DIRS_VSCODE_SNAP_ORIG":"/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop","XDG_RUNTIME_DIR":"/run/user/1000","XDG_SEAT":"seat0","XDG_SEAT_PATH":"/org/freedesktop/DisplayManager/Seat0","XDG_SESSION_CLASS":"user","XDG_SESSION_DESKTOP":"KDE","XDG_SESSION_ID":"3","XDG_SESSION_PATH":"/org/freedesktop/DisplayManager/Session1","XDG_SESSION_TYPE":"x11","XDG_VTNR":"1","XMODIFIERS":"@im=fcitx","_":"/snap/code/157/usr/share/code/code","ELECTRON_RUN_AS_NODE":"1","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1"} [cmake] -- The C compiler identification is GNU 11.4.0 [cmake] -- The CXX compiler identification is GNU 11.4.0 [cmake] -- Detecting C compiler ABI info [cmake] -- Detecting C compiler ABI info - done [cmake] -- Check for working C compiler: /usr/bin/cc - skipped [cmake] -- Detecting C compile features [cmake] -- Detecting C compile features - done [cmake] -- Detecting CXX compiler ABI info [cmake] -- Detecting CXX compiler ABI info - done [cmake] -- Check for working CXX compiler: /usr/bin/c++ - skipped [cmake] -- Detecting CXX compile features [cmake] -- Detecting CXX compile features - done [cmake] -- ---------------------------------------- [cmake] -- CMAKE_COMMAND = /snap/cmake/1381/bin/cmake [cmake] -- CMAKE_VERSION = 3.29.2 [cmake] -- JEKYLL_EXECUTABLE = JEKYLL_EXECUTABLE-NOTFOUND [cmake] -- NODE_EXECUTABLE = NODE_EXECUTABLE-NOTFOUND [cmake] -- PO4A_EXECUTABLE = PO4A_EXECUTABLE-NOTFOUND [cmake] -- MDBOOK_EXECUTABLE = MDBOOK_EXECUTABLE-NOTFOUND [cmake] -- CROWDIN_EXECUTABLE = CROWDIN_EXECUTABLE-NOTFOUND [cmake] -- ENV{SHELL} = /bin/bash [cmake] -- ENV{BASH_VERSION} = [cmake] -- ENV{PATH} = /home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts [cmake] -- ENV_CMD_OUT = [cmake] BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/code_code.desktop [cmake] CHROME_DESKTOP=code-url-handler.desktop [cmake] CLUTTER_IM_MODULE=xim [cmake] CONDA_EXE=/home/hwhsu1231/anaconda3/bin/conda [cmake] CONDA_PYTHON_EXE=/home/hwhsu1231/anaconda3/bin/python [cmake] CONDA_SHLVL=0 [cmake] DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus [cmake] DESKTOP_SESSION=plasma [cmake] DISPLAY=:0 [cmake] ELECTRON_NO_ATTACH_CONSOLE=1 [cmake] GDK_BACKEND=x11 [cmake] GDK_PIXBUF_MODULEDIR=/snap/code/157/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders [cmake] GDK_PIXBUF_MODULE_FILE=/home/hwhsu1231/snap/code/common/.cache/gdk-pixbuf-loaders.cache [cmake] GEM_HOME=/home/hwhsu1231/gems [cmake] GIO_MODULE_DIR=/home/hwhsu1231/snap/code/common/.cache/gio-modules [cmake] GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 [cmake] GSETTINGS_SCHEMA_DIR=/home/hwhsu1231/snap/code/157/.local/share/glib-2.0/schemas [cmake] GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/hwhsu1231/.gtkrc-2.0:/home/hwhsu1231/.config/gtkrc-2.0 [cmake] GTK_EXE_PREFIX=/snap/code/157/usr [cmake] GTK_IM_MODULE=fcitx [cmake] GTK_IM_MODULE_FILE=/home/hwhsu1231/snap/code/common/.cache/immodules/immodules.cache [cmake] GTK_PATH=/snap/code/157/usr/lib/x86_64-linux-gnu/gtk-3.0 [cmake] GTK_RC_FILES=/etc/gtk/gtkrc:/home/hwhsu1231/.gtkrc:/home/hwhsu1231/.config/gtkrc [cmake] HOME=/home/hwhsu1231 [cmake] IM_CONFIG_PHASE=1 [cmake] INVOCATION_ID=4d9a265a85fa49d0b405cbca35eec6a6 [cmake] JOURNAL_STREAM=8:20697870 [cmake] KDE_APPLICATIONS_AS_SCOPE=1 [cmake] KDE_FULL_SESSION=true [cmake] KDE_SESSION_UID=1000 [cmake] KDE_SESSION_VERSION=5 [cmake] LANG=zh_TW.UTF-8 [cmake] LANGUAGE=zh_TW:zh [cmake] LESSCLOSE=/usr/bin/lesspipe %s %s [cmake] LESSOPEN=| /usr/bin/lesspipe %s [cmake] LOCPATH=/snap/code/157/usr/lib/locale [cmake] LOGNAME=hwhsu1231 [cmake] MANAGERPID=1475 [cmake] NO_AT_BRIDGE=1 [cmake] NVM_BIN=/home/hwhsu1231/.nvm/versions/node/v20.12.1/bin [cmake] NVM_DIR=/home/hwhsu1231/.nvm [cmake] NVM_INC=/home/hwhsu1231/.nvm/versions/node/v20.12.1/include/node [cmake] ORIGINAL_XDG_CURRENT_DESKTOP=KDE [cmake] PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket [cmake] PATH=/home/hwhsu1231/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hwhsu1231/.local/share/JetBrains/Toolbox/scripts [cmake] PERL5LIB=/home/hwhsu1231/perl5/lib/perl5 [cmake] PERL_LOCAL_LIB_ROOT=/home/hwhsu1231/perl5 [cmake] PERL_MB_OPT=--install_base "/home/hwhsu1231/perl5" [cmake] PERL_MM_OPT=INSTALL_BASE=/home/hwhsu1231/perl5 [cmake] PWD=/home/hwhsu1231/Repo/testing [cmake] QT_ACCESSIBILITY=1 [cmake] QT_AUTO_SCREEN_SCALE_FACTOR=0 [cmake] QT_IM_MODULE=fcitx [cmake] QT_SCREEN_SCALE_FACTORS=eDP-1=1.25;HDMI-1=1.25; [cmake] SESSION_MANAGER=local/vb-kubuntu:@/tmp/.ICE-unix/1680,unix/vb-kubuntu:/tmp/.ICE-unix/1680 [cmake] SHELL=/bin/bash [cmake] SHLVL=0 [cmake] SNAP=/snap/code/157 [cmake] SNAP_ARCH=amd64 [cmake] SNAP_COMMON=/var/snap/code/common [cmake] SNAP_CONTEXT=kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [cmake] SNAP_COOKIE=kijkWCs7JnmzDCTDq05aweyAhfPjHP0MF6wiP3AvTp7QFro8uO9M [cmake] SNAP_DATA=/var/snap/code/157 [cmake] SNAP_EUID=1000 [cmake] SNAP_INSTANCE_NAME=code [cmake] SNAP_LAUNCHER_ARCH_TRIPLET=x86_64-linux-gnu [cmake] SNAP_LIBRARY_PATH=/var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void [cmake] SNAP_NAME=code [cmake] SNAP_REAL_HOME=/home/hwhsu1231 [cmake] SNAP_REVISION=157 [cmake] SNAP_UID=1000 [cmake] SNAP_USER_COMMON=/home/hwhsu1231/snap/code/common [cmake] SNAP_USER_DATA=/home/hwhsu1231/snap/code/157 [cmake] SNAP_VERSION=e170252f [cmake] SSH_AGENT_PID=1553 [cmake] SSH_AUTH_SOCK=/tmp/ssh-XXXXXX5RKxMy/agent.1493 [cmake] SYSTEMD_EXEC_PID=3289304 [cmake] USER=hwhsu1231 [cmake] VSCODE_AMD_ENTRYPOINT=vs/workbench/api/node/extensionHostProcess [cmake] VSCODE_CLI=1 [cmake] VSCODE_CODE_CACHE_PATH=/home/hwhsu1231/.config/Code/CachedData/e170252f762678dec6ca2cc69aba1570769a5d39 [cmake] VSCODE_CRASH_REPORTER_PROCESS_TYPE=extensionHost [cmake] VSCODE_CWD=/home/hwhsu1231/Repo/testing [cmake] VSCODE_HANDLES_UNCAUGHT_ERRORS=true [cmake] VSCODE_IPC_HOOK=/run/user/1000/vscode-6090bad7-1.88-main.sock [cmake] VSCODE_NLS_CONFIG={"locale":"en","osLocale":"zh-tw","availableLanguages":{},"_languagePackSupport":true} [cmake] VSCODE_PID=2590 [cmake] XAUTHORITY=/home/hwhsu1231/.Xauthority [cmake] XCURSOR_SIZE=24 [cmake] XCURSOR_THEME=breeze_cursors [cmake] XDG_CONFIG_DIRS=/home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [cmake] XDG_CONFIG_DIRS_VSCODE_SNAP_ORIG=/home/hwhsu1231/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings [cmake] XDG_CURRENT_DESKTOP=KDE [cmake] XDG_DATA_DIRS=/home/hwhsu1231/snap/code/157/.local/share:/home/hwhsu1231/snap/code/157:/snap/code/157/usr/share:/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [cmake] XDG_DATA_DIRS_VSCODE_SNAP_ORIG=/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop [cmake] XDG_RUNTIME_DIR=/run/user/1000 [cmake] XDG_SEAT=seat0 [cmake] XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 [cmake] XDG_SESSION_CLASS=user [cmake] XDG_SESSION_DESKTOP=KDE [cmake] XDG_SESSION_ID=3 [cmake] XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 [cmake] XDG_SESSION_TYPE=x11 [cmake] XDG_VTNR=1 [cmake] XMODIFIERS=@im=fcitx [cmake] _=/snap/code/157/usr/share/code/code [cmake] ELECTRON_RUN_AS_NODE=1 [cmake] APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL=1 [cmake] CC=/usr/bin/cc [cmake] CXX=/usr/bin/c++ [cmake] LC_ALL= [cmake] LC_MESSAGES= [cmake] [cmake] -- File "/home/hwhsu1231/.bashrc" exists. [cmake] -- ---------------------------------------- [cmake] -- Configuring done (0.4s) [cmake] -- Generating done (0.0s) [cmake] -- Build files have been written to: /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default [cmakefileapi-parser] Read reply folder: /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default/.cmake/api/v1/reply [cmakefileapi-parser] Found index files: ["cache-v2-1cab305b0ac598f51502.json","cmakeFiles-v1-ae137c06afef610b100b.json","codemodel-v2-874fbb81db18ce513741.json","directory-.-f5ebdc15457944623624.json","index-2024-05-05T03-26-48-0538.json","toolchains-v1-7096c62e23c342eb06a8.json"] [expand] expanding cmake [cache] Reading CMake cache file /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default/CMakeCache.txt [cache] Parsing CMake cache string [expand] expanding cmake [expand] expanding cmake [expand] expanding cmake [extension] [7375] cmake.cleanConfigure finished (returned {"result":0,"resultType":0}) [cache] Reading CMake cache file /home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default/CMakeCache.txt [cache] Parsing CMake cache string [extension] [6883] cmake.buildDirectory started [expand] expanding cmake [extension] [6883] cmake.buildDirectory finished (returned "/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default") [extension] [3256] cmake.buildDirectory started [expand] expanding cmake [extension] [3256] cmake.buildDirectory finished (returned "/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default") [extension] [4046] cmake.buildDirectory started [expand] expanding cmake [extension] [4046] cmake.buildDirectory finished (returned "/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default") [extension] [2719] cmake.buildDirectory started [expand] expanding cmake [extension] [2719] cmake.buildDirectory finished (returned "/home/hwhsu1231/Repo/testing/demo-cmake-tools-bashrc/out/build/default") [expand] expanding cmake ```

Is this information helpful?

hwhsu1231 commented 6 months ago

Hello, @gcampbell-msft and CMake Tools Team.

Can you try install the snap version of CMake:

sudo snap install cmake --classic

and then run the follwoing command to create a symbolic link:

sudo ln -s /snap/cmake/current/bin/cmake /usr/bin/cmake

and try again to see whether the phenomenon happens?

This is the way I fix the snap of cmake issue of cmake-tools https://github.com/microsoft/vscode-cmake-tools/issues/838#issuecomment-1871993525. Maybe it's related to this issue.

Evelyn-001 commented 6 months ago

@hwhsu1231, thanks for your reply. the snap version of CMake we have always installed. And we run the above command to create a symbolic link, but we still don't repro this issue, please see the below screenshots. Thanks. @gcampbell-msft FYI image

image

fpanjevic commented 4 months ago

I'm facing the same issue, with some additional edge cases:

  1. When launching VSCode from the terminal the issue does not reproduce
  2. When launching VSCode from the Ubuntu sidebar, the issue does reproduce

Restarting VSCode or the system doesn't solve the problem.

ENV:

System info: Ubuntu 22.04.4 LTS

VS code version: 1.91.1

CMake Extension version: 1.18.43

Evelyn-001 commented 4 months ago

@fpanjevic, thanks for your reply. Are your steps to reproduce the problem the same as hwhsu1231's? If not, please provide your detailed steps to reproduce the problem for further investigation. We are looking forward to hearing from you. Thanks.