Skip to content

crash created by adding namespace #6261

@Anthony-Verdon

Description

@Anthony-Verdon

Xmake Version

2.9.8

Operating System Version and Architecture

Ubuntu 22.04.5 LTS

Describe Bug

Hello,

I think I got a crash by using namespace. Check project configuration, by adding the namespace Engine, I got this error: "error: attempt to call a nil value (method 'split')"

Expected Behavior

no crash

Project Configuration

set_targetdir("./")
set_languages("cxx17")

set_toolchains("clang")
set_warnings("allextra", "error")
set_optimize("fastest")
set_symbols("debug")

add_requires("glfw")
add_requires("glad")
add_requires("stb")
add_requires("imgui", {configs = {glfw = true, opengl3 = true}})

namespace("GlbParser")
includes("submodules/GlbParser")
namespace_end()

namespace("Engine")
includes("submodules/Engine")
namespace_end()


target("scop")
    set_kind("binary")
    add_files("srcs/**.cpp")
    add_includedirs("srcs")
    add_packages("glfw")
    add_packages("glad")
    add_packages("stb")
    add_packages("imgui")
    add_deps("GlbParser::GlbParser")
    add_deps("Engine::Engine")

Additional Information and Error Logs

output.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions