Skip to content

Can't locate third-party includes after reopening the xmake project #68

Closed

Description

@Stehsaer

Version

extension 0.0.16, server 0.0.16

Editor

vscode 1.143

Operating system

Debian testing

Build system

xmake

What happened

mcppls fails to locate include paths for third-party libraries after reopening a project.

mcppls-bundle-20261023T131944.047Z.zip

Known workaround: clear cache without rebuilding, then restart server

compile_commands:

[
{
  "directory": "/home/stehsaer/Dev/Projects/json-parser",
  "arguments": ["/usr/bin/g++", "-c", "-m64", "-g", "-O0", "-std=c++23", "-isystem", "/home/stehsaer/.xmake/packages/g/gtest/v1.17.0/fe669f042f444a6cb3a06c810a609640/include", "-fmodules", "-D_GLIBCXX_USE_CXX11_ABI=1", "-fmodule-mapper=/tmp/.xmake1000/261023/0a53fa7a11ecc95bdf07f57fa520de7c/std.cc.mapper.txt", "-x", "c++", "-fmodules", "-o", "build/.objs/json/linux/x86_64/debug/usr/include/c++/16/bits/std.cc.o", "/usr/include/c++/16/bits/std.cc"],
  "file": "/usr/include/c++/16/bits/std.cc"
},
{
  "directory": "/home/stehsaer/Dev/Projects/json-parser",
  "arguments": ["/usr/bin/g++", "-c", "-m64", "-g", "-O0", "-std=c++23", "-fmodules", "-D_GLIBCXX_USE_CXX11_ABI=1", "-fmodule-mapper=/tmp/.xmake1000/261023/83278b070108b6c09729b908777837a5/std.cc.mapper.txt", "-x", "c++", "-fmodules", "-o", "build/.objs/json/linux/x86_64/debug/usr/include/c++/16/bits/std.cc.o", "/usr/include/c++/16/bits/std.cc"],
  "file": "/usr/include/c++/16/bits/std.cc"
},
{
  "directory": "/home/stehsaer/Dev/Projects/json-parser",
  "arguments": ["/usr/bin/g++", "-c", "-m64", "-g", "-O0", "-std=c++23", "-fmodules", "-D_GLIBCXX_USE_CXX11_ABI=1", "-fmodule-mapper=/tmp/.xmake1000/261023/a663a2d4235f9d93b84920eafcfbdab3/error.cppm.mapper.txt", "-x", "c++", "-fmodules", "-o", "build/.objs/json/linux/x86_64/debug/module/error.cppm.o", "module/error.cppm"],
  "file": "module/error.cppm"
},
{
  "directory": "/home/stehsaer/Dev/Projects/json-parser",
  "arguments": ["/usr/bin/g++", "-c", "-m64", "-g", "-O0", "-std=c++23", "-fmodules", "-D_GLIBCXX_USE_CXX11_ABI=1", "-fmodule-mapper=/tmp/.xmake1000/261023/3c73bc68149c811aabd56bb4d4e6233c/data.cppm.mapper.txt", "-x", "c++", "-fmodules", "-o", "build/.objs/json/linux/x86_64/debug/module/data.cppm.o", "module/data.cppm"],
  "file": "module/data.cppm"
},
{
  "directory": "/home/stehsaer/Dev/Projects/json-parser",
  "arguments": ["/usr/bin/g++", "-c", "-m64", "-g", "-O0", "-std=c++23", "-fmodules", "-D_GLIBCXX_USE_CXX11_ABI=1", "-fmodule-mapper=/tmp/.xmake1000/261023/90f53bda7da526441de2a219959ebebd/decode.cppm.mapper.txt", "-x", "c++", "-fmodules", "-o", "build/.objs/json/linux/x86_64/debug/module/decode.cppm.o", "module/decode.cppm"],
  "file": "module/decode.cppm"
},
{
  "directory": "/home/stehsaer/Dev/Projects/json-parser",
  "arguments": ["/usr/bin/g++", "-c", "-m64", "-g", "-O0", "-std=c++23", "-fmodules", "-D_GLIBCXX_USE_CXX11_ABI=1", "-fmodule-mapper=/tmp/.xmake1000/261023/ac79a55f62eac9e369f0bd5c3b53c41d/json.cppm.mapper.txt", "-x", "c++", "-fmodules", "-o", "build/.objs/json/linux/x86_64/debug/json.cppm.o", "json.cppm"],
  "file": "json.cppm"
},
{
  "directory": "/home/stehsaer/Dev/Projects/json-parser",
  "arguments": ["/usr/bin/g++", "-c", "-m64", "-g", "-O0", "-std=c++23", "-isystem", "/home/stehsaer/.xmake/packages/g/gtest/v1.17.0/fe669f042f444a6cb3a06c810a609640/include", "-fmodules", "-D_GLIBCXX_USE_CXX11_ABI=1", "-fmodule-mapper=/tmp/.xmake1000/261023/f6770d9ea0d743815090fc0c2339fabd/complex.cpp.mapper.txt", "-o", "build/.objs/json-test/linux/x86_64/debug/test/complex.cpp.o", "test/complex.cpp"],
  "file": "test/complex.cpp"
},
{
  "directory": "/home/stehsaer/Dev/Projects/json-parser",
  "arguments": ["/usr/bin/g++", "-c", "-m64", "-g", "-O0", "-std=c++23", "-isystem", "/home/stehsaer/.xmake/packages/g/gtest/v1.17.0/fe669f042f444a6cb3a06c810a609640/include", "-fmodules", "-D_GLIBCXX_USE_CXX11_ABI=1", "-fmodule-mapper=/tmp/.xmake1000/261023/2648583580d241b5fc952c9dd450942b/basic.cpp.mapper.txt", "-o", "build/.objs/json-test/linux/x86_64/debug/test/basic.cpp.o", "test/basic.cpp"],
  "file": "test/basic.cpp"
},
{
  "directory": "/home/stehsaer/Dev/Projects/json-parser",
  "arguments": ["/usr/bin/g++", "-c", "-m64", "-g", "-O0", "-std=c++23", "-isystem", "/home/stehsaer/.xmake/packages/g/gtest/v1.17.0/fe669f042f444a6cb3a06c810a609640/include", "-fmodules", "-D_GLIBCXX_USE_CXX11_ABI=1", "-fmodule-mapper=/tmp/.xmake1000/261023/dd8ac20e50490716673cdd3e442270d2/nested.cpp.mapper.txt", "-o", "build/.objs/json-test/linux/x86_64/debug/test/nested.cpp.o", "test/nested.cpp"],
  "file": "test/nested.cpp"
},
{
  "directory": "/home/stehsaer/Dev/Projects/json-parser",
  "arguments": ["/usr/bin/g++", "-c", "-m64", "-g", "-O0", "-std=c++23", "-fmodules", "-D_GLIBCXX_USE_CXX11_ABI=1", "-fmodule-mapper=/tmp/.xmake1000/261023/398d679b3dc14f26136366680ff2af1e/decode.cpp.mapper.txt", "-o", "build/.objs/json/linux/x86_64/debug/src/decode.cpp.o", "src/decode.cpp"],
  "file": "src/decode.cpp"
}]

What you expected

No response

Diagnostic bundle

  • I attached the diagnostic bundle

Diagnostic report (only if there is no bundle)

Steps to reproduce

No response

Activity

  1. added
    bug
    on Oct 23, 2026
  2. Sunrisepeak commented on Oct 24, 2026

    @Sunrisepeak
    Owner

    最新0.0.17 已经修复, 可以更新验证, 如有问题可以继续reopen反馈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions