Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different log behavior with -vD option #5992

Open
thegoodtgg opened this issue Dec 20, 2024 · 1 comment
Open

Different log behavior with -vD option #5992

thegoodtgg opened this issue Dec 20, 2024 · 1 comment
Labels

Comments

@thegoodtgg
Copy link

Xmake Version

2.9.7

Operating System Version and Architecture

Windows 11 23H2

Describe Bug

I'm just starting to learn to use xmake, I found stacktrace in xmake-2.9.7 is not complete, and can't help me solve my problem. When using 2.9.6, it's fine.
Using xmake-2.9.7
Execute command "C:/Program Files/xmake/xmake.exe" f -m release -c -vD, get following stacktrace:

error: error: Vulkan not found.
error: attempt to call a nil value (method 'set_enabled')

stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:1008: in function 'os.raiselevel'
        (...tail calls...)
        @programdir\core\main.lua:329: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399>

using xmake-2.9.6, execute same command, get following stacktrace:

error: Vulkan not found.
error: @programdir\core\main.lua:329: @programdir\core\project\project.lua:936: .\modules\LuisaCompute\src\ext\volk\xmake.lua:17: method 'set_enabled' is not callable (a nil value)      
stack traceback:
    [.\modules\LuisaCompute\src\ext\volk\xmake.lua:17]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:244]:
    [@programdir\core\project\target.lua:130]: in function '_load'
    [@programdir\core\project\project.lua:409]: in function '_load_targets'
    [@programdir\core\project\project.lua:934]: in function 'targets'
    [@programdir\actions\config\main.lua:120]: in function '_check_targets'
    [@programdir\actions\config\main.lua:399]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:244]:
    [@programdir\core\base\task.lua:491]: in function 'run'
    [@programdir\core\main.lua:327]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:406]:

stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:1004: in function 'base/os.raiselevel'
        (...tail calls...)
        @programdir\core\main.lua:329: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399>

Expected Behavior

Expect same behavior as 2.9.6.

Project Configuration

"C:/Program Files/xmake/xmake.exe" f -m release -c -vD

Additional Information and Error Logs

nothing

@thegoodtgg thegoodtgg added the bug label Dec 20, 2024
@waruqi
Copy link
Member

waruqi commented Dec 20, 2024

it works for me.

$ xmake -vD
5: @programdir/core/project/project.lua:977: ./xmake.lua:3: attempt to call a nil value (global 's
et_xxx')
stack traceback:
    [./xmake.lua:3]: in main chunk

Please provide a minimal complete project zip that can be reproduced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants