Skip to content

Compilation database files shall not be created in the current working directory

Hello!

I'm using Meson with GCC as the compiler and CLANGD for LSP.

json

  "project": {
    "default_build_path_comment": "Use <project_directory_name> to insert the project top level directory name",
    "default_build_path": "./build",
    "debug_build_path_comment": "Use <project_directory_name> to insert the project top level directory name, and <default_build_path> to insert your default_build_path setting.",
    "debug_build_path": "<default_build_path>/debug",
    "cmake": {
      "command": "cmake",
      "compile_command": "cmake --build . --parallel 16"
    },
    "meson": {
      "command": "meson",
      "compile_command": "ninja"
    },
    "default_build_management_system_comment": "Select which build management system to use when creating a new C or C++ project, for instance \"cmake\" or \"meson\"",
    "default_build_management_system": "meson",
    "save_on_compile_or_run": true,
    "ctags_command": "ctags",
    "grep_command": "grep",
    "cargo_command": "cargo",
    "python_command": "python -u",
    "markdown_command": "grip -b",
    "open_with_default_application_comment": "Comma-separated list of file extensions that should be opened with system default applications",
    "open_with_default_application": ".pdf,.png"
  }

When I open jucipp through the GNOME-Shell with my project, the working-directory is the home-directory. Jucipp immediately creates ${SOURCEFILENAME}.d in the home-directory. It shall not do this.

Example:

$ ls -l ~/Projects/stems/                                                       
total 68
drwxr-xr-x 6 hoschi_ptr hoschi_ptr 4096 Sep 24 16:44 build
-rw-r--r-- 1 hoschi_ptr hoschi_ptr 1317 Mar 18  2025 Contact.hpp
-rw-r--r-- 1 hoschi_ptr hoschi_ptr 5586 Mar 18  2025 filter.cpp
-rw-r--r-- 1 hoschi_ptr hoschi_ptr  814 Mar 18  2025 filter.hpp
-rw-r--r-- 1 hoschi_ptr hoschi_ptr 9686 Mar 18  2025 http.cpp
-rw-r--r-- 1 hoschi_ptr hoschi_ptr 1729 Mar 18  2025 http.hpp
-rw-r--r-- 1 hoschi_ptr hoschi_ptr 2255 Aug  6 09:50 main.cpp
-rw-r--r-- 1 hoschi_ptr hoschi_ptr  410 Mar 18  2025 meson.build
-rw-r--r-- 1 hoschi_ptr hoschi_ptr 1454 Mar 18  2025 README.md
-rw-r--r-- 1 hoschi_ptr hoschi_ptr  294 Mar 18  2025 stems.config
-rw-r--r-- 1 hoschi_ptr hoschi_ptr 2310 Mar 18  2025 util.cpp
-rw-r--r-- 1 hoschi_ptr hoschi_ptr  698 Mar 18  2025 util.hpp
$ ls -l ~/*.d
-rw-r--r-- 1 hoschi_ptr hoschi_ptr 26364 Sep 24 16:43 /home/hoschi_ptr/filter.d
-rw-r--r-- 1 hoschi_ptr hoschi_ptr 28043 Sep 24 16:43 /home/hoschi_ptr/http.d
-rw-r--r-- 1 hoschi_ptr hoschi_ptr 28043 Sep 24 16:43 /home/hoschi_ptr/main.d

Maybe the compilation-database files should be stored in ${PROJECT_DIR}/build? Or in a dot-directory within the `${PROJECT_DIR}/.lspdata}.

Thank you

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information